@paynow-gg/typescript-sdk 1.0.27 → 1.0.29
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/dist/generate.js +1 -0
- package/dist/generate.js.map +1 -1
- package/dist/generated/management.d.ts +74 -6
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js +4 -0
- package/dist/generated/management.js.map +1 -1
- package/dist/generated/storefront.d.ts +6 -0
- package/dist/generated/storefront.d.ts.map +1 -1
- package/dist/generated/storefront.js.map +1 -1
- package/dist/generated/webhooks.d.ts +2891 -0
- package/dist/generated/webhooks.d.ts.map +1 -0
- package/dist/generated/webhooks.js +5 -0
- package/dist/generated/webhooks.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +1 -1
package/dist/generate.js
CHANGED
|
@@ -98,4 +98,5 @@ async function generate(name, endpoint) {
|
|
|
98
98
|
}
|
|
99
99
|
generate("management", "https://api.paynow.gg/swagger/management-api/openapi.json");
|
|
100
100
|
generate("storefront", "https://api.paynow.gg/swagger/storefront-api/openapi.json");
|
|
101
|
+
generate("webhooks", "https://api.paynow.gg/swagger/webhook-definitions/openapi.json");
|
|
101
102
|
//# sourceMappingURL=generate.js.map
|
package/dist/generate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAyB;AACzB,yEAA4D;AAE5D,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AACrD,MAAM,gBAAgB,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAE/C,KAAK,UAAU,QAAQ,CAAC,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AAI,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,IAAA,gCAAW,EAAC,GAAG,CAAC,CAAC;IAEhC,mCAAmC;IAEnC,MAAM,gBAAgB,GAAqD,EAAE,CAAC;IAE9E,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1D,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAe,CAAC,EAAE,CAAC;YAClE,MAAM,WAAW,GAAI,SAAiB,CAAC,WAAW,CAAC;YAEnD,IAAI,WAAW,EAAE,CAAC;gBAChB,gBAAgB,CAAC,WAAW,CAAC,GAAG;oBAC9B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE;oBAC5B,IAAI,EAAE,IAAI;iBACX,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GACZ,MAAM;QACN,wCAAwC,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,cAAc,CAAC;IAElG,iBAAE,CAAC,aAAa,CAAC,mBAAmB,IAAI,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC;AAED,QAAQ,CACN,YAAY,EACZ,2DAA2D,CAC5D,CAAC;AAEF,QAAQ,CACN,YAAY,EACZ,2DAA2D,CAC5D,CAAC;AAEF,QAAQ,CACN,UAAU,EACV,gEAAgE,CACjE,CAAC"}
|
|
@@ -1638,6 +1638,22 @@ export interface paths {
|
|
|
1638
1638
|
patch: operations["Webhooks_UpdateSubscription"];
|
|
1639
1639
|
trace?: never;
|
|
1640
1640
|
};
|
|
1641
|
+
"/v1/stores/{storeId}/webhooks/resend": {
|
|
1642
|
+
parameters: {
|
|
1643
|
+
query?: never;
|
|
1644
|
+
header?: never;
|
|
1645
|
+
path?: never;
|
|
1646
|
+
cookie?: never;
|
|
1647
|
+
};
|
|
1648
|
+
get?: never;
|
|
1649
|
+
put?: never;
|
|
1650
|
+
post: operations["Webhooks_Resend"];
|
|
1651
|
+
delete?: never;
|
|
1652
|
+
options?: never;
|
|
1653
|
+
head?: never;
|
|
1654
|
+
patch?: never;
|
|
1655
|
+
trace?: never;
|
|
1656
|
+
};
|
|
1641
1657
|
"/v1/stores/{storeId}/webhooks/{webhookId}/history": {
|
|
1642
1658
|
parameters: {
|
|
1643
1659
|
query?: never;
|
|
@@ -2880,8 +2896,6 @@ export interface components {
|
|
|
2880
2896
|
tax_code?: components["schemas"]["ProductTaxCode"];
|
|
2881
2897
|
/** @description Indicates whether concurrent active items are allowed. */
|
|
2882
2898
|
allow_concurrent_active_items?: null | boolean;
|
|
2883
|
-
/** @description Indicates whether using coupons and gift cards on this product is allowed. */
|
|
2884
|
-
disable_promo_codes?: null | boolean;
|
|
2885
2899
|
/** @description Indicates whether the product is hidden. */
|
|
2886
2900
|
is_hidden?: null | boolean;
|
|
2887
2901
|
/** @description Indicates whether gifting is disabled. */
|
|
@@ -2904,6 +2918,12 @@ export interface components {
|
|
|
2904
2918
|
required_product_all?: null | boolean;
|
|
2905
2919
|
/** @description The IDs of associated custom variables. */
|
|
2906
2920
|
custom_variable_ids?: null | components["schemas"]["FlakeId"][];
|
|
2921
|
+
/** @description Indicates if applying gift cards should be disabled on the product. */
|
|
2922
|
+
is_gift_cards_disabled?: null | boolean;
|
|
2923
|
+
/** @description Indicates if applying coupons should be disabled on the product. */
|
|
2924
|
+
is_coupons_disabled?: null | boolean;
|
|
2925
|
+
/** @description Indicates if applying affiliate links should be disabled on the product. */
|
|
2926
|
+
is_affiliate_links_disabled?: null | boolean;
|
|
2907
2927
|
};
|
|
2908
2928
|
/** @description Klarna payment method details */
|
|
2909
2929
|
KlarnaDetailsDto: {
|
|
@@ -3792,8 +3812,6 @@ export interface components {
|
|
|
3792
3812
|
tax_code?: components["schemas"]["ProductTaxCode"];
|
|
3793
3813
|
/** @description Indicates whether concurrent active items are allowed. */
|
|
3794
3814
|
allow_concurrent_active_items?: null | boolean;
|
|
3795
|
-
/** @description Indicates whether using coupons and gift cards on this product is allowed. */
|
|
3796
|
-
disable_promo_codes?: null | boolean;
|
|
3797
3815
|
/** @description Indicates whether the product is hidden. */
|
|
3798
3816
|
is_hidden?: null | boolean;
|
|
3799
3817
|
/** @description Indicates whether gifting is disabled. */
|
|
@@ -3814,6 +3832,12 @@ export interface components {
|
|
|
3814
3832
|
required_product_all?: null | boolean;
|
|
3815
3833
|
/** @description The IDs of associated custom variables. */
|
|
3816
3834
|
custom_variable_ids?: null | components["schemas"]["FlakeId"][];
|
|
3835
|
+
/** @description Indicates if applying gift cards should be disabled on the product. */
|
|
3836
|
+
is_gift_cards_disabled?: null | boolean;
|
|
3837
|
+
/** @description Indicates if applying coupons should be disabled on the product. */
|
|
3838
|
+
is_coupons_disabled?: null | boolean;
|
|
3839
|
+
/** @description Indicates if applying affiliate links should be disabled on the product. */
|
|
3840
|
+
is_affiliate_links_disabled?: null | boolean;
|
|
3817
3841
|
};
|
|
3818
3842
|
ProductGameServerDto: {
|
|
3819
3843
|
id: components["schemas"]["FlakeId"];
|
|
@@ -4211,6 +4235,9 @@ export interface components {
|
|
|
4211
4235
|
/** Format: int32 */
|
|
4212
4236
|
enqueued_commands_count: number;
|
|
4213
4237
|
};
|
|
4238
|
+
ResendWebhookDto: {
|
|
4239
|
+
webhook_id: components["schemas"]["FlakeId"];
|
|
4240
|
+
};
|
|
4214
4241
|
/** @enum {string} */
|
|
4215
4242
|
SaleDiscountType: "percent" | "amount";
|
|
4216
4243
|
/** @description Represents a detailed view of a Sale, including configuration and audit information. */
|
|
@@ -5000,8 +5027,6 @@ export interface components {
|
|
|
5000
5027
|
tax_code?: components["schemas"]["ProductTaxCode"];
|
|
5001
5028
|
/** @description Indicates whether concurrent active items are allowed. */
|
|
5002
5029
|
allow_concurrent_active_items?: null | boolean;
|
|
5003
|
-
/** @description Indicates whether using coupons and gift cards on this product is allowed. */
|
|
5004
|
-
disable_promo_codes?: null | boolean;
|
|
5005
5030
|
/** @description Indicates whether the product is hidden. */
|
|
5006
5031
|
is_hidden?: null | boolean;
|
|
5007
5032
|
/** @description Indicates whether gifting is disabled. */
|
|
@@ -5024,6 +5049,12 @@ export interface components {
|
|
|
5024
5049
|
required_product_all?: null | boolean;
|
|
5025
5050
|
/** @description The IDs of associated custom variables. */
|
|
5026
5051
|
custom_variable_ids?: null | components["schemas"]["FlakeId"][];
|
|
5052
|
+
/** @description Indicates if applying gift cards should be disabled on the product. */
|
|
5053
|
+
is_gift_cards_disabled?: null | boolean;
|
|
5054
|
+
/** @description Indicates if applying coupons should be disabled on the product. */
|
|
5055
|
+
is_coupons_disabled?: null | boolean;
|
|
5056
|
+
/** @description Indicates if applying affiliate links should be disabled on the product. */
|
|
5057
|
+
is_affiliate_links_disabled?: null | boolean;
|
|
5027
5058
|
};
|
|
5028
5059
|
/** @description Represents the configuration for trials of a product */
|
|
5029
5060
|
UpsertProductTrialConfigurationDto: {
|
|
@@ -9571,6 +9602,39 @@ export interface operations {
|
|
|
9571
9602
|
};
|
|
9572
9603
|
};
|
|
9573
9604
|
};
|
|
9605
|
+
Webhooks_Resend: {
|
|
9606
|
+
parameters: {
|
|
9607
|
+
query?: never;
|
|
9608
|
+
header?: never;
|
|
9609
|
+
path?: never;
|
|
9610
|
+
cookie?: never;
|
|
9611
|
+
};
|
|
9612
|
+
requestBody?: {
|
|
9613
|
+
content: {
|
|
9614
|
+
"application/json": components["schemas"]["ResendWebhookDto"];
|
|
9615
|
+
"text/json": components["schemas"]["ResendWebhookDto"];
|
|
9616
|
+
"application/*+json": components["schemas"]["ResendWebhookDto"];
|
|
9617
|
+
};
|
|
9618
|
+
};
|
|
9619
|
+
responses: {
|
|
9620
|
+
/** @description No Content */
|
|
9621
|
+
204: {
|
|
9622
|
+
headers: {
|
|
9623
|
+
[name: string]: unknown;
|
|
9624
|
+
};
|
|
9625
|
+
content?: never;
|
|
9626
|
+
};
|
|
9627
|
+
/** @description Error response */
|
|
9628
|
+
default: {
|
|
9629
|
+
headers: {
|
|
9630
|
+
[name: string]: unknown;
|
|
9631
|
+
};
|
|
9632
|
+
content: {
|
|
9633
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
9634
|
+
};
|
|
9635
|
+
};
|
|
9636
|
+
};
|
|
9637
|
+
};
|
|
9574
9638
|
Webhooks_GetHistory: {
|
|
9575
9639
|
parameters: {
|
|
9576
9640
|
query?: {
|
|
@@ -10119,6 +10183,10 @@ export declare const operationMappings: {
|
|
|
10119
10183
|
readonly method: "DELETE";
|
|
10120
10184
|
readonly path: "/v1/stores/{storeId}/webhooks/{webhookId}";
|
|
10121
10185
|
};
|
|
10186
|
+
readonly Webhooks_Resend: {
|
|
10187
|
+
readonly method: "POST";
|
|
10188
|
+
readonly path: "/v1/stores/{storeId}/webhooks/resend";
|
|
10189
|
+
};
|
|
10122
10190
|
readonly Webhooks_GetHistory: {
|
|
10123
10191
|
readonly method: "GET";
|
|
10124
10192
|
readonly path: "/v1/stores/{storeId}/webhooks/{webhookId}/history";
|