@wix/auto_sdk_app-management_external-billing 1.0.29 → 1.0.31
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/build/cjs/schemas.d.ts +36 -0
- package/build/cjs/schemas.js +103 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +36 -0
- package/build/es/schemas.mjs +65 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +36 -0
- package/build/internal/cjs/schemas.js +103 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +36 -0
- package/build/internal/es/schemas.mjs +65 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReportExternalBillingEventRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
grossRevenue: z.ZodString;
|
|
9
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
wixShare: z.ZodString;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
billingType: z.ZodEnum<{
|
|
13
|
+
UNKNOWN: "UNKNOWN";
|
|
14
|
+
CHARGE: "CHARGE";
|
|
15
|
+
REFUND: "REFUND";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const ReportExternalBillingEventResponse: z.ZodObject<{
|
|
21
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
grossRevenue: z.ZodOptional<z.ZodString>;
|
|
25
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
wixShare: z.ZodOptional<z.ZodString>;
|
|
27
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
28
|
+
billingType: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
UNKNOWN: "UNKNOWN";
|
|
30
|
+
CHARGE: "CHARGE";
|
|
31
|
+
REFUND: "REFUND";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
|
|
36
|
+
export { ReportExternalBillingEventRequest, ReportExternalBillingEventResponse };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
ReportExternalBillingEventRequest: () => ReportExternalBillingEventRequest,
|
|
34
|
+
ReportExternalBillingEventResponse: () => ReportExternalBillingEventResponse
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
37
|
+
|
|
38
|
+
// src/market-aim-v1-external-billing-event-external-billing.schemas.ts
|
|
39
|
+
var z = __toESM(require("zod"));
|
|
40
|
+
var ReportExternalBillingEventRequest = z.object({
|
|
41
|
+
options: z.object({
|
|
42
|
+
event: z.object({
|
|
43
|
+
appId: z.string().describe(
|
|
44
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
45
|
+
).regex(
|
|
46
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
47
|
+
"Must be a valid GUID"
|
|
48
|
+
).optional().nullable(),
|
|
49
|
+
instanceId: z.string().describe(
|
|
50
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
51
|
+
).regex(
|
|
52
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
53
|
+
"Must be a valid GUID"
|
|
54
|
+
).optional().nullable(),
|
|
55
|
+
grossRevenue: z.string().describe(
|
|
56
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
57
|
+
),
|
|
58
|
+
netRevenue: z.string().describe(
|
|
59
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
wixShare: z.string().describe(
|
|
62
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
63
|
+
),
|
|
64
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
65
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"])
|
|
66
|
+
}).describe(
|
|
67
|
+
"The billing event with details of the external transaction, including the gross revenue,\nnet revenue, and billing type (charge or refund)."
|
|
68
|
+
).optional()
|
|
69
|
+
}).optional()
|
|
70
|
+
});
|
|
71
|
+
var ReportExternalBillingEventResponse = z.object({
|
|
72
|
+
event: z.object({
|
|
73
|
+
appId: z.string().describe(
|
|
74
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
75
|
+
).regex(
|
|
76
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
77
|
+
"Must be a valid GUID"
|
|
78
|
+
).optional().nullable(),
|
|
79
|
+
instanceId: z.string().describe(
|
|
80
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
81
|
+
).regex(
|
|
82
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
83
|
+
"Must be a valid GUID"
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
grossRevenue: z.string().describe(
|
|
86
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
87
|
+
).optional(),
|
|
88
|
+
netRevenue: z.string().describe(
|
|
89
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
90
|
+
).optional().nullable(),
|
|
91
|
+
wixShare: z.string().describe(
|
|
92
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
93
|
+
).optional(),
|
|
94
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
95
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"]).describe("The type of billing event, either charge or refund.").optional()
|
|
96
|
+
}).describe("The billing event that was processed.").optional()
|
|
97
|
+
});
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
ReportExternalBillingEventRequest,
|
|
101
|
+
ReportExternalBillingEventResponse
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/market-aim-v1-external-billing-event-external-billing.schemas.ts"],"sourcesContent":["export * from './src/market-aim-v1-external-billing-event-external-billing.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportExternalBillingEventRequest = z.object({\n options: z\n .object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n ),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n ),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z.enum(['UNKNOWN', 'CHARGE', 'REFUND']),\n })\n .describe(\n 'The billing event with details of the external transaction, including the gross revenue,\\nnet revenue, and billing type (charge or refund).'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ReportExternalBillingEventResponse = z.object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n )\n .optional(),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z\n .enum(['UNKNOWN', 'CHARGE', 'REFUND'])\n .describe('The type of billing event, either charge or refund.')\n .optional(),\n })\n .describe('The billing event that was processed.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,oCAAsC,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,OACG,SAAO;AAAA,MACN,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,MACZ,aAAe,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC;AAAA,IACrD,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,qCAAuC,SAAO;AAAA,EACzD,OACG,SAAO;AAAA,IACN,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,IACZ,aACG,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC,EACpC,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,uCAAuC,EAChD,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReportExternalBillingEventRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
grossRevenue: z.ZodString;
|
|
9
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
wixShare: z.ZodString;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
billingType: z.ZodEnum<{
|
|
13
|
+
UNKNOWN: "UNKNOWN";
|
|
14
|
+
CHARGE: "CHARGE";
|
|
15
|
+
REFUND: "REFUND";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const ReportExternalBillingEventResponse: z.ZodObject<{
|
|
21
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
grossRevenue: z.ZodOptional<z.ZodString>;
|
|
25
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
wixShare: z.ZodOptional<z.ZodString>;
|
|
27
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
28
|
+
billingType: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
UNKNOWN: "UNKNOWN";
|
|
30
|
+
CHARGE: "CHARGE";
|
|
31
|
+
REFUND: "REFUND";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
|
|
36
|
+
export { ReportExternalBillingEventRequest, ReportExternalBillingEventResponse };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// src/market-aim-v1-external-billing-event-external-billing.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var ReportExternalBillingEventRequest = z.object({
|
|
4
|
+
options: z.object({
|
|
5
|
+
event: z.object({
|
|
6
|
+
appId: z.string().describe(
|
|
7
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
8
|
+
).regex(
|
|
9
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
10
|
+
"Must be a valid GUID"
|
|
11
|
+
).optional().nullable(),
|
|
12
|
+
instanceId: z.string().describe(
|
|
13
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
14
|
+
).regex(
|
|
15
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
16
|
+
"Must be a valid GUID"
|
|
17
|
+
).optional().nullable(),
|
|
18
|
+
grossRevenue: z.string().describe(
|
|
19
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
20
|
+
),
|
|
21
|
+
netRevenue: z.string().describe(
|
|
22
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
23
|
+
).optional().nullable(),
|
|
24
|
+
wixShare: z.string().describe(
|
|
25
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
26
|
+
),
|
|
27
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
28
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"])
|
|
29
|
+
}).describe(
|
|
30
|
+
"The billing event with details of the external transaction, including the gross revenue,\nnet revenue, and billing type (charge or refund)."
|
|
31
|
+
).optional()
|
|
32
|
+
}).optional()
|
|
33
|
+
});
|
|
34
|
+
var ReportExternalBillingEventResponse = z.object({
|
|
35
|
+
event: z.object({
|
|
36
|
+
appId: z.string().describe(
|
|
37
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
38
|
+
).regex(
|
|
39
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
40
|
+
"Must be a valid GUID"
|
|
41
|
+
).optional().nullable(),
|
|
42
|
+
instanceId: z.string().describe(
|
|
43
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
44
|
+
).regex(
|
|
45
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
46
|
+
"Must be a valid GUID"
|
|
47
|
+
).optional().nullable(),
|
|
48
|
+
grossRevenue: z.string().describe(
|
|
49
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
50
|
+
).optional(),
|
|
51
|
+
netRevenue: z.string().describe(
|
|
52
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
53
|
+
).optional().nullable(),
|
|
54
|
+
wixShare: z.string().describe(
|
|
55
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
56
|
+
).optional(),
|
|
57
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
58
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"]).describe("The type of billing event, either charge or refund.").optional()
|
|
59
|
+
}).describe("The billing event that was processed.").optional()
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
ReportExternalBillingEventRequest,
|
|
63
|
+
ReportExternalBillingEventResponse
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/market-aim-v1-external-billing-event-external-billing.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ReportExternalBillingEventRequest = z.object({\n options: z\n .object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n ),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n ),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z.enum(['UNKNOWN', 'CHARGE', 'REFUND']),\n })\n .describe(\n 'The billing event with details of the external transaction, including the gross revenue,\\nnet revenue, and billing type (charge or refund).'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ReportExternalBillingEventResponse = z.object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n )\n .optional(),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z\n .enum(['UNKNOWN', 'CHARGE', 'REFUND'])\n .describe('The type of billing event, either charge or refund.')\n .optional(),\n })\n .describe('The billing event that was processed.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,oCAAsC,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,OACG,SAAO;AAAA,MACN,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,MACZ,aAAe,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC;AAAA,IACrD,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,qCAAuC,SAAO;AAAA,EACzD,OACG,SAAO;AAAA,IACN,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,IACZ,aACG,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC,EACpC,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,uCAAuC,EAChD,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReportExternalBillingEventRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
grossRevenue: z.ZodString;
|
|
9
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
wixShare: z.ZodString;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
billingType: z.ZodEnum<{
|
|
13
|
+
UNKNOWN: "UNKNOWN";
|
|
14
|
+
CHARGE: "CHARGE";
|
|
15
|
+
REFUND: "REFUND";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const ReportExternalBillingEventResponse: z.ZodObject<{
|
|
21
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
grossRevenue: z.ZodOptional<z.ZodString>;
|
|
25
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
wixShare: z.ZodOptional<z.ZodString>;
|
|
27
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
28
|
+
billingType: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
UNKNOWN: "UNKNOWN";
|
|
30
|
+
CHARGE: "CHARGE";
|
|
31
|
+
REFUND: "REFUND";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
|
|
36
|
+
export { ReportExternalBillingEventRequest, ReportExternalBillingEventResponse };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
ReportExternalBillingEventRequest: () => ReportExternalBillingEventRequest,
|
|
34
|
+
ReportExternalBillingEventResponse: () => ReportExternalBillingEventResponse
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
37
|
+
|
|
38
|
+
// src/market-aim-v1-external-billing-event-external-billing.schemas.ts
|
|
39
|
+
var z = __toESM(require("zod"));
|
|
40
|
+
var ReportExternalBillingEventRequest = z.object({
|
|
41
|
+
options: z.object({
|
|
42
|
+
event: z.object({
|
|
43
|
+
appId: z.string().describe(
|
|
44
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
45
|
+
).regex(
|
|
46
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
47
|
+
"Must be a valid GUID"
|
|
48
|
+
).optional().nullable(),
|
|
49
|
+
instanceId: z.string().describe(
|
|
50
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
51
|
+
).regex(
|
|
52
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
53
|
+
"Must be a valid GUID"
|
|
54
|
+
).optional().nullable(),
|
|
55
|
+
grossRevenue: z.string().describe(
|
|
56
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
57
|
+
),
|
|
58
|
+
netRevenue: z.string().describe(
|
|
59
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
wixShare: z.string().describe(
|
|
62
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
63
|
+
),
|
|
64
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
65
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"])
|
|
66
|
+
}).describe(
|
|
67
|
+
"The billing event with details of the external transaction, including the gross revenue,\nnet revenue, and billing type (charge or refund)."
|
|
68
|
+
).optional()
|
|
69
|
+
}).optional()
|
|
70
|
+
});
|
|
71
|
+
var ReportExternalBillingEventResponse = z.object({
|
|
72
|
+
event: z.object({
|
|
73
|
+
appId: z.string().describe(
|
|
74
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
75
|
+
).regex(
|
|
76
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
77
|
+
"Must be a valid GUID"
|
|
78
|
+
).optional().nullable(),
|
|
79
|
+
instanceId: z.string().describe(
|
|
80
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
81
|
+
).regex(
|
|
82
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
83
|
+
"Must be a valid GUID"
|
|
84
|
+
).optional().nullable(),
|
|
85
|
+
grossRevenue: z.string().describe(
|
|
86
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
87
|
+
).optional(),
|
|
88
|
+
netRevenue: z.string().describe(
|
|
89
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
90
|
+
).optional().nullable(),
|
|
91
|
+
wixShare: z.string().describe(
|
|
92
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
93
|
+
).optional(),
|
|
94
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
95
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"]).describe("The type of billing event, either charge or refund.").optional()
|
|
96
|
+
}).describe("The billing event that was processed.").optional()
|
|
97
|
+
});
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
ReportExternalBillingEventRequest,
|
|
101
|
+
ReportExternalBillingEventResponse
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/market-aim-v1-external-billing-event-external-billing.schemas.ts"],"sourcesContent":["export * from './src/market-aim-v1-external-billing-event-external-billing.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportExternalBillingEventRequest = z.object({\n options: z\n .object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n ),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n ),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z.enum(['UNKNOWN', 'CHARGE', 'REFUND']),\n })\n .describe(\n 'The billing event with details of the external transaction, including the gross revenue,\\nnet revenue, and billing type (charge or refund).'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ReportExternalBillingEventResponse = z.object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n )\n .optional(),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z\n .enum(['UNKNOWN', 'CHARGE', 'REFUND'])\n .describe('The type of billing event, either charge or refund.')\n .optional(),\n })\n .describe('The billing event that was processed.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,oCAAsC,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,OACG,SAAO;AAAA,MACN,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,MACZ,aAAe,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC;AAAA,IACrD,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,qCAAuC,SAAO;AAAA,EACzD,OACG,SAAO;AAAA,IACN,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,IACZ,aACG,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC,EACpC,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,uCAAuC,EAChD,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReportExternalBillingEventRequest: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
grossRevenue: z.ZodString;
|
|
9
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
wixShare: z.ZodString;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
billingType: z.ZodEnum<{
|
|
13
|
+
UNKNOWN: "UNKNOWN";
|
|
14
|
+
CHARGE: "CHARGE";
|
|
15
|
+
REFUND: "REFUND";
|
|
16
|
+
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const ReportExternalBillingEventResponse: z.ZodObject<{
|
|
21
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
instanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
grossRevenue: z.ZodOptional<z.ZodString>;
|
|
25
|
+
netRevenue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
wixShare: z.ZodOptional<z.ZodString>;
|
|
27
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
28
|
+
billingType: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
UNKNOWN: "UNKNOWN";
|
|
30
|
+
CHARGE: "CHARGE";
|
|
31
|
+
REFUND: "REFUND";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
|
|
36
|
+
export { ReportExternalBillingEventRequest, ReportExternalBillingEventResponse };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// src/market-aim-v1-external-billing-event-external-billing.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var ReportExternalBillingEventRequest = z.object({
|
|
4
|
+
options: z.object({
|
|
5
|
+
event: z.object({
|
|
6
|
+
appId: z.string().describe(
|
|
7
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
8
|
+
).regex(
|
|
9
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
10
|
+
"Must be a valid GUID"
|
|
11
|
+
).optional().nullable(),
|
|
12
|
+
instanceId: z.string().describe(
|
|
13
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
14
|
+
).regex(
|
|
15
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
16
|
+
"Must be a valid GUID"
|
|
17
|
+
).optional().nullable(),
|
|
18
|
+
grossRevenue: z.string().describe(
|
|
19
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
20
|
+
),
|
|
21
|
+
netRevenue: z.string().describe(
|
|
22
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
23
|
+
).optional().nullable(),
|
|
24
|
+
wixShare: z.string().describe(
|
|
25
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
26
|
+
),
|
|
27
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
28
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"])
|
|
29
|
+
}).describe(
|
|
30
|
+
"The billing event with details of the external transaction, including the gross revenue,\nnet revenue, and billing type (charge or refund)."
|
|
31
|
+
).optional()
|
|
32
|
+
}).optional()
|
|
33
|
+
});
|
|
34
|
+
var ReportExternalBillingEventResponse = z.object({
|
|
35
|
+
event: z.object({
|
|
36
|
+
appId: z.string().describe(
|
|
37
|
+
"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you're required to pass the app ID."
|
|
38
|
+
).regex(
|
|
39
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
40
|
+
"Must be a valid GUID"
|
|
41
|
+
).optional().nullable(),
|
|
42
|
+
instanceId: z.string().describe(
|
|
43
|
+
"The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\nin which case you can optionally pass the instance ID.\n\nThis connects the transaction to a specific instance of your app installed on a Wix site.\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances)."
|
|
44
|
+
).regex(
|
|
45
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
46
|
+
"Must be a valid GUID"
|
|
47
|
+
).optional().nullable(),
|
|
48
|
+
grossRevenue: z.string().describe(
|
|
49
|
+
'The total amount of the transaction in USD, not including tax.\nThis value can be negative for refunds or adjustments.\n\nExample: "120.50" for a $120.50 charge, or "-120.50" for a $120.50 refund.'
|
|
50
|
+
).optional(),
|
|
51
|
+
netRevenue: z.string().describe(
|
|
52
|
+
"The amount charged in USD minus agreed-upon expenses, such as shipping fees or\npayment processing fees. Wix subtracts its share from this amount.\nThe value can be negative for refunds.\n\nExample calculation:\n- Gross revenue: $120.50\n- Minus expenses: $20.00 (shipping)\n- Net revenue: $100.50"
|
|
53
|
+
).optional().nullable(),
|
|
54
|
+
wixShare: z.string().describe(
|
|
55
|
+
"Wix's share of the transaction in USD, taken from the net revenue.\nThis value can be negative, such as for adjustments or refunds.\n\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\n- Net revenue: $100.50\n- Wix share (20%): $20.10\n\nImportant: Update this value if your revenue share percentage changes."
|
|
56
|
+
).optional(),
|
|
57
|
+
_createdDate: z.date().describe("The date and time of the transaction.").optional().nullable(),
|
|
58
|
+
billingType: z.enum(["UNKNOWN", "CHARGE", "REFUND"]).describe("The type of billing event, either charge or refund.").optional()
|
|
59
|
+
}).describe("The billing event that was processed.").optional()
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
ReportExternalBillingEventRequest,
|
|
63
|
+
ReportExternalBillingEventResponse
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/market-aim-v1-external-billing-event-external-billing.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const ReportExternalBillingEventRequest = z.object({\n options: z\n .object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n ),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n ),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z.enum(['UNKNOWN', 'CHARGE', 'REFUND']),\n })\n .describe(\n 'The billing event with details of the external transaction, including the gross revenue,\\nnet revenue, and billing type (charge or refund).'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ReportExternalBillingEventResponse = z.object({\n event: z\n .object({\n appId: z\n .string()\n .describe(\n \"The app ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you're required to pass the app ID.\"\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n instanceId: z\n .string()\n .describe(\n 'The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,\\nin which case you can optionally pass the instance ID.\\n\\nThis connects the transaction to a specific instance of your app installed on a Wix site.\\nLearn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n grossRevenue: z\n .string()\n .describe(\n 'The total amount of the transaction in USD, not including tax.\\nThis value can be negative for refunds or adjustments.\\n\\nExample: \"120.50\" for a $120.50 charge, or \"-120.50\" for a $120.50 refund.'\n )\n .optional(),\n netRevenue: z\n .string()\n .describe(\n 'The amount charged in USD minus agreed-upon expenses, such as shipping fees or\\npayment processing fees. Wix subtracts its share from this amount.\\nThe value can be negative for refunds.\\n\\nExample calculation:\\n- Gross revenue: $120.50\\n- Minus expenses: $20.00 (shipping)\\n- Net revenue: $100.50'\n )\n .optional()\n .nullable(),\n wixShare: z\n .string()\n .describe(\n \"Wix's share of the transaction in USD, taken from the net revenue.\\nThis value can be negative, such as for adjustments or refunds.\\n\\nCalculate based on your Partner Agreement terms. For example, if Wix's share is 20%:\\n- Net revenue: $100.50\\n- Wix share (20%): $20.10\\n\\nImportant: Update this value if your revenue share percentage changes.\"\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('The date and time of the transaction.')\n .optional()\n .nullable(),\n billingType: z\n .enum(['UNKNOWN', 'CHARGE', 'REFUND'])\n .describe('The type of billing event, either charge or refund.')\n .optional(),\n })\n .describe('The billing event that was processed.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,oCAAsC,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,OACG,SAAO;AAAA,MACN,OACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,cACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,UACG,SAAO,EACP;AAAA,QACC;AAAA,MACF;AAAA,MACF,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,MACZ,aAAe,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC;AAAA,IACrD,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,qCAAuC,SAAO;AAAA,EACzD,OACG,SAAO;AAAA,IACN,OACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,uCAAuC,EAChD,SAAS,EACT,SAAS;AAAA,IACZ,aACG,OAAK,CAAC,WAAW,UAAU,QAAQ,CAAC,EACpC,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,uCAAuC,EAChD,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_app-management_external-billing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.10",
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.market.aim.v1.external_billing_event"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "747343e7482dd1ef29ad4e6af3031799e8beb85c22a406b6a7aa85c9"
|
|
54
61
|
}
|