@stately-cloud/client
Advanced tools
@@ -8,3 +8,2 @@ // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| import type { Item } from "./item_pb.js"; | ||
| import type { SortableProperty } from "./item_property_pb.js"; | ||
| import type { FilterCondition } from "./list_filters_pb.js"; | ||
@@ -59,10 +58,2 @@ import type { ListToken } from "./list_token_pb.js"; | ||
| /** | ||
| * sort_property is the property of the item to sort the results by. If this | ||
| * is not set, we will sort by key path. | ||
| * | ||
| * @generated from field: stately.db.SortableProperty sort_property = 5; | ||
| */ | ||
| sortProperty: SortableProperty; | ||
| /** | ||
| * sort_direction is the direction to sort the results in. If this is not set, | ||
@@ -69,0 +60,0 @@ * we will sort in ascending order. |
@@ -7,3 +7,2 @@ // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| import { file_db_item } from "./item_pb.js"; | ||
| import { file_db_item_property } from "./item_property_pb.js"; | ||
| import { file_db_list_filters } from "./list_filters_pb.js"; | ||
@@ -18,4 +17,4 @@ import { file_db_list_token } from "./list_token_pb.js"; | ||
| fileDesc( | ||
| "Cg1kYi9saXN0LnByb3RvEgpzdGF0ZWx5LmRiIuECChBCZWdpbkxpc3RSZXF1ZXN0EhAKCHN0b3JlX2lkGAEgASgEEhcKD2tleV9wYXRoX3ByZWZpeBgCIAEoCRINCgVsaW1pdBgDIAEoDRITCgthbGxvd19zdGFsZRgEIAEoCBIzCg1zb3J0X3Byb3BlcnR5GAUgASgOMhwuc3RhdGVseS5kYi5Tb3J0YWJsZVByb3BlcnR5EjEKDnNvcnRfZGlyZWN0aW9uGAYgASgOMhkuc3RhdGVseS5kYi5Tb3J0RGlyZWN0aW9uEhkKEXNjaGVtYV92ZXJzaW9uX2lkGAcgASgNEhEKCXNjaGVtYV9pZBgIIAEoBBI2ChFmaWx0ZXJfY29uZGl0aW9ucxgJIAMoCzIbLnN0YXRlbHkuZGIuRmlsdGVyQ29uZGl0aW9uEjAKDmtleV9jb25kaXRpb25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N0YXRlbHkuRGLKAgpTdGF0ZWx5XERi4gIWU3RhdGVseVxEYlxHUEJNZXRhZGF0YeoCC1N0YXRlbHk6OkRiYgZwcm90bzM", | ||
| [file_db_item, file_db_list_filters, file_db_list_token], | ||
| ); | ||
@@ -22,0 +21,0 @@ |
@@ -12,3 +12,2 @@ // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| import type { Item } from "./item_pb.js"; | ||
| import type { SortableProperty } from "./item_property_pb.js"; | ||
| import type { FilterCondition } from "./list_filters_pb.js"; | ||
@@ -302,10 +301,2 @@ import type { KeyCondition, ListFinished, ListPartialResult, SortDirection } from "./list_pb.js"; | ||
| /** | ||
| * sort_property is the property of the item to sort the results by. If this | ||
| * is not set, we will sort by key path. | ||
| * | ||
| * @generated from field: stately.db.SortableProperty sort_property = 3; | ||
| */ | ||
| sortProperty: SortableProperty; | ||
| /** | ||
| * sort_direction is the direction to sort the results in. If this is not set, | ||
@@ -312,0 +303,0 @@ * we will sort in ascending order. |
@@ -11,3 +11,2 @@ // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| import { file_db_item } from "./item_pb.js"; | ||
| import { file_db_item_property } from "./item_property_pb.js"; | ||
| import { file_db_list_filters } from "./list_filters_pb.js"; | ||
@@ -23,3 +22,3 @@ import { file_db_list } from "./list_pb.js"; | ||
| fileDesc( | ||
| "ChRkYi90cmFuc2FjdGlvbi5wcm90bxIKc3RhdGVseS5kYiLEAwoSVHJhbnNhY3Rpb25SZXF1ZXN0EhIKCm1lc3NhZ2VfaWQYASABKA0SLQoFYmVnaW4YAiABKAsyHC5zdGF0ZWx5LmRiLlRyYW5zYWN0aW9uQmVnaW5IABIvCglnZXRfaXRlbXMYAyABKAsyGi5zdGF0ZWx5LmRiLlRyYW5zYWN0aW9uR2V0SAASNgoKYmVnaW5fbGlzdBgEIAEoCzIgLnN0YXRlbHkuZGIuVHJhbnNhY3Rpb25CZWdpbkxpc3RIABI8Cg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IgASgMSABCBwoFdmFsdWUiQwoRVHJhbnNhY3Rpb25QdXRBY2sSLgoNZ2VuZXJhdGVkX2lkcxgBIAMoCzIXLnN0YXRlbHkuZGIuR2VuZXJhdGVkSUQihAEKF1RyYW5zYWN0aW9uTGlzdFJlc3BvbnNlEi8KBnJlc3VsdBgBIAEoCzIdLnN0YXRlbHkuZGIuTGlzdFBhcnRpYWxSZXN1bHRIABIsCghmaW5pc2hlZBgCIAEoCzIYLnN0YXRlbHkuZGIuTGlzdEZpbmlzaGVkSABCCgoIcmVzcG9uc2UigQEKE1RyYW5zYWN0aW9uRmluaXNoZWQSEQoJY29tbWl0dGVkGAEgASgIEiUKC3B1dF9yZXN1bHRzGAIgAygLMhAuc3RhdGVseS5kYi5JdGVtEjAKDmRlbGV0ZV9yZXN1bHRzGAMgAygLMhguc3RhdGVseS5kYi5EZWxldGVSZXN1bHRCawoOY29tLnN0YXRlbHkuZGJCEFRyYW5zYWN0aW9uUHJvdG9QAaICA1NEWKoCClN0YXRlbHkuRGLKAgpTdGF0ZWx5XERi4gIWU3RhdGVseVxEYlxHUEJNZXRhZGF0YeoCC1N0YXRlbHk6OkRiYgZwcm90bzM", | ||
| [ | ||
@@ -30,3 +29,2 @@ file_db_continue_list, | ||
| file_db_item, | ||
| file_db_item_property, | ||
| file_db_list, | ||
@@ -33,0 +31,0 @@ file_db_list_filters, |
+103
-74
@@ -68,7 +68,8 @@ import { type MessageInitShape, MessageShape } from "@bufbuild/protobuf"; | ||
| * get retrieves an item by its full key path. This will return the item if it | ||
| * exists, or undefined if it does not. It will fail if the caller does not | ||
| * have permission to read Items. | ||
| * exists, or undefined if it does not. | ||
| * @param itemType - One of the itemType names from your schema. This is used | ||
| * to determine the type of the resulting item. | ||
| * @param keyPath - The full key path of the item. | ||
| * @returns The Stately Item retrieved from the store or undefined if no item | ||
| * was found. | ||
| * @example | ||
@@ -79,10 +80,12 @@ * const item = await client.get('Equipment', "/jedi-luke/equipment-lightsaber"); | ||
| /** | ||
| * getBatch retrieves up to 100 items by their full key paths. This will return | ||
| * the corresponding items that exist. It will fail if the caller does not | ||
| * have permission to read Items. Use BeginList if you want to retrieve | ||
| * multiple items but don't already know the full key paths of the items you | ||
| * want to get. You can get items of different types in a single getBatch - | ||
| * you will need to use `DatabaseClient.isType` to determine what item type | ||
| * each item is. | ||
| * @param keyPaths - The full key path of each item to load. Max 100 key paths. | ||
| * getBatch retrieves multiple items by their full key paths. This will return | ||
| * the corresponding items that exist. Use beginList instead if you want to | ||
| * retrieve multiple items but don't already know the full key paths of the | ||
| * items you want to get. You can get items of different types in a single | ||
| * getBatch - you will need to use `DatabaseClient.isType` to determine what | ||
| * item type each item is. | ||
| * @param keyPaths - The full key path of each item to load. | ||
| * @returns The list of Items retrieved from the store. These are returned as | ||
| * generic items and should be checked with `client.isType` to determine their | ||
| * type. | ||
| * @example | ||
@@ -97,4 +100,9 @@ * const [firstItem, secondItem] = await client.getBatch("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| * put adds an Item to the Store, or replaces the Item if it already exists at | ||
| * that path. This will fail if the caller does not have permission to create | ||
| * Items. | ||
| * that path. | ||
| * | ||
| * This call will fail if: | ||
| * - The Item conflicts with an existing Item at the same path and the | ||
| * mustNotExist option is set, or the item's ID will be chosen with | ||
| * an `initialValue` and one of its other key paths conflicts with an | ||
| * existing item. | ||
| * @param item - An Item from your generated schema. Use `withPutOptions` to | ||
@@ -113,9 +121,14 @@ * specify additional options for this item. | ||
| /** | ||
| * putBatch adds up to 50 Items to the Store, or replaces Items if they | ||
| * already exist at that path. This will fail if the caller does not have | ||
| * permission to create Items. Data can be provided as either JSON, or as a | ||
| * proto encoded by a previously agreed upon schema, or by some combination of | ||
| * the two. You can put items of different types in a single putBatch. | ||
| * @param items - Items from your generated schema. Max 50 items. Use | ||
| * `withPutOptions` to add options to individual items. | ||
| * putBatch adds multiple Items to the Store, or replaces Items if they | ||
| * already exist at that path. You can put items of different types in a | ||
| * single putBatch. All puts in the request are applied atomically - there are | ||
| * no partial successes. | ||
| * | ||
| * This will fail if: | ||
| * - Any Item conflicts with an existing Item at the same path and its | ||
| * MustNotExist option is set, or the item's ID will be chosen with an | ||
| * `initialValue` and one of its other key paths conflicts with an existing | ||
| * item. | ||
| * @param items - Items from your generated schema. Use `withPutOptions` to | ||
| * add options to individual items. | ||
| * @returns The items that were put, with any server-generated fields filled | ||
@@ -133,5 +146,8 @@ * in. They are returned in the same order they were provided. | ||
| /** | ||
| * del removes up to 50 Items from the Store by their full key paths. This | ||
| * will fail if the caller does not have permission to delete Items. | ||
| * @param keyPaths - The full key paths of the items. Max 50 key paths. | ||
| * delete removes one or more items from the Store by their full key paths. | ||
| * delete succeeds even if there isn't an item at that key path. Tombstones | ||
| * will be saved for deleted items for some time, so that syncList can return | ||
| * information about deleted items. Deletes are always applied atomically; all | ||
| * will fail or all will succeed. | ||
| * @param keyPaths - The full key paths of the items. | ||
| * @example | ||
@@ -142,10 +158,12 @@ * await client.del("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| /** | ||
| * beginList retrieves Items that start with a specified keyPathPrefix. The | ||
| * key path prefix must minimally contain a Group Key (a single key segment | ||
| * with a namespace and an ID). BeginList will return an empty result set if | ||
| * there are no items matching that key prefix. This API returns a token that | ||
| * you can pass to ContinueList to expand the result set, or to SyncList to | ||
| * get updates within the result set. This can fail if the caller does not | ||
| * have permission to read Items. | ||
| * beginList retrieves Items that start with a specified keyPathPrefix from a | ||
| * single Group. Because it can only list items from a single Group, the key | ||
| * path prefix must at least start with a full Group Key (a single key segment | ||
| * with a namespace and an ID, e.g. `/user-1234`). | ||
| * | ||
| * beginList will return an empty result set if there are no items matching | ||
| * that key prefix. This API returns a token that you can pass to | ||
| * continue_list to expand the result set, or to sync_list to get updates | ||
| * within the result set. | ||
| * | ||
| * beginList streams results via an AsyncGenerator, allowing you to handle | ||
@@ -157,3 +175,5 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * use `client.isItemType` to handle different item types. | ||
| * @param keyPathPrefix - The key path prefix to query for. | ||
| * @param keyPathPrefix - The key path prefix to query for. It must be at | ||
| * least a full Group Key (e.g. `/user-1234`). | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * @example | ||
@@ -206,13 +226,6 @@ * // With "for await" | ||
| /** | ||
| * beginScan begins a scan operation over all Items in the store. This API | ||
| * returns a token that you can pass to continueScan to expand the result set. | ||
| * This can fail if the caller does not have permission to read Items. Pass a | ||
| * list of Item types to filter the results to only those types. If you don't | ||
| * pass any types, all items will be returned. | ||
| * beginScan initiates a scan request which will scan over the entire store | ||
| * and apply the provided filters. This API returns a token that you can pass | ||
| * to continueScan to paginate through the result set. | ||
| * | ||
| * The limit parameter allows you to set the max number of items to retrieve. | ||
| * If set to 0 then the first page of results will be returned which may be | ||
| * empty because it does not contain items of your selected item types. Be | ||
| * sure to check `token.canContinue` to see if there are more results to fetch. | ||
| * | ||
| * beginScan streams results via an AsyncGenerator, allowing you to handle | ||
@@ -225,5 +238,6 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * | ||
| * WARNING: THIS API CAN BE EXTREMELY EXPENSIVE FOR STORES WITH A LARGE NUMBER | ||
| * OF ITEMS. | ||
| * WARNING: THIS API CAN BE EXPENSIVE FOR STORES WITH A LARGE NUMBER OF ITEMS. | ||
| * | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * | ||
| * @example | ||
@@ -243,11 +257,5 @@ * // With "for await" | ||
| /** | ||
| * continueScan takes the token from a beginScan call and returns the next | ||
| * "page" of results based on the original parameters. It doesn't have options | ||
| * because it is a continuation of a previous scan operation. It will return a | ||
| * new token which can be used for another continueScan call, and so on. Each | ||
| * time you call either continueScan, you should pass the latest version of | ||
| * the token, and then use the new token from the result in subsequent calls. | ||
| * Calls to continueScan are tied to the authorization of the original | ||
| * beginScan call, so if the original beginScan call was allowed, continueScan | ||
| * with its token should also be allowed. | ||
| * continueScan takes the token from a begin_scan call and returns the next | ||
| * "page" of results based on the original query parameters and pagination | ||
| * options. | ||
| * | ||
@@ -265,2 +273,3 @@ * continueScan streams results via an AsyncGenerator, allowing you to handle | ||
| * @param tokenData - the token data from the previous list operation. | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * @example | ||
@@ -281,13 +290,14 @@ * const scanResp = client.continueScan(token.data); | ||
| * List operation. For all Items within the result set that were modified, it | ||
| * returns the full Item at in its current state. It also returns a list of | ||
| * Item key paths that were deleted since the last syncList, which you should | ||
| * reconcile with your view of items returned from previous | ||
| * beginList/continueList calls. Using this API, you can start with an initial | ||
| * set of items from beginList, and then stay up to date on any changes via | ||
| * repeated syncList requests over time. The token is the same one used by | ||
| * continueList - each time you call either continueList or syncList, you | ||
| * should pass the latest version of the token, and then use the new token | ||
| * from the result in subsequent calls. Note that if the result set has | ||
| * returns the full Item at in its current state. If the result set has | ||
| * already been expanded to the end (in the direction of the original | ||
| * beginList request), syncList will return newly created Items. You may | ||
| * beginList request), syncList will return newly created Items as well. It | ||
| * also returns a list of Item key paths that were deleted since the last | ||
| * syncList, which you should reconcile with your view of items returned from | ||
| * previous beginList/continueList calls. Using this API, you can start with | ||
| * an initial set of items from beginList, and then stay up to date on any | ||
| * changes via repeated syncList requests over time. | ||
| * | ||
| * The token is the same one used by continueList - each time you call either | ||
| * continueList or syncList, you should pass the latest version of the token, | ||
| * and then use the new token from the result in subsequent calls. You may | ||
| * interleave continueList and syncList calls however you like, but it does | ||
@@ -302,4 +312,16 @@ * not make sense to make both calls in parallel. Calls to syncList are tied | ||
| * | ||
| * You can sync items of different types in a single syncList, and you can use | ||
| * `client.isItemType` to handle different item types. | ||
| * Each result will have one of the following values for its `type` property: | ||
| * - "changed": An item that was changed or added since the last | ||
| * SyncList call. | ||
| * - "deleted": The key path of an item that was deleted since | ||
| * the last SyncList call. | ||
| * - "updatedOutsideWindow": An item that was updated but | ||
| * is not within the current result set. You can treat this like | ||
| * "deleted", but the item hasn't actually been deleted, it's | ||
| * just not part of your view of the list anymore. | ||
| * - "reset": A reset signal that indicates any previously cached | ||
| * view of the result set is no longer valid. You should throw away | ||
| * any locally cached data. This will always be followed by a series | ||
| * of "changed" messages that make up a new view of the result set. | ||
| * @returns A ListResult that can be iterated over to get the changes. | ||
| * @example | ||
@@ -327,17 +349,24 @@ * const syncResp = client.syncListStream(token.data); | ||
| /** | ||
| * Transaction starts a transaction, within which you can issue writes and | ||
| * reads in any order, and all writes will either succeed or all will fail. | ||
| * transaction allows you to issue reads and writes in any order, and all | ||
| * writes will either succeed or all will fail when the transaction finishes. | ||
| * You pass it a function with a single parameter, the transaction handler, | ||
| * which lets you perform operations within the transaction. | ||
| * | ||
| * Reads are guaranteed to reflect the state as of when the transaction | ||
| * started. This method may fail if another transaction commits before this | ||
| * one finishes | ||
| * - in that case, you should retry your transaction. | ||
| * started. A transaction may fail if another transaction commits before this | ||
| * one finishes - in that case, you should retry your transaction. | ||
| * | ||
| * If any error is thrown from the handler, the transaction is aborted and | ||
| * none of the changes made in it will be applied. If the handler returns | ||
| * without error, the transaction is automatically committed. | ||
| * If any error is thrown from the handler function, the transaction is | ||
| * aborted and none of the changes made in it will be applied. If the handler | ||
| * returns without error, the transaction is automatically committed. | ||
| * | ||
| * If any of the operations in the handler fails (e.g. a request is invalid) | ||
| * you may not find out until the *next* operation, or once the handler | ||
| * returns, due to some technicalities about how requests are handled. | ||
| * If any of the operations in the handler function fails (e.g. a request is | ||
| * invalid) you may not find out until the *next* operation, or once the block | ||
| * finishes, due to some technicalities about how requests are handled. | ||
| * | ||
| * When the transaction is committed, the result property will contain the | ||
| * full version of any items that were put in the transaction, and the | ||
| * committed property will be True. If the transaction was aborted, the | ||
| * committed property will be False. | ||
| * | ||
| * @example | ||
@@ -344,0 +373,0 @@ * await client.transaction(async (txn) => { |
+103
-76
@@ -6,3 +6,2 @@ import { create, fromBinary, toBinary, } from "@bufbuild/protobuf"; | ||
| import { ItemSchema } from "./api/db/item_pb.js"; | ||
| import { SortableProperty } from "./api/db/item_property_pb.js"; | ||
| import { FilterConditionSchema } from "./api/db/list_filters_pb.js"; | ||
@@ -45,7 +44,8 @@ import { KeyConditionSchema, Operator, SortDirection } from "./api/db/list_pb.js"; | ||
| * get retrieves an item by its full key path. This will return the item if it | ||
| * exists, or undefined if it does not. It will fail if the caller does not | ||
| * have permission to read Items. | ||
| * exists, or undefined if it does not. | ||
| * @param itemType - One of the itemType names from your schema. This is used | ||
| * to determine the type of the resulting item. | ||
| * @param keyPath - The full key path of the item. | ||
| * @returns The Stately Item retrieved from the store or undefined if no item | ||
| * was found. | ||
| * @example | ||
@@ -65,10 +65,12 @@ * const item = await client.get('Equipment', "/jedi-luke/equipment-lightsaber"); | ||
| /** | ||
| * getBatch retrieves up to 100 items by their full key paths. This will return | ||
| * the corresponding items that exist. It will fail if the caller does not | ||
| * have permission to read Items. Use BeginList if you want to retrieve | ||
| * multiple items but don't already know the full key paths of the items you | ||
| * want to get. You can get items of different types in a single getBatch - | ||
| * you will need to use `DatabaseClient.isType` to determine what item type | ||
| * each item is. | ||
| * @param keyPaths - The full key path of each item to load. Max 100 key paths. | ||
| * getBatch retrieves multiple items by their full key paths. This will return | ||
| * the corresponding items that exist. Use beginList instead if you want to | ||
| * retrieve multiple items but don't already know the full key paths of the | ||
| * items you want to get. You can get items of different types in a single | ||
| * getBatch - you will need to use `DatabaseClient.isType` to determine what | ||
| * item type each item is. | ||
| * @param keyPaths - The full key path of each item to load. | ||
| * @returns The list of Items retrieved from the store. These are returned as | ||
| * generic items and should be checked with `client.isType` to determine their | ||
| * type. | ||
| * @example | ||
@@ -94,4 +96,9 @@ * const [firstItem, secondItem] = await client.getBatch("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| * put adds an Item to the Store, or replaces the Item if it already exists at | ||
| * that path. This will fail if the caller does not have permission to create | ||
| * Items. | ||
| * that path. | ||
| * | ||
| * This call will fail if: | ||
| * - The Item conflicts with an existing Item at the same path and the | ||
| * mustNotExist option is set, or the item's ID will be chosen with | ||
| * an `initialValue` and one of its other key paths conflicts with an | ||
| * existing item. | ||
| * @param item - An Item from your generated schema. Use `withPutOptions` to | ||
@@ -116,9 +123,14 @@ * specify additional options for this item. | ||
| /** | ||
| * putBatch adds up to 50 Items to the Store, or replaces Items if they | ||
| * already exist at that path. This will fail if the caller does not have | ||
| * permission to create Items. Data can be provided as either JSON, or as a | ||
| * proto encoded by a previously agreed upon schema, or by some combination of | ||
| * the two. You can put items of different types in a single putBatch. | ||
| * @param items - Items from your generated schema. Max 50 items. Use | ||
| * `withPutOptions` to add options to individual items. | ||
| * putBatch adds multiple Items to the Store, or replaces Items if they | ||
| * already exist at that path. You can put items of different types in a | ||
| * single putBatch. All puts in the request are applied atomically - there are | ||
| * no partial successes. | ||
| * | ||
| * This will fail if: | ||
| * - Any Item conflicts with an existing Item at the same path and its | ||
| * MustNotExist option is set, or the item's ID will be chosen with an | ||
| * `initialValue` and one of its other key paths conflicts with an existing | ||
| * item. | ||
| * @param items - Items from your generated schema. Use `withPutOptions` to | ||
| * add options to individual items. | ||
| * @returns The items that were put, with any server-generated fields filled | ||
@@ -159,5 +171,8 @@ * in. They are returned in the same order they were provided. | ||
| /** | ||
| * del removes up to 50 Items from the Store by their full key paths. This | ||
| * will fail if the caller does not have permission to delete Items. | ||
| * @param keyPaths - The full key paths of the items. Max 50 key paths. | ||
| * delete removes one or more items from the Store by their full key paths. | ||
| * delete succeeds even if there isn't an item at that key path. Tombstones | ||
| * will be saved for deleted items for some time, so that syncList can return | ||
| * information about deleted items. Deletes are always applied atomically; all | ||
| * will fail or all will succeed. | ||
| * @param keyPaths - The full key paths of the items. | ||
| * @example | ||
@@ -177,10 +192,12 @@ * await client.del("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| /** | ||
| * beginList retrieves Items that start with a specified keyPathPrefix. The | ||
| * key path prefix must minimally contain a Group Key (a single key segment | ||
| * with a namespace and an ID). BeginList will return an empty result set if | ||
| * there are no items matching that key prefix. This API returns a token that | ||
| * you can pass to ContinueList to expand the result set, or to SyncList to | ||
| * get updates within the result set. This can fail if the caller does not | ||
| * have permission to read Items. | ||
| * beginList retrieves Items that start with a specified keyPathPrefix from a | ||
| * single Group. Because it can only list items from a single Group, the key | ||
| * path prefix must at least start with a full Group Key (a single key segment | ||
| * with a namespace and an ID, e.g. `/user-1234`). | ||
| * | ||
| * beginList will return an empty result set if there are no items matching | ||
| * that key prefix. This API returns a token that you can pass to | ||
| * continue_list to expand the result set, or to sync_list to get updates | ||
| * within the result set. | ||
| * | ||
| * beginList streams results via an AsyncGenerator, allowing you to handle | ||
@@ -192,3 +209,5 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * use `client.isItemType` to handle different item types. | ||
| * @param keyPathPrefix - The key path prefix to query for. | ||
| * @param keyPathPrefix - The key path prefix to query for. It must be at | ||
| * least a full Group Key (e.g. `/user-1234`). | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * @example | ||
@@ -221,3 +240,2 @@ * // With "for await" | ||
| limit, | ||
| sortProperty: SortableProperty.KEY_PATH, | ||
| sortDirection, | ||
@@ -283,13 +301,6 @@ allowStale: this.callOptions.allowStale, | ||
| /** | ||
| * beginScan begins a scan operation over all Items in the store. This API | ||
| * returns a token that you can pass to continueScan to expand the result set. | ||
| * This can fail if the caller does not have permission to read Items. Pass a | ||
| * list of Item types to filter the results to only those types. If you don't | ||
| * pass any types, all items will be returned. | ||
| * beginScan initiates a scan request which will scan over the entire store | ||
| * and apply the provided filters. This API returns a token that you can pass | ||
| * to continueScan to paginate through the result set. | ||
| * | ||
| * The limit parameter allows you to set the max number of items to retrieve. | ||
| * If set to 0 then the first page of results will be returned which may be | ||
| * empty because it does not contain items of your selected item types. Be | ||
| * sure to check `token.canContinue` to see if there are more results to fetch. | ||
| * | ||
| * beginScan streams results via an AsyncGenerator, allowing you to handle | ||
@@ -302,5 +313,6 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * | ||
| * WARNING: THIS API CAN BE EXTREMELY EXPENSIVE FOR STORES WITH A LARGE NUMBER | ||
| * OF ITEMS. | ||
| * WARNING: THIS API CAN BE EXPENSIVE FOR STORES WITH A LARGE NUMBER OF ITEMS. | ||
| * | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * | ||
| * @example | ||
@@ -343,11 +355,5 @@ * // With "for await" | ||
| /** | ||
| * continueScan takes the token from a beginScan call and returns the next | ||
| * "page" of results based on the original parameters. It doesn't have options | ||
| * because it is a continuation of a previous scan operation. It will return a | ||
| * new token which can be used for another continueScan call, and so on. Each | ||
| * time you call either continueScan, you should pass the latest version of | ||
| * the token, and then use the new token from the result in subsequent calls. | ||
| * Calls to continueScan are tied to the authorization of the original | ||
| * beginScan call, so if the original beginScan call was allowed, continueScan | ||
| * with its token should also be allowed. | ||
| * continueScan takes the token from a begin_scan call and returns the next | ||
| * "page" of results based on the original query parameters and pagination | ||
| * options. | ||
| * | ||
@@ -365,2 +371,3 @@ * continueScan streams results via an AsyncGenerator, allowing you to handle | ||
| * @param tokenData - the token data from the previous list operation. | ||
| * @returns A ListResult that can be iterated over to get the items. | ||
| * @example | ||
@@ -393,13 +400,14 @@ * const scanResp = client.continueScan(token.data); | ||
| * List operation. For all Items within the result set that were modified, it | ||
| * returns the full Item at in its current state. It also returns a list of | ||
| * Item key paths that were deleted since the last syncList, which you should | ||
| * reconcile with your view of items returned from previous | ||
| * beginList/continueList calls. Using this API, you can start with an initial | ||
| * set of items from beginList, and then stay up to date on any changes via | ||
| * repeated syncList requests over time. The token is the same one used by | ||
| * continueList - each time you call either continueList or syncList, you | ||
| * should pass the latest version of the token, and then use the new token | ||
| * from the result in subsequent calls. Note that if the result set has | ||
| * returns the full Item at in its current state. If the result set has | ||
| * already been expanded to the end (in the direction of the original | ||
| * beginList request), syncList will return newly created Items. You may | ||
| * beginList request), syncList will return newly created Items as well. It | ||
| * also returns a list of Item key paths that were deleted since the last | ||
| * syncList, which you should reconcile with your view of items returned from | ||
| * previous beginList/continueList calls. Using this API, you can start with | ||
| * an initial set of items from beginList, and then stay up to date on any | ||
| * changes via repeated syncList requests over time. | ||
| * | ||
| * The token is the same one used by continueList - each time you call either | ||
| * continueList or syncList, you should pass the latest version of the token, | ||
| * and then use the new token from the result in subsequent calls. You may | ||
| * interleave continueList and syncList calls however you like, but it does | ||
@@ -414,4 +422,16 @@ * not make sense to make both calls in parallel. Calls to syncList are tied | ||
| * | ||
| * You can sync items of different types in a single syncList, and you can use | ||
| * `client.isItemType` to handle different item types. | ||
| * Each result will have one of the following values for its `type` property: | ||
| * - "changed": An item that was changed or added since the last | ||
| * SyncList call. | ||
| * - "deleted": The key path of an item that was deleted since | ||
| * the last SyncList call. | ||
| * - "updatedOutsideWindow": An item that was updated but | ||
| * is not within the current result set. You can treat this like | ||
| * "deleted", but the item hasn't actually been deleted, it's | ||
| * just not part of your view of the list anymore. | ||
| * - "reset": A reset signal that indicates any previously cached | ||
| * view of the result set is no longer valid. You should throw away | ||
| * any locally cached data. This will always be followed by a series | ||
| * of "changed" messages that make up a new view of the result set. | ||
| * @returns A ListResult that can be iterated over to get the changes. | ||
| * @example | ||
@@ -451,17 +471,24 @@ * const syncResp = client.syncListStream(token.data); | ||
| /** | ||
| * Transaction starts a transaction, within which you can issue writes and | ||
| * reads in any order, and all writes will either succeed or all will fail. | ||
| * transaction allows you to issue reads and writes in any order, and all | ||
| * writes will either succeed or all will fail when the transaction finishes. | ||
| * You pass it a function with a single parameter, the transaction handler, | ||
| * which lets you perform operations within the transaction. | ||
| * | ||
| * Reads are guaranteed to reflect the state as of when the transaction | ||
| * started. This method may fail if another transaction commits before this | ||
| * one finishes | ||
| * - in that case, you should retry your transaction. | ||
| * started. A transaction may fail if another transaction commits before this | ||
| * one finishes - in that case, you should retry your transaction. | ||
| * | ||
| * If any error is thrown from the handler, the transaction is aborted and | ||
| * none of the changes made in it will be applied. If the handler returns | ||
| * without error, the transaction is automatically committed. | ||
| * If any error is thrown from the handler function, the transaction is | ||
| * aborted and none of the changes made in it will be applied. If the handler | ||
| * returns without error, the transaction is automatically committed. | ||
| * | ||
| * If any of the operations in the handler fails (e.g. a request is invalid) | ||
| * you may not find out until the *next* operation, or once the handler | ||
| * returns, due to some technicalities about how requests are handled. | ||
| * If any of the operations in the handler function fails (e.g. a request is | ||
| * invalid) you may not find out until the *next* operation, or once the block | ||
| * finishes, due to some technicalities about how requests are handled. | ||
| * | ||
| * When the transaction is committed, the result property will contain the | ||
| * full version of any items that were put in the transaction, and the | ||
| * committed property will be True. If the transaction was aborted, the | ||
| * committed property will be False. | ||
| * | ||
| * @example | ||
@@ -468,0 +495,0 @@ * await client.transaction(async (txn) => { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"database.js","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EAGV,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,IAAI,EAEJ,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAwB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAwB,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,GAEX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAoB,iBAAiB,EAA0B,MAAM,kBAAkB,CAAC;AAwD/F,MAAM,OAAO,cAAc;IAWzB,YACE,MAAsC,EACtC,OA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CAAC,OAAO,EAAE,CAAC;QAC3E,CAAC;QACD,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;YAC5B,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;QAC/C,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,KAAK,UAAU,YAAY,CAAI,OAAmB;IAChD,IAAI,CAAC;QACH,OAAO,MAAM,OAAO,CAAC;IACvB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"} |
+0
-1
| import { DatabaseClient } from "./database.js"; | ||
| import { type ClientOptions, type ItemTypeMap, type SchemaID, type StoreID } from "./types.js"; | ||
| export { Code } from "@connectrpc/connect"; | ||
| export { SortableProperty } from "./api/db/item_property_pb.js"; | ||
| export { SortDirection } from "./api/db/list_pb.js"; | ||
@@ -6,0 +5,0 @@ export type { ListToken } from "./api/db/list_token_pb.js"; |
+0
-1
@@ -6,3 +6,2 @@ import { DatabaseService } from "./api/db/service_pb.js"; | ||
| export { Code } from "@connectrpc/connect"; | ||
| export { SortableProperty } from "./api/db/item_property_pb.js"; | ||
| export { SortDirection } from "./api/db/list_pb.js"; | ||
@@ -9,0 +8,0 @@ export { accessKeyAuth } from "./auth.js"; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,aAAa;AACb,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAA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,eAAe,EACf,QAAQ,CACT,CAAC;AACJ,CAAC"} |
+36
-31
@@ -35,10 +35,9 @@ import { type MessageShape } from "@bufbuild/protobuf"; | ||
| /** | ||
| * getBatch retrieves up to 100 items by their full key paths. This will return | ||
| * the corresponding items that exist. It will fail if the caller does not | ||
| * have permission to read Items. Use BeginList if you want to retrieve | ||
| * multiple items but don't already know the full key paths of the items you | ||
| * want to get. You can get items of different types in a single getBatch - | ||
| * you will need to use `DatabaseClient.isItemOfType` to determine what item | ||
| * type each item is. | ||
| * @param keyPaths - The full key path of each item to load. Max 100 key paths. | ||
| * getBatch retrieves multiple items by their full key paths. This will return | ||
| * the corresponding items that exist. Use beginList instead if you want to | ||
| * retrieve multiple items but don't already know the full key paths of the | ||
| * items you want to get. You can get items of different types in a single | ||
| * getBatch - you will need to use `DatabaseClient.isItemOfType` to determine | ||
| * what item type each item is. | ||
| * @param keyPaths - The full key path of each item to load. | ||
| * @example | ||
@@ -53,4 +52,3 @@ * const [firstItem, secondItem] = await txn.getBatch("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| * get retrieves an item by its full key path. This will return the item if it | ||
| * exists, or undefined if it does not. It will fail if the caller does not | ||
| * have permission to read Items. | ||
| * exists, or undefined if it does not. | ||
| * @param itemType - One of the itemType names from your schema. This is used | ||
@@ -65,4 +63,8 @@ * to determine the type of the resulting item. | ||
| * put adds an Item to the Store, or replaces the Item if it already exists at | ||
| * that path. This will fail if the caller does not have permission to create | ||
| * Items. | ||
| * that path. Unlike the put method outside of a transaction, this only | ||
| * returns the generated ID of the item, and then only if the item was newly | ||
| * created and has an `initialValue` field in its key. This is so you can use | ||
| * that ID in subsequent puts to reference newly created items. The final put | ||
| * items will not be returned until the transaction is committed, in which | ||
| * case they will be included in the `TransactionResult.puts` list. | ||
| * @param item - An Item from your generated schema. Use `withPutOptions` to | ||
@@ -81,10 +83,11 @@ * specify additional options for this item. | ||
| /** | ||
| * putBatch adds up to 50 Items to the Store, or replaces Items if they | ||
| * already exist at that path. This will fail if the caller does not have | ||
| * permission to create Items. Data can be provided as either JSON, or as a | ||
| * proto encoded by a previously agreed upon schema, or by some combination of | ||
| * the two. You can put items of different types in a single putBatch. Puts | ||
| * will not be acknowledged until the transaction is committed - the | ||
| * TransactionResult will contain the updated metadata for each item. | ||
| * @param items - Items from your generated schema. Max 50 items. Use | ||
| * putBatch adds multiple Items to the Store, or replaces Items if they | ||
| * already exist at that path. Unlike the put_batch method outside of a | ||
| * transaction, this only returns the generated IDs of the items, and then | ||
| * only if the item was newly created and has an `initialValue` field in its | ||
| * key. The IDs are returned in the same order as the inputs. This is so you | ||
| * can use that ID in subsequent puts to reference newly created items. The | ||
| * final put items will not be returned until the transaction is committed, in | ||
| * which case they will be included in the `TransactionResult.puts` list. | ||
| * @param items - Items from your generated schema. Use | ||
| * `withPutOptions` to add options to individual items. | ||
@@ -103,5 +106,5 @@ * @returns An array of generated IDs for each item, if that item had an ID | ||
| /** | ||
| * del removes up to 50 Items from the Store by their full key paths. This | ||
| * will fail if the caller does not have permission to delete Items. | ||
| * @param keyPaths - The full key paths of the items. Max 50 key paths. | ||
| * delete removes one or more items from the Store by their full key paths. | ||
| * delete succeeds even if there isn't an item at that key path. | ||
| * @param keyPaths - The full key paths of the items. | ||
| * @example | ||
@@ -112,10 +115,11 @@ * await txn.del("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| /** | ||
| * beginList retrieves Items that start with a specified keyPathPrefix. The | ||
| * key path prefix must minimally contain a Group Key (a single key segment | ||
| * with a namespace and an ID). BeginList will return an empty result set if | ||
| * there are no items matching that key prefix. This API returns a token that | ||
| * you can pass to ContinueList to expand the result set, or to SyncList to | ||
| * get updates within the result set. This can fail if the caller does not | ||
| * have permission to read Items. | ||
| * beginList retrieves Items that start with a specified keyPathPrefix from a | ||
| * single Group. Because it can only list items from a single Group, the key | ||
| * path prefix must at least start with a full Group Key (a single key segment | ||
| * with a namespace and an ID, e.g. `/user-1234`). | ||
| * | ||
| * beginList will return an empty result set if there are no items matching | ||
| * that key prefix. This API returns a token that you can pass to continueList | ||
| * to expand the result set. | ||
| * | ||
| * beginList streams results via an AsyncGenerator, allowing you to handle | ||
@@ -127,3 +131,4 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * use `client.isItemType` to handle different item types. | ||
| * @param keyPathPrefix - The key path prefix to query for. | ||
| * @param keyPathPrefix - The key path prefix to query for. It must be at | ||
| * least a full Group Key (e.g. `/user-1234`). | ||
| * @example | ||
@@ -130,0 +135,0 @@ * // With "for await" |
+36
-33
@@ -6,3 +6,2 @@ import { create } from "@bufbuild/protobuf"; | ||
| import { GetItemSchema } from "./api/db/get_pb.js"; | ||
| import { SortableProperty } from "./api/db/item_property_pb.js"; | ||
| import { KeyConditionSchema, Operator, SortDirection } from "./api/db/list_pb.js"; | ||
@@ -61,10 +60,9 @@ import { PutItemSchema } from "./api/db/put_pb.js"; | ||
| /** | ||
| * getBatch retrieves up to 100 items by their full key paths. This will return | ||
| * the corresponding items that exist. It will fail if the caller does not | ||
| * have permission to read Items. Use BeginList if you want to retrieve | ||
| * multiple items but don't already know the full key paths of the items you | ||
| * want to get. You can get items of different types in a single getBatch - | ||
| * you will need to use `DatabaseClient.isItemOfType` to determine what item | ||
| * type each item is. | ||
| * @param keyPaths - The full key path of each item to load. Max 100 key paths. | ||
| * getBatch retrieves multiple items by their full key paths. This will return | ||
| * the corresponding items that exist. Use beginList instead if you want to | ||
| * retrieve multiple items but don't already know the full key paths of the | ||
| * items you want to get. You can get items of different types in a single | ||
| * getBatch - you will need to use `DatabaseClient.isItemOfType` to determine | ||
| * what item type each item is. | ||
| * @param keyPaths - The full key path of each item to load. | ||
| * @example | ||
@@ -87,4 +85,3 @@ * const [firstItem, secondItem] = await txn.getBatch("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| * get retrieves an item by its full key path. This will return the item if it | ||
| * exists, or undefined if it does not. It will fail if the caller does not | ||
| * have permission to read Items. | ||
| * exists, or undefined if it does not. | ||
| * @param itemType - One of the itemType names from your schema. This is used | ||
@@ -108,4 +105,8 @@ * to determine the type of the resulting item. | ||
| * put adds an Item to the Store, or replaces the Item if it already exists at | ||
| * that path. This will fail if the caller does not have permission to create | ||
| * Items. | ||
| * that path. Unlike the put method outside of a transaction, this only | ||
| * returns the generated ID of the item, and then only if the item was newly | ||
| * created and has an `initialValue` field in its key. This is so you can use | ||
| * that ID in subsequent puts to reference newly created items. The final put | ||
| * items will not be returned until the transaction is committed, in which | ||
| * case they will be included in the `TransactionResult.puts` list. | ||
| * @param item - An Item from your generated schema. Use `withPutOptions` to | ||
@@ -130,10 +131,11 @@ * specify additional options for this item. | ||
| /** | ||
| * putBatch adds up to 50 Items to the Store, or replaces Items if they | ||
| * already exist at that path. This will fail if the caller does not have | ||
| * permission to create Items. Data can be provided as either JSON, or as a | ||
| * proto encoded by a previously agreed upon schema, or by some combination of | ||
| * the two. You can put items of different types in a single putBatch. Puts | ||
| * will not be acknowledged until the transaction is committed - the | ||
| * TransactionResult will contain the updated metadata for each item. | ||
| * @param items - Items from your generated schema. Max 50 items. Use | ||
| * putBatch adds multiple Items to the Store, or replaces Items if they | ||
| * already exist at that path. Unlike the put_batch method outside of a | ||
| * transaction, this only returns the generated IDs of the items, and then | ||
| * only if the item was newly created and has an `initialValue` field in its | ||
| * key. The IDs are returned in the same order as the inputs. This is so you | ||
| * can use that ID in subsequent puts to reference newly created items. The | ||
| * final put items will not be returned until the transaction is committed, in | ||
| * which case they will be included in the `TransactionResult.puts` list. | ||
| * @param items - Items from your generated schema. Use | ||
| * `withPutOptions` to add options to individual items. | ||
@@ -171,5 +173,5 @@ * @returns An array of generated IDs for each item, if that item had an ID | ||
| /** | ||
| * del removes up to 50 Items from the Store by their full key paths. This | ||
| * will fail if the caller does not have permission to delete Items. | ||
| * @param keyPaths - The full key paths of the items. Max 50 key paths. | ||
| * delete removes one or more items from the Store by their full key paths. | ||
| * delete succeeds even if there isn't an item at that key path. | ||
| * @param keyPaths - The full key paths of the items. | ||
| * @example | ||
@@ -186,10 +188,11 @@ * await txn.del("/jedi-luke/equipment-lightsaber", "/jedi-luke/equipment-cloak"); | ||
| /** | ||
| * beginList retrieves Items that start with a specified keyPathPrefix. The | ||
| * key path prefix must minimally contain a Group Key (a single key segment | ||
| * with a namespace and an ID). BeginList will return an empty result set if | ||
| * there are no items matching that key prefix. This API returns a token that | ||
| * you can pass to ContinueList to expand the result set, or to SyncList to | ||
| * get updates within the result set. This can fail if the caller does not | ||
| * have permission to read Items. | ||
| * beginList retrieves Items that start with a specified keyPathPrefix from a | ||
| * single Group. Because it can only list items from a single Group, the key | ||
| * path prefix must at least start with a full Group Key (a single key segment | ||
| * with a namespace and an ID, e.g. `/user-1234`). | ||
| * | ||
| * beginList will return an empty result set if there are no items matching | ||
| * that key prefix. This API returns a token that you can pass to continueList | ||
| * to expand the result set. | ||
| * | ||
| * beginList streams results via an AsyncGenerator, allowing you to handle | ||
@@ -201,3 +204,4 @@ * results as they arrive. You can call `collect()` on it to get all the | ||
| * use `client.isItemType` to handle different item types. | ||
| * @param keyPathPrefix - The key path prefix to query for. | ||
| * @param keyPathPrefix - The key path prefix to query for. It must be at | ||
| * least a full Group Key (e.g. `/user-1234`). | ||
| * @example | ||
@@ -233,3 +237,2 @@ * // With "for await" | ||
| limit, | ||
| sortProperty: SortableProperty.KEY_PATH, | ||
| sortDirection, | ||
@@ -236,0 +239,0 @@ filterConditions: this.client.buildFilters(itemTypes, celFilters), |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,O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C,CAAC;QACrC,CAAC;IACH,CAAC;CACF"} |
+4
-1
@@ -94,3 +94,6 @@ import type { DescMessage, DescService, MessageShape } from "@bufbuild/protobuf"; | ||
| limit?: number; | ||
| /** The direction to sort the results in. If this is not set, we will sort in ascending order. */ | ||
| /** | ||
| * The direction to sort the results in. If this is not set, we will sort in | ||
| * ascending order. | ||
| */ | ||
| sortDirection?: SortDirection; | ||
@@ -97,0 +100,0 @@ /** |
+1
-1
| { | ||
| "name": "@stately-cloud/client", | ||
| "version": "0.33.1", | ||
| "version": "0.34.0", | ||
| "author": "Stately Cloud <support@stately.cloud> (https://stately.cloud/)", | ||
@@ -5,0 +5,0 @@ "description": "Client for StatelyDB, a document database built on top of DynamoDB with Elastic Schema that allows you to change your data model any time with automatic backwards compatibility.", |
| // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| // @generated from file db/item_property.proto (package stately.db, syntax proto3) | ||
| /* eslint-disable */ | ||
| import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2"; | ||
| /** | ||
| * Describes the file db/item_property.proto. | ||
| */ | ||
| export declare const file_db_item_property: GenFile; | ||
| /** | ||
| * SortableProperty is used to reference a sortable (i.e. locally indexed) | ||
| * property within an item. These properties are either built in, or they must | ||
| * be explicitly declared in the schema / store config so they can be populated | ||
| * when items are written/updated. | ||
| * | ||
| * @generated from enum stately.db.SortableProperty | ||
| */ | ||
| export enum SortableProperty { | ||
| /** | ||
| * SORTABLE_PROPERTY_KEY_PATH is the full key path of the item. This is the | ||
| * default sort property if none is specified. TODO: Document how these are ordered. | ||
| * | ||
| * @generated from enum value: SORTABLE_PROPERTY_KEY_PATH = 0; | ||
| */ | ||
| KEY_PATH = 0, | ||
| /** | ||
| * SORTABLE_PROPERTY_LAST_MODIFIED_VERSION sorts by the last modified version | ||
| * of the items, with ascending order being from oldest to newest. This is | ||
| * only available if the store / item is configured to track last modified | ||
| * versions. | ||
| * | ||
| * @generated from enum value: SORTABLE_PROPERTY_LAST_MODIFIED_VERSION = 1; | ||
| */ | ||
| LAST_MODIFIED_VERSION = 1, | ||
| /** | ||
| * SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_1 through | ||
| * SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_4 are user-specified sortable | ||
| * properties which may be defined in the schema. The maximum supported number | ||
| * of group local indexes currently depends on the store configuration and the | ||
| * underlying database platform. | ||
| * | ||
| * @generated from enum value: SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_1 = 8; | ||
| */ | ||
| GROUP_LOCAL_INDEX_1 = 8, | ||
| /** | ||
| * @generated from enum value: SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_2 = 9; | ||
| */ | ||
| GROUP_LOCAL_INDEX_2 = 9, | ||
| /** | ||
| * @generated from enum value: SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_3 = 10; | ||
| */ | ||
| GROUP_LOCAL_INDEX_3 = 10, | ||
| /** | ||
| * @generated from enum value: SORTABLE_PROPERTY_GROUP_LOCAL_INDEX_4 = 11; | ||
| */ | ||
| GROUP_LOCAL_INDEX_4 = 11, | ||
| } | ||
| /** | ||
| * Describes the enum stately.db.SortableProperty. | ||
| */ | ||
| export declare const SortablePropertySchema: GenEnum<SortableProperty>; |
| // @generated by protoc-gen-es v2.6.3 with parameter "target=js+dts,import_extension=.js" | ||
| // @generated from file db/item_property.proto (package stately.db, syntax proto3) | ||
| /* eslint-disable */ | ||
| import { enumDesc, fileDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; | ||
| /** | ||
| * Describes the file db/item_property.proto. | ||
| */ | ||
| export const file_db_item_property = | ||
| /*@__PURE__*/ | ||
| fileDesc( | ||
| "ChZkYi9pdGVtX3Byb3BlcnR5LnByb3RvEgpzdGF0ZWx5LmRiKosCChBTb3J0YWJsZVByb3BlcnR5Eh4KGlNPUlRBQkxFX1BST1BFUlRZX0tFWV9QQVRIEAASKwonU09SVEFCTEVfUFJPUEVSVFlfTEFTVF9NT0RJRklFRF9WRVJTSU9OEAESKQolU09SVEFCTEVfUFJPUEVSVFlfR1JPVVBfTE9DQUxfSU5ERVhfMRAIEikKJVNPUlRBQkxFX1BST1BFUlRZX0dST1VQX0xPQ0FMX0lOREVYXzIQCRIpCiVTT1JUQUJMRV9QUk9QRVJUWV9HUk9VUF9MT0NBTF9JTkRFWF8zEAoSKQolU09SVEFCTEVfUFJPUEVSVFlfR1JPVVBfTE9DQUxfSU5ERVhfNBALQmwKDmNvbS5zdGF0ZWx5LmRiQhFJdGVtUHJvcGVydHlQcm90b1ABogIDU0RYqgIKU3RhdGVseS5EYsoCClN0YXRlbHlcRGLiAhZTdGF0ZWx5XERiXEdQQk1ldGFkYXRh6gILU3RhdGVseTo6RGJiBnByb3RvMw", | ||
| ); | ||
| /** | ||
| * Describes the enum stately.db.SortableProperty. | ||
| */ | ||
| export const SortablePropertySchema = /*@__PURE__*/ enumDesc(file_db_item_property, 0); | ||
| /** | ||
| * SortableProperty is used to reference a sortable (i.e. locally indexed) | ||
| * property within an item. These properties are either built in, or they must | ||
| * be explicitly declared in the schema / store config so they can be populated | ||
| * when items are written/updated. | ||
| * | ||
| * @generated from enum stately.db.SortableProperty | ||
| */ | ||
| export const SortableProperty = /*@__PURE__*/ tsEnum(SortablePropertySchema); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3
-40%287351
-0.74%71
-2.74%5414
-0.77%26
13.04%