Skip to content

Commit

Permalink
fixed cursors for OrderedDataStoresApi_V2.listOrderedDatastoreEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Campbell authored and Cameron Campbell committed Oct 5, 2024
1 parent 579f11e commit 1e64e01
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 180 deletions.
44 changes: 0 additions & 44 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4751,50 +4751,6 @@
]
}
},
"gameInternationalization": {
"universeAutoTranslationsAllowed": {
"description": "Sees if automatic translations are allowed for a particular universe.",
"tags": {
"endpoint": "GET /v1/automatic-translation/games/{universeId}/feature-status",
"example": "const { data: allowed } = await ClassicGameInternationalizationApi.universeAutoTranslationsAllowed({\n universeId: 1685831367,\n});",
"exampleData": "{\n gameId: 1685831367,\n isAutomaticTranslationAllowed: true,\n isAutomaticTranslationSwitchesUIEnabled: true,\n}\n",
"exampleRawBody": "{\n gameId: 1685831367,\n isAutomaticTranslationAllowed: true,\n isAutomaticTranslationSwitchesUIEnabled: true,\n}\n"
},
"params": [
{
"name": "universeId",
"type": "UniverseId",
"description": "The ID of the universe to see if automatic translations are allowed."
}
]
},
"universeAutoTranslationQuota": {
"description": "Gets automatic translation quota for a particular universe.",
"tags": {
"endpoint": "GET /v1/automatic-translation/games/{universeId}/quota",
"example": "const { data: quota } = await ClassicGameInternationalizationApi.universeAutoTranslationQuota({\n universeId: 1685831367,\n});",
"exampleData": "{\n monthlyQuota: {\n previousRefreshDate: \"0001-01-01T00:00:00\",\n nextRefreshDate: \"2024-09-10T15:29:26.849Z\",\n remaining: 550000,\n capacity: 550000,\n },\n bankQuota: { remaining: 2750000, capacity: 2750000 },\n}\n",
"exampleRawBody": "{\n monthlyQuota: {\n previousRefreshDate: \"0001-01-01T00:00:00\",\n nextRefreshDate: \"2024-09-10T15:29:26.849Z\",\n remaining: 550000,\n capacity: 550000,\n },\n bankQuota: { remaining: 2750000, capacity: 2750000 },\n}\n"
},
"params": [
{
"name": "universeId",
"type": "Identifier",
"description": "The ID of the universe to get automatic translation quota from."
}
]
},
"autoTranslatableLanguagesForSource": {
"description": "DESCRIPTION",
"tags": {
"endpoint": "REST /...",
"example": "const { data: autoTranslationsAllowed } = await ClassicGameInternationalizationApi.autoTranslatableLanguagesForSource({\n languageCode: \"en\",\n targetLanguageCodes: [\"fr\"],\n});",
"exampleData": "{ fr: true }\n",
"exampleRawBody": "{\n sourceLanguage: \"en\",\n targetLanguages: [\n { languageCode: \"fr\", isAutomaticTranslationAllowed: true },\n ],\n}\n"
},
"params": []
}
},
"gamePasses": {
"gamePassInfo": {
"description": "Gets information about a game pass.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openblox",
"description": "Roblox API Wrapper For Both Classic And OpenCloud APIs.",
"type": "commonjs",
"version": "1.0.53",
"version": "1.0.54",
"license": "MIT",
"bugs": {
"url": "https://github.com/MightyPart/openblox/issues"
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/apis/classic/gameInternationalization/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/apis/classic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export * as ClassicDevelopApi from "./develop"
export * as ClassicDeveloperProductsApi from "./developerProducts"
export * as ClassicEconomyApi from "./economy"
export * as ClassicFriendsApi from "./friends"
export * as ClassicGameInternationalizationApi from "./gameInternationalization"
//export * as ClassicGameInternationalizationApi from "./gameInternationalization"
export * as ClassicGamePassesApi from "./gamePasses"
export * as ClassicGamesApi from "./games"
export * as ClassicGroupsApi from "./groups"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/cloud/luauExecution/luauExecution.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Identifier, ISODateTime, ObjectEither, ObjectPrettify, Prettify, UnionPrettify } from "typeforge"
import type { Identifier, ISODateTime, ObjectEither, ObjectPrettify, Prettify, UnionPrettify } from "typeforge"

type LuauExecutionState = UnionPrettify<"STATE_UNSPECIFIED" | "QUEUED" | "PROCESSING" | "CANCELLED" | "COMPLETE" | "FAILED">

Expand Down
4 changes: 3 additions & 1 deletion src/apis/cloud/orderedDataStores_V2/orderedDataStores_V2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export const listOrderedDatastoreEntries = addApiMethod(async <UniverseId extend
},
name: `listOrderedDatastoreEntries`,

formatRawDataFn: ({ orderedDataStoreEntries }) => orderedDataStoreEntries
getCursorsFn: ({ nextPageToken }) => [ null, nextPageToken ],

formatRawDataFn: ({ orderedDataStoreEntries }) => orderedDataStoreEntries ?? []
}))


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export type MinimalOrderedDataStoreEntry<

// GET /v2/universes/{universeId}/ordered-data-stores/{dataStoreId}/scopes/{scope}/entries ---------------------------
export type RawListOrderedDatastoreEntries<UniverseId extends Identifier, DataStoreId extends string, Scope extends string> = {
orderedDataStoreEntries: MinimalOrderedDataStoreEntry<UniverseId, DataStoreId, Scope>[]
orderedDataStoreEntries: MinimalOrderedDataStoreEntry<UniverseId, DataStoreId, Scope>[],
nextPageToken: string
}

export type PrettifiedListOrderedDatastoreEntries<UniverseId extends Identifier, DataStoreId extends string, Scope extends string> =
Expand Down

0 comments on commit 1e64e01

Please sign in to comment.