@paynow-gg/typescript-sdk 1.0.36 → 1.0.38

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.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAc,EACZ,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,OAAO,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS;IAC9B,SAAS,EAAE;QAAE,GAAG,EAAE;YAAE,OAAO,EAAE;gBAAE,kBAAkB,EAAE,MAAM,CAAC,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,CAAC;CAClE,GACG,CAAC,GACD,CAAC,SAAS;IACN,SAAS,EAAE;QAAE,GAAG,EAAE;YAAE,OAAO,EAAE;gBAAE,kBAAkB,EAAE,MAAM,CAAC,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,CAAC;CAClE,GACD,CAAC,GACD,CAAC,SAAS;IAAE,SAAS,EAAE;QAAE,GAAG,EAAE,GAAG,CAAA;KAAE,CAAA;CAAE,GACnC,IAAI,GACJ,KAAK,CAAC;AAEd,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,CAAC,SAAS,KAAK,GAC3C,KAAK,GACL,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC3B,EAAE,SAAS,CAAC,GACV,KAAK,GACL,IAAI,GACN,KAAK,CAAC;AAEZ,KAAK,gBAAgB,CAAC,CAAC,SAAS;IAAE,UAAU,CAAC,EAAE,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,IAAI,IAAI,CAC7E,kBAAkB,EAClB,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,CACtC,GACC,CAAC,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gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,GAC/C,CACE,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAC7B,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAC/C,CACE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAC5B,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GACjD,KAAK;KACV;CACF,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACxD,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EACnE,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACzC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,CAAC,CAAC,CAAC,CAiEtB"}
package/dist/client.js CHANGED
@@ -15,6 +15,9 @@ function createClient(operationMappings, defaultHeaders, pathReplacements, optio
15
15
  ...options?.headers,
16
16
  ...defaultHeaders,
17
17
  },
18
+ paramsSerializer: {
19
+ indexes: null,
20
+ },
18
21
  });
19
22
  return new Proxy({}, {
20
23
  get: (_, prop) => {
@@ -41,7 +44,7 @@ function createClient(operationMappings, defaultHeaders, pathReplacements, optio
41
44
  ...config,
42
45
  url,
43
46
  method: mapping.method,
44
- data: config?.data ?? undefined
47
+ data: config?.data ?? undefined,
45
48
  });
46
49
  };
47
50
  },
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;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BACT,GAAG;4BACH,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,SAAS;yBAChC,CAAC,CAAC;oBACL,CAAC,CAAC;gBACJ,CAAC;aACF,CACF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -468,7 +468,7 @@ export interface paths {
468
468
  * Get delivery items associated with a customer
469
469
  * @description Retrieves delivery items associated with a customer
470
470
  */
471
- get: operations["Delivery_GetDeliveryItems"];
471
+ get: operations["Delivery_GetCustomerDeliveryItems"];
472
472
  put?: never;
473
473
  /**
474
474
  * Assign a delivery item to a customer
@@ -512,7 +512,7 @@ export interface paths {
512
512
  * Get command attempts associated with a customer
513
513
  * @description Retrieves command attempts associated with a customer
514
514
  */
515
- get: operations["Delivery_GetCommandAttempts"];
515
+ get: operations["Delivery_GetCommandAttemptsForCustomer"];
516
516
  put?: never;
517
517
  post?: never;
518
518
  delete?: never;
@@ -553,6 +553,23 @@ export interface paths {
553
553
  patch?: never;
554
554
  trace?: never;
555
555
  };
556
+ "/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/items": {
557
+ parameters: {
558
+ query?: never;
559
+ header?: never;
560
+ path?: never;
561
+ cookie?: never;
562
+ };
563
+ /** Returns delivery items in which an associated command attempt is for the gameserver */
564
+ get: operations["Delivery_GetGameServerDeliveryItems"];
565
+ put?: never;
566
+ post?: never;
567
+ delete?: never;
568
+ options?: never;
569
+ head?: never;
570
+ patch?: never;
571
+ trace?: never;
572
+ };
556
573
  "/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/commands/resend": {
557
574
  parameters: {
558
575
  query?: never;
@@ -2135,11 +2152,6 @@ export interface components {
2135
2152
  */
2136
2153
  quantity: number;
2137
2154
  selected_gameserver_id?: components["schemas"]["FlakeId"];
2138
- /** @description Optional metadata to associate with the checkout session line.
2139
- * Do not store any sensitive information here. */
2140
- metadata?: null | {
2141
- [key: string]: string;
2142
- };
2143
2155
  /** @description Key-value pair mapping custom variable identifiers to their selected values.
2144
2156
  * Required only when the product includes custom variables. */
2145
2157
  custom_variables?: null | {
@@ -2162,11 +2174,6 @@ export interface components {
2162
2174
  */
2163
2175
  quantity: number;
2164
2176
  selected_gameserver_id?: components["schemas"]["FlakeId"];
2165
- /** @description Optional metadata to associate with the checkout session line.
2166
- * Do not store any sensitive information here. */
2167
- metadata?: null | {
2168
- [key: string]: string;
2169
- };
2170
2177
  /** @description Key-value pair mapping custom variable identifiers to their selected values.
2171
2178
  * Required only when the product includes custom variables. */
2172
2179
  custom_variables?: null | {
@@ -2174,6 +2181,11 @@ export interface components {
2174
2181
  };
2175
2182
  product_id?: components["schemas"]["FlakeId"];
2176
2183
  inline_product?: components["schemas"]["InlineProductCreateDto"];
2184
+ /** @description Optional metadata to associate with the checkout session line.
2185
+ * Do not store any sensitive information here. */
2186
+ metadata?: null | {
2187
+ [key: string]: string;
2188
+ };
2177
2189
  };
2178
2190
  /** @description Request to create a new checkout session from your back-end server using the management API.
2179
2191
  * `customer_id` needs to be specified explicitly here instead of using a Customer token. */
@@ -2195,12 +2207,12 @@ export interface components {
2195
2207
  cancel_url?: null | string;
2196
2208
  /** @description Whether to automatically redirect the customer (return_url must be set) */
2197
2209
  auto_redirect?: null | boolean;
2210
+ customer_id: components["schemas"]["FlakeId"];
2198
2211
  /** @description Optional metadata to associate with the checkout session.
2199
2212
  * Do not store any sensitive information here. */
2200
2213
  metadata?: null | {
2201
2214
  [key: string]: string;
2202
2215
  };
2203
- customer_id: components["schemas"]["FlakeId"];
2204
2216
  };
2205
2217
  /** @description Response after creating a checkout session */
2206
2218
  CreateCheckoutSessionResponseDto: {
@@ -6390,7 +6402,9 @@ export interface operations {
6390
6402
  };
6391
6403
  Delivery_GetOrderDeliveryItems: {
6392
6404
  parameters: {
6393
- query?: never;
6405
+ query?: {
6406
+ activeOnly?: boolean;
6407
+ };
6394
6408
  header?: never;
6395
6409
  path: {
6396
6410
  /** @description The ID of the order to retrieve delivery items from. */
@@ -6525,7 +6539,7 @@ export interface operations {
6525
6539
  };
6526
6540
  };
6527
6541
  };
6528
- Delivery_GetDeliveryItems: {
6542
+ Delivery_GetCustomerDeliveryItems: {
6529
6543
  parameters: {
6530
6544
  query?: {
6531
6545
  /** @description The maximum number of items to return in a single request. */
@@ -6546,6 +6560,7 @@ export interface operations {
6546
6560
  * When true, items are returned in ascending order.
6547
6561
  * When false, items are returned in descending order. */
6548
6562
  asc?: boolean;
6563
+ activeOnly?: boolean;
6549
6564
  };
6550
6565
  header?: never;
6551
6566
  path: {
@@ -6642,7 +6657,7 @@ export interface operations {
6642
6657
  };
6643
6658
  };
6644
6659
  };
6645
- Delivery_GetCommandAttempts: {
6660
+ Delivery_GetCommandAttemptsForCustomer: {
6646
6661
  parameters: {
6647
6662
  query?: {
6648
6663
  /** @description The maximum number of items to return in a single request. */
@@ -6692,6 +6707,57 @@ export interface operations {
6692
6707
  };
6693
6708
  };
6694
6709
  };
6710
+ Delivery_GetGameServerDeliveryItems: {
6711
+ parameters: {
6712
+ query?: {
6713
+ /** @description The maximum number of items to return in a single request. */
6714
+ limit?: number;
6715
+ /**
6716
+ * @description Returns items after the specified ID.
6717
+ * Used for forward pagination through results.
6718
+ * @example null
6719
+ */
6720
+ after?: components["schemas"]["FlakeId"];
6721
+ /**
6722
+ * @description Returns items before the specified ID.
6723
+ * Used for backward pagination through results.
6724
+ * @example null
6725
+ */
6726
+ before?: components["schemas"]["FlakeId"];
6727
+ /** @description Determines the sort order of returned items.
6728
+ * When true, items are returned in ascending order.
6729
+ * When false, items are returned in descending order. */
6730
+ asc?: boolean;
6731
+ activeOnly?: boolean;
6732
+ };
6733
+ header?: never;
6734
+ path: {
6735
+ gameServerId: components["schemas"]["FlakeId"];
6736
+ };
6737
+ cookie?: never;
6738
+ };
6739
+ requestBody?: never;
6740
+ responses: {
6741
+ /** @description OK */
6742
+ 200: {
6743
+ headers: {
6744
+ [name: string]: unknown;
6745
+ };
6746
+ content: {
6747
+ "application/json": components["schemas"]["DeliveryItemDto"][];
6748
+ };
6749
+ };
6750
+ /** @description Error response */
6751
+ default: {
6752
+ headers: {
6753
+ [name: string]: unknown;
6754
+ };
6755
+ content: {
6756
+ "application/json": components["schemas"]["PayNowError"];
6757
+ };
6758
+ };
6759
+ };
6760
+ };
6695
6761
  Delivery_ResendDeliveryCommandsForGameServer: {
6696
6762
  parameters: {
6697
6763
  query?: never;
@@ -9967,7 +10033,7 @@ export declare const operationMappings: {
9967
10033
  readonly method: "POST";
9968
10034
  readonly path: "/v1/stores/{storeId}/delivery/items/update-product-versions";
9969
10035
  };
9970
- readonly Delivery_GetDeliveryItems: {
10036
+ readonly Delivery_GetCustomerDeliveryItems: {
9971
10037
  readonly method: "GET";
9972
10038
  readonly path: "/v1/stores/{storeId}/customers/{customerId}/delivery/items";
9973
10039
  };
@@ -9979,10 +10045,14 @@ export declare const operationMappings: {
9979
10045
  readonly method: "DELETE";
9980
10046
  readonly path: "/v1/stores/{storeId}/customers/{customerId}/delivery/items/{deliveryItemId}";
9981
10047
  };
9982
- readonly Delivery_GetCommandAttempts: {
10048
+ readonly Delivery_GetCommandAttemptsForCustomer: {
9983
10049
  readonly method: "GET";
9984
10050
  readonly path: "/v1/stores/{storeId}/customers/{customerId}/delivery/commands";
9985
10051
  };
10052
+ readonly Delivery_GetGameServerDeliveryItems: {
10053
+ readonly method: "GET";
10054
+ readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/items";
10055
+ };
9986
10056
  readonly Delivery_ResendDeliveryCommandsForGameServer: {
9987
10057
  readonly method: "POST";
9988
10058
  readonly path: "/v1/stores/{storeId}/gameservers/{gameServerId}/delivery/commands/resend";