@paynow-gg/typescript-sdk 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 PayNow Services Inc
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 PayNow Services Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,32 +1,32 @@
1
- # PayNow TypeScript SDK
2
-
3
- A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @paynow-gg/typescript-sdk
9
- ```
10
-
11
- ## Quick Start
12
-
13
- ```typescript
14
- import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
15
-
16
- const storefront = createStorefrontClient("411486491630370816");
17
-
18
- storefront.store.getStorefrontStore().then((res) => console.log(res.data));
19
- ```
20
-
21
- For issues with the SDK, please open an issue on GitHub.
22
- For PayNow API documentation and support, visit the PayNow developer portal.
23
-
24
- ## PayNow.gg Support
25
-
26
- For support, questions, or more information, join our Discord community:
27
-
28
- - [Discord](https://discord.com/invite/paynow)
29
-
30
- ## Contributing
31
-
1
+ # PayNow TypeScript SDK
2
+
3
+ A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @paynow-gg/typescript-sdk
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
15
+
16
+ const storefront = createStorefrontClient("411486491630370816");
17
+
18
+ storefront.store.getStorefrontStore().then((res) => console.log(res.data));
19
+ ```
20
+
21
+ For issues with the SDK, please open an issue on GitHub.
22
+ For PayNow API documentation and support, visit the PayNow developer portal.
23
+
24
+ ## PayNow.gg Support
25
+
26
+ For support, questions, or more information, join our Discord community:
27
+
28
+ - [Discord](https://discord.com/invite/paynow)
29
+
30
+ ## Contributing
31
+
32
32
  Contributions are welcome! If you'd like to improve the SDK or suggest new features, please fork the repository, make your changes, and submit a pull request.
@@ -408,23 +408,6 @@ export interface paths {
408
408
  patch?: never;
409
409
  trace?: never;
410
410
  };
411
- "/v1/stores/{storeId}/delivery/items/update-product-versions": {
412
- parameters: {
413
- query?: never;
414
- header?: never;
415
- path?: never;
416
- cookie?: never;
417
- };
418
- get?: never;
419
- put?: never;
420
- /** Update product version id for delivery items of given product id */
421
- post: operations["Delivery_UpdateDeliveryItemProductVersions"];
422
- delete?: never;
423
- options?: never;
424
- head?: never;
425
- patch?: never;
426
- trace?: never;
427
- };
428
411
  "/v1/stores/{storeId}/command-delivery": {
429
412
  parameters: {
430
413
  query?: never;
@@ -1188,6 +1171,54 @@ export interface paths {
1188
1171
  patch?: never;
1189
1172
  trace?: never;
1190
1173
  };
1174
+ "/v1/stores/{storeId}/products/{productId}/dependent-migrations": {
1175
+ parameters: {
1176
+ query?: never;
1177
+ header?: never;
1178
+ path?: never;
1179
+ cookie?: never;
1180
+ };
1181
+ get: operations["ProductDependentMigrations_GetProductDependentMigrations"];
1182
+ put?: never;
1183
+ post: operations["ProductDependentMigrations_CreateProductDependentMigration"];
1184
+ delete?: never;
1185
+ options?: never;
1186
+ head?: never;
1187
+ patch?: never;
1188
+ trace?: never;
1189
+ };
1190
+ "/v1/stores/{storeId}/products/{productId}/dependent-migrations/estimate": {
1191
+ parameters: {
1192
+ query?: never;
1193
+ header?: never;
1194
+ path?: never;
1195
+ cookie?: never;
1196
+ };
1197
+ get: operations["ProductDependentMigrations_GetProductDependentMigrationEstimate"];
1198
+ put?: never;
1199
+ post?: never;
1200
+ delete?: never;
1201
+ options?: never;
1202
+ head?: never;
1203
+ patch?: never;
1204
+ trace?: never;
1205
+ };
1206
+ "/v1/stores/{storeId}/product-dependent-migrations/{productDependentMigrationId}": {
1207
+ parameters: {
1208
+ query?: never;
1209
+ header?: never;
1210
+ path?: never;
1211
+ cookie?: never;
1212
+ };
1213
+ get: operations["ProductDependentMigrations_GetProductDependentMigrationById"];
1214
+ put?: never;
1215
+ post?: never;
1216
+ delete?: never;
1217
+ options?: never;
1218
+ head?: never;
1219
+ patch?: never;
1220
+ trace?: never;
1221
+ };
1191
1222
  "/v1/stores/{storeId}/products": {
1192
1223
  parameters: {
1193
1224
  query?: never;
@@ -2276,6 +2307,10 @@ export interface components {
2276
2307
  /** Format: int32 */
2277
2308
  order?: null | number;
2278
2309
  };
2310
+ CreateProductDependentMigrationRequestDto: {
2311
+ send_new_commands_to_all_servers: boolean;
2312
+ send_all_commands_to_new_servers: boolean;
2313
+ };
2279
2314
  CreateRefundRequestDto: {
2280
2315
  order_line_id?: components["schemas"]["FlakeId"];
2281
2316
  /** @description Determines if the refund should be taken from the connected user's balance.
@@ -3812,6 +3847,48 @@ export interface components {
3812
3847
  /** @description Value indicating whether to grant a giftcard with the product with the subtotal amount. */
3813
3848
  grant_giftcard: boolean;
3814
3849
  };
3850
+ ProductDependentMigrationDto: {
3851
+ id: components["schemas"]["FlakeId"];
3852
+ store_id: components["schemas"]["FlakeId"];
3853
+ product_id: components["schemas"]["FlakeId"];
3854
+ /** Format: date-time */
3855
+ created_at: string;
3856
+ created_by: components["schemas"]["ActorDto"];
3857
+ migration_targets: components["schemas"]["ProductDependentMigrationTargetDto"][];
3858
+ status: components["schemas"]["ProductDependentMigrationStatusDto"];
3859
+ send_new_commands_to_all_servers: boolean;
3860
+ send_all_commands_to_new_servers: boolean;
3861
+ /** Format: date-time */
3862
+ completed_at?: null | string;
3863
+ };
3864
+ ProductDependentMigrationEstimateTargetCountDto: {
3865
+ type: components["schemas"]["ProductDependentMigrationTargetTypeDto"];
3866
+ /** Format: int32 */
3867
+ total_entities: number;
3868
+ };
3869
+ ProductDependentMigrationEstimateVersionDto: {
3870
+ product_version_id: components["schemas"]["FlakeId"];
3871
+ /** Format: date-time */
3872
+ product_version_created_at: string;
3873
+ target_counts: components["schemas"]["ProductDependentMigrationEstimateTargetCountDto"][];
3874
+ };
3875
+ /** @enum {string} */
3876
+ ProductDependentMigrationStatusDto: "invalid" | "created" | "completed";
3877
+ ProductDependentMigrationTargetDto: {
3878
+ type: components["schemas"]["ProductDependentMigrationTargetTypeDto"];
3879
+ versions: components["schemas"]["ProductDependentMigrationTargetVersionDto"][];
3880
+ };
3881
+ /** @enum {string} */
3882
+ ProductDependentMigrationTargetTypeDto: "invalid" | "active_subscriptions" | "active_unused_delivery_items";
3883
+ ProductDependentMigrationTargetVersionDto: {
3884
+ old_product_version_id: components["schemas"]["FlakeId"];
3885
+ /** Format: date-time */
3886
+ old_product_version_created_at: string;
3887
+ new_product_version_id: components["schemas"]["FlakeId"];
3888
+ /** Format: int32 */
3889
+ total_entities_migrated: number;
3890
+ migrated: boolean;
3891
+ };
3815
3892
  ProductDownloadableFileDto: {
3816
3893
  id: components["schemas"]["FlakeId"];
3817
3894
  store_id: components["schemas"]["FlakeId"];
@@ -4952,10 +5029,6 @@ export interface components {
4952
5029
  /** Format: date-time */
4953
5030
  expires_at?: null | string;
4954
5031
  };
4955
- UpdateDeliveryItemProductVersionRequestDto: {
4956
- product_version_id: components["schemas"]["FlakeId"];
4957
- product_id: components["schemas"]["FlakeId"];
4958
- };
4959
5032
  UpdateGameServerDto: {
4960
5033
  name?: string;
4961
5034
  enabled?: boolean;
@@ -6504,41 +6577,6 @@ export interface operations {
6504
6577
  };
6505
6578
  };
6506
6579
  };
6507
- Delivery_UpdateDeliveryItemProductVersions: {
6508
- parameters: {
6509
- query?: never;
6510
- header?: never;
6511
- path?: never;
6512
- cookie?: never;
6513
- };
6514
- requestBody?: {
6515
- content: {
6516
- "application/json": components["schemas"]["UpdateDeliveryItemProductVersionRequestDto"];
6517
- "text/json": components["schemas"]["UpdateDeliveryItemProductVersionRequestDto"];
6518
- "application/*+json": components["schemas"]["UpdateDeliveryItemProductVersionRequestDto"];
6519
- };
6520
- };
6521
- responses: {
6522
- /** @description OK */
6523
- 200: {
6524
- headers: {
6525
- [name: string]: unknown;
6526
- };
6527
- content: {
6528
- "application/json": components["schemas"]["UpdateDeliveryItemProductVersionRequestDto"];
6529
- };
6530
- };
6531
- /** @description Error response */
6532
- default: {
6533
- headers: {
6534
- [name: string]: unknown;
6535
- };
6536
- content: {
6537
- "application/json": components["schemas"]["PayNowError"];
6538
- };
6539
- };
6540
- };
6541
- };
6542
6580
  Delivery_GetCustomerDeliveryItems: {
6543
6581
  parameters: {
6544
6582
  query?: {
@@ -8558,6 +8596,155 @@ export interface operations {
8558
8596
  };
8559
8597
  };
8560
8598
  };
8599
+ ProductDependentMigrations_GetProductDependentMigrations: {
8600
+ parameters: {
8601
+ query?: {
8602
+ /** @description The maximum number of items to return in a single request. */
8603
+ limit?: number;
8604
+ /**
8605
+ * @description Returns items after the specified ID.
8606
+ * Used for forward pagination through results.
8607
+ * @example null
8608
+ */
8609
+ after?: components["schemas"]["FlakeId"];
8610
+ /**
8611
+ * @description Returns items before the specified ID.
8612
+ * Used for backward pagination through results.
8613
+ * @example null
8614
+ */
8615
+ before?: components["schemas"]["FlakeId"];
8616
+ /** @description Determines the sort order of returned items.
8617
+ * When true, items are returned in ascending order.
8618
+ * When false, items are returned in descending order. */
8619
+ asc?: boolean;
8620
+ };
8621
+ header?: never;
8622
+ path: {
8623
+ productId: components["schemas"]["FlakeId"];
8624
+ };
8625
+ cookie?: never;
8626
+ };
8627
+ requestBody?: never;
8628
+ responses: {
8629
+ /** @description OK */
8630
+ 200: {
8631
+ headers: {
8632
+ [name: string]: unknown;
8633
+ };
8634
+ content: {
8635
+ "application/json": components["schemas"]["ProductDependentMigrationDto"][];
8636
+ };
8637
+ };
8638
+ /** @description Error response */
8639
+ default: {
8640
+ headers: {
8641
+ [name: string]: unknown;
8642
+ };
8643
+ content: {
8644
+ "application/json": components["schemas"]["PayNowError"];
8645
+ };
8646
+ };
8647
+ };
8648
+ };
8649
+ ProductDependentMigrations_CreateProductDependentMigration: {
8650
+ parameters: {
8651
+ query?: never;
8652
+ header?: never;
8653
+ path: {
8654
+ productId: components["schemas"]["FlakeId"];
8655
+ };
8656
+ cookie?: never;
8657
+ };
8658
+ requestBody?: {
8659
+ content: {
8660
+ "application/json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8661
+ "text/json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8662
+ "application/*+json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8663
+ };
8664
+ };
8665
+ responses: {
8666
+ /** @description OK */
8667
+ 200: {
8668
+ headers: {
8669
+ [name: string]: unknown;
8670
+ };
8671
+ content: {
8672
+ "application/json": components["schemas"]["ProductDependentMigrationDto"];
8673
+ };
8674
+ };
8675
+ /** @description Error response */
8676
+ default: {
8677
+ headers: {
8678
+ [name: string]: unknown;
8679
+ };
8680
+ content: {
8681
+ "application/json": components["schemas"]["PayNowError"];
8682
+ };
8683
+ };
8684
+ };
8685
+ };
8686
+ ProductDependentMigrations_GetProductDependentMigrationEstimate: {
8687
+ parameters: {
8688
+ query?: never;
8689
+ header?: never;
8690
+ path: {
8691
+ productId: components["schemas"]["FlakeId"];
8692
+ };
8693
+ cookie?: never;
8694
+ };
8695
+ requestBody?: never;
8696
+ responses: {
8697
+ /** @description OK */
8698
+ 200: {
8699
+ headers: {
8700
+ [name: string]: unknown;
8701
+ };
8702
+ content: {
8703
+ "application/json": components["schemas"]["ProductDependentMigrationEstimateVersionDto"][];
8704
+ };
8705
+ };
8706
+ /** @description Error response */
8707
+ default: {
8708
+ headers: {
8709
+ [name: string]: unknown;
8710
+ };
8711
+ content: {
8712
+ "application/json": components["schemas"]["PayNowError"];
8713
+ };
8714
+ };
8715
+ };
8716
+ };
8717
+ ProductDependentMigrations_GetProductDependentMigrationById: {
8718
+ parameters: {
8719
+ query?: never;
8720
+ header?: never;
8721
+ path: {
8722
+ productDependentMigrationId: components["schemas"]["FlakeId"];
8723
+ };
8724
+ cookie?: never;
8725
+ };
8726
+ requestBody?: never;
8727
+ responses: {
8728
+ /** @description OK */
8729
+ 200: {
8730
+ headers: {
8731
+ [name: string]: unknown;
8732
+ };
8733
+ content: {
8734
+ "application/json": components["schemas"]["ProductDependentMigrationDto"];
8735
+ };
8736
+ };
8737
+ /** @description Error response */
8738
+ default: {
8739
+ headers: {
8740
+ [name: string]: unknown;
8741
+ };
8742
+ content: {
8743
+ "application/json": components["schemas"]["PayNowError"];
8744
+ };
8745
+ };
8746
+ };
8747
+ };
8561
8748
  Products_GetProducts: {
8562
8749
  parameters: {
8563
8750
  query?: never;
@@ -10029,10 +10216,6 @@ export declare const operationMappings: {
10029
10216
  readonly method: "POST";
10030
10217
  readonly path: "/v1/stores/{storeId}/delivery/commands/unqueue";
10031
10218
  };
10032
- readonly Delivery_UpdateDeliveryItemProductVersions: {
10033
- readonly method: "POST";
10034
- readonly path: "/v1/stores/{storeId}/delivery/items/update-product-versions";
10035
- };
10036
10219
  readonly Delivery_GetCustomerDeliveryItems: {
10037
10220
  readonly method: "GET";
10038
10221
  readonly path: "/v1/stores/{storeId}/customers/{customerId}/delivery/items";
@@ -10265,6 +10448,22 @@ export declare const operationMappings: {
10265
10448
  readonly method: "GET";
10266
10449
  readonly path: "/v1/stores/{storeId}/payments/{paymentId}";
10267
10450
  };
10451
+ readonly ProductDependentMigrations_GetProductDependentMigrations: {
10452
+ readonly method: "GET";
10453
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations";
10454
+ };
10455
+ readonly ProductDependentMigrations_CreateProductDependentMigration: {
10456
+ readonly method: "POST";
10457
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations";
10458
+ };
10459
+ readonly ProductDependentMigrations_GetProductDependentMigrationEstimate: {
10460
+ readonly method: "GET";
10461
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations/estimate";
10462
+ };
10463
+ readonly ProductDependentMigrations_GetProductDependentMigrationById: {
10464
+ readonly method: "GET";
10465
+ readonly path: "/v1/stores/{storeId}/product-dependent-migrations/{productDependentMigrationId}";
10466
+ };
10268
10467
  readonly Products_GetProducts: {
10269
10468
  readonly method: "GET";
10270
10469
  readonly path: "/v1/stores/{storeId}/products";