@paynow-gg/typescript-sdk 1.0.38 → 1.0.39

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,9 @@ export interface components {
2276
2307
  /** Format: int32 */
2277
2308
  order?: null | number;
2278
2309
  };
2310
+ CreateProductDependentMigrationRequestDto: {
2311
+ types: components["schemas"]["ProductDependentMigrationTargetTypeDto"][];
2312
+ };
2279
2313
  CreateRefundRequestDto: {
2280
2314
  order_line_id?: components["schemas"]["FlakeId"];
2281
2315
  /** @description Determines if the refund should be taken from the connected user's balance.
@@ -3812,6 +3846,46 @@ export interface components {
3812
3846
  /** @description Value indicating whether to grant a giftcard with the product with the subtotal amount. */
3813
3847
  grant_giftcard: boolean;
3814
3848
  };
3849
+ ProductDependentMigrationDto: {
3850
+ id: components["schemas"]["FlakeId"];
3851
+ store_id: components["schemas"]["FlakeId"];
3852
+ product_id: components["schemas"]["FlakeId"];
3853
+ /** Format: date-time */
3854
+ created_at: string;
3855
+ created_by: components["schemas"]["ActorDto"];
3856
+ migration_targets: components["schemas"]["ProductDependentMigrationTargetDto"][];
3857
+ status: components["schemas"]["ProductDependentMigrationStatusDto"];
3858
+ /** Format: date-time */
3859
+ completed_at?: null | string;
3860
+ };
3861
+ ProductDependentMigrationEstimateTargetCountDto: {
3862
+ type: components["schemas"]["ProductDependentMigrationTargetTypeDto"];
3863
+ /** Format: int32 */
3864
+ total_entities: number;
3865
+ };
3866
+ ProductDependentMigrationEstimateVersionDto: {
3867
+ product_version_id: components["schemas"]["FlakeId"];
3868
+ /** Format: date-time */
3869
+ product_version_created_at: string;
3870
+ target_counts: components["schemas"]["ProductDependentMigrationEstimateTargetCountDto"][];
3871
+ };
3872
+ /** @enum {string} */
3873
+ ProductDependentMigrationStatusDto: "invalid" | "created" | "completed";
3874
+ ProductDependentMigrationTargetDto: {
3875
+ type: components["schemas"]["ProductDependentMigrationTargetTypeDto"];
3876
+ versions: components["schemas"]["ProductDependentMigrationTargetVersionDto"][];
3877
+ };
3878
+ /** @enum {string} */
3879
+ ProductDependentMigrationTargetTypeDto: "invalid" | "active_subscriptions" | "active_unused_delivery_items";
3880
+ ProductDependentMigrationTargetVersionDto: {
3881
+ old_product_version_id: components["schemas"]["FlakeId"];
3882
+ /** Format: date-time */
3883
+ old_product_version_created_at: string;
3884
+ new_product_version_id: components["schemas"]["FlakeId"];
3885
+ /** Format: int32 */
3886
+ total_entities_migrated: number;
3887
+ migrated: boolean;
3888
+ };
3815
3889
  ProductDownloadableFileDto: {
3816
3890
  id: components["schemas"]["FlakeId"];
3817
3891
  store_id: components["schemas"]["FlakeId"];
@@ -4952,10 +5026,6 @@ export interface components {
4952
5026
  /** Format: date-time */
4953
5027
  expires_at?: null | string;
4954
5028
  };
4955
- UpdateDeliveryItemProductVersionRequestDto: {
4956
- product_version_id: components["schemas"]["FlakeId"];
4957
- product_id: components["schemas"]["FlakeId"];
4958
- };
4959
5029
  UpdateGameServerDto: {
4960
5030
  name?: string;
4961
5031
  enabled?: boolean;
@@ -6504,41 +6574,6 @@ export interface operations {
6504
6574
  };
6505
6575
  };
6506
6576
  };
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
6577
  Delivery_GetCustomerDeliveryItems: {
6543
6578
  parameters: {
6544
6579
  query?: {
@@ -8558,6 +8593,155 @@ export interface operations {
8558
8593
  };
8559
8594
  };
8560
8595
  };
8596
+ ProductDependentMigrations_GetProductDependentMigrations: {
8597
+ parameters: {
8598
+ query?: {
8599
+ /** @description The maximum number of items to return in a single request. */
8600
+ limit?: number;
8601
+ /**
8602
+ * @description Returns items after the specified ID.
8603
+ * Used for forward pagination through results.
8604
+ * @example null
8605
+ */
8606
+ after?: components["schemas"]["FlakeId"];
8607
+ /**
8608
+ * @description Returns items before the specified ID.
8609
+ * Used for backward pagination through results.
8610
+ * @example null
8611
+ */
8612
+ before?: components["schemas"]["FlakeId"];
8613
+ /** @description Determines the sort order of returned items.
8614
+ * When true, items are returned in ascending order.
8615
+ * When false, items are returned in descending order. */
8616
+ asc?: boolean;
8617
+ };
8618
+ header?: never;
8619
+ path: {
8620
+ productId: components["schemas"]["FlakeId"];
8621
+ };
8622
+ cookie?: never;
8623
+ };
8624
+ requestBody?: never;
8625
+ responses: {
8626
+ /** @description OK */
8627
+ 200: {
8628
+ headers: {
8629
+ [name: string]: unknown;
8630
+ };
8631
+ content: {
8632
+ "application/json": components["schemas"]["ProductDependentMigrationDto"][];
8633
+ };
8634
+ };
8635
+ /** @description Error response */
8636
+ default: {
8637
+ headers: {
8638
+ [name: string]: unknown;
8639
+ };
8640
+ content: {
8641
+ "application/json": components["schemas"]["PayNowError"];
8642
+ };
8643
+ };
8644
+ };
8645
+ };
8646
+ ProductDependentMigrations_CreateProductDependentMigration: {
8647
+ parameters: {
8648
+ query?: never;
8649
+ header?: never;
8650
+ path: {
8651
+ productId: components["schemas"]["FlakeId"];
8652
+ };
8653
+ cookie?: never;
8654
+ };
8655
+ requestBody?: {
8656
+ content: {
8657
+ "application/json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8658
+ "text/json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8659
+ "application/*+json": components["schemas"]["CreateProductDependentMigrationRequestDto"];
8660
+ };
8661
+ };
8662
+ responses: {
8663
+ /** @description OK */
8664
+ 200: {
8665
+ headers: {
8666
+ [name: string]: unknown;
8667
+ };
8668
+ content: {
8669
+ "application/json": components["schemas"]["ProductDependentMigrationDto"];
8670
+ };
8671
+ };
8672
+ /** @description Error response */
8673
+ default: {
8674
+ headers: {
8675
+ [name: string]: unknown;
8676
+ };
8677
+ content: {
8678
+ "application/json": components["schemas"]["PayNowError"];
8679
+ };
8680
+ };
8681
+ };
8682
+ };
8683
+ ProductDependentMigrations_GetProductDependentMigrationEstimate: {
8684
+ parameters: {
8685
+ query?: never;
8686
+ header?: never;
8687
+ path: {
8688
+ productId: components["schemas"]["FlakeId"];
8689
+ };
8690
+ cookie?: never;
8691
+ };
8692
+ requestBody?: never;
8693
+ responses: {
8694
+ /** @description OK */
8695
+ 200: {
8696
+ headers: {
8697
+ [name: string]: unknown;
8698
+ };
8699
+ content: {
8700
+ "application/json": components["schemas"]["ProductDependentMigrationEstimateVersionDto"][];
8701
+ };
8702
+ };
8703
+ /** @description Error response */
8704
+ default: {
8705
+ headers: {
8706
+ [name: string]: unknown;
8707
+ };
8708
+ content: {
8709
+ "application/json": components["schemas"]["PayNowError"];
8710
+ };
8711
+ };
8712
+ };
8713
+ };
8714
+ ProductDependentMigrations_GetProductDependentMigrationById: {
8715
+ parameters: {
8716
+ query?: never;
8717
+ header?: never;
8718
+ path: {
8719
+ productDependentMigrationId: components["schemas"]["FlakeId"];
8720
+ };
8721
+ cookie?: never;
8722
+ };
8723
+ requestBody?: never;
8724
+ responses: {
8725
+ /** @description OK */
8726
+ 200: {
8727
+ headers: {
8728
+ [name: string]: unknown;
8729
+ };
8730
+ content: {
8731
+ "application/json": components["schemas"]["ProductDependentMigrationDto"];
8732
+ };
8733
+ };
8734
+ /** @description Error response */
8735
+ default: {
8736
+ headers: {
8737
+ [name: string]: unknown;
8738
+ };
8739
+ content: {
8740
+ "application/json": components["schemas"]["PayNowError"];
8741
+ };
8742
+ };
8743
+ };
8744
+ };
8561
8745
  Products_GetProducts: {
8562
8746
  parameters: {
8563
8747
  query?: never;
@@ -10029,10 +10213,6 @@ export declare const operationMappings: {
10029
10213
  readonly method: "POST";
10030
10214
  readonly path: "/v1/stores/{storeId}/delivery/commands/unqueue";
10031
10215
  };
10032
- readonly Delivery_UpdateDeliveryItemProductVersions: {
10033
- readonly method: "POST";
10034
- readonly path: "/v1/stores/{storeId}/delivery/items/update-product-versions";
10035
- };
10036
10216
  readonly Delivery_GetCustomerDeliveryItems: {
10037
10217
  readonly method: "GET";
10038
10218
  readonly path: "/v1/stores/{storeId}/customers/{customerId}/delivery/items";
@@ -10265,6 +10445,22 @@ export declare const operationMappings: {
10265
10445
  readonly method: "GET";
10266
10446
  readonly path: "/v1/stores/{storeId}/payments/{paymentId}";
10267
10447
  };
10448
+ readonly ProductDependentMigrations_GetProductDependentMigrations: {
10449
+ readonly method: "GET";
10450
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations";
10451
+ };
10452
+ readonly ProductDependentMigrations_CreateProductDependentMigration: {
10453
+ readonly method: "POST";
10454
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations";
10455
+ };
10456
+ readonly ProductDependentMigrations_GetProductDependentMigrationEstimate: {
10457
+ readonly method: "GET";
10458
+ readonly path: "/v1/stores/{storeId}/products/{productId}/dependent-migrations/estimate";
10459
+ };
10460
+ readonly ProductDependentMigrations_GetProductDependentMigrationById: {
10461
+ readonly method: "GET";
10462
+ readonly path: "/v1/stores/{storeId}/product-dependent-migrations/{productDependentMigrationId}";
10463
+ };
10268
10464
  readonly Products_GetProducts: {
10269
10465
  readonly method: "GET";
10270
10466
  readonly path: "/v1/stores/{storeId}/products";