dub 0.46.8 → 0.46.9
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/RUNTIMES.md +26 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.js +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +122 -0
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +120 -1
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +122 -0
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +117 -1
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +122 -0
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +120 -1
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +122 -0
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +118 -1
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +123 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +119 -1
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +123 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +119 -1
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +123 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +115 -1
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +123 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +119 -1
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.js +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +122 -0
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +114 -0
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +122 -0
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +111 -0
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +122 -0
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +114 -0
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +122 -0
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +112 -0
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +123 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +114 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +123 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +114 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +123 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +110 -0
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +123 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +114 -0
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +1 -1
- package/src/models/components/leadcreatedevent.ts +220 -0
- package/src/models/components/leadevent.ts +200 -0
- package/src/models/components/salecreatedevent.ts +220 -0
- package/src/models/components/saleevent.ts +216 -0
- package/src/models/operations/createcustomer.ts +219 -0
- package/src/models/operations/getcustomer.ts +219 -0
- package/src/models/operations/getcustomers.ts +203 -0
- package/src/models/operations/updatecustomer.ts +219 -0
|
@@ -26,9 +26,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.responseBodyFromJSON = exports.responseBodyToJSON = exports.ResponseBody$ = exports.ResponseBody$outboundSchema = exports.ResponseBody$inboundSchema = exports.linkFromJSON = exports.linkToJSON = exports.Link$ = exports.Link$outboundSchema = exports.Link$inboundSchema = void 0;
|
|
29
|
+
exports.responseBodyFromJSON = exports.responseBodyToJSON = exports.ResponseBody$ = exports.ResponseBody$outboundSchema = exports.ResponseBody$inboundSchema = exports.discountFromJSON = exports.discountToJSON = exports.Discount$ = exports.Discount$outboundSchema = exports.Discount$inboundSchema = exports.GetCustomersInterval$ = exports.GetCustomersInterval$outboundSchema = exports.GetCustomersInterval$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.partnerFromJSON = exports.partnerToJSON = exports.Partner$ = exports.Partner$outboundSchema = exports.Partner$inboundSchema = exports.linkFromJSON = exports.linkToJSON = exports.Link$ = exports.Link$outboundSchema = exports.Link$inboundSchema = exports.GetCustomersInterval = exports.Type = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
exports.Type = {
|
|
33
|
+
Percentage: "percentage",
|
|
34
|
+
Flat: "flat",
|
|
35
|
+
};
|
|
36
|
+
exports.GetCustomersInterval = {
|
|
37
|
+
Month: "month",
|
|
38
|
+
Year: "year",
|
|
39
|
+
};
|
|
32
40
|
/** @internal */
|
|
33
41
|
exports.Link$inboundSchema = z
|
|
34
42
|
.object({
|
|
@@ -66,6 +74,108 @@ function linkFromJSON(jsonString) {
|
|
|
66
74
|
}
|
|
67
75
|
exports.linkFromJSON = linkFromJSON;
|
|
68
76
|
/** @internal */
|
|
77
|
+
exports.Partner$inboundSchema = z.object({
|
|
78
|
+
id: z.string(),
|
|
79
|
+
name: z.string(),
|
|
80
|
+
email: z.string(),
|
|
81
|
+
image: z.nullable(z.string()).optional(),
|
|
82
|
+
});
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.Partner$outboundSchema = z.object({
|
|
85
|
+
id: z.string(),
|
|
86
|
+
name: z.string(),
|
|
87
|
+
email: z.string(),
|
|
88
|
+
image: z.nullable(z.string()).optional(),
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
+
*/
|
|
94
|
+
var Partner$;
|
|
95
|
+
(function (Partner$) {
|
|
96
|
+
/** @deprecated use `Partner$inboundSchema` instead. */
|
|
97
|
+
Partner$.inboundSchema = exports.Partner$inboundSchema;
|
|
98
|
+
/** @deprecated use `Partner$outboundSchema` instead. */
|
|
99
|
+
Partner$.outboundSchema = exports.Partner$outboundSchema;
|
|
100
|
+
})(Partner$ || (exports.Partner$ = Partner$ = {}));
|
|
101
|
+
function partnerToJSON(partner) {
|
|
102
|
+
return JSON.stringify(exports.Partner$outboundSchema.parse(partner));
|
|
103
|
+
}
|
|
104
|
+
exports.partnerToJSON = partnerToJSON;
|
|
105
|
+
function partnerFromJSON(jsonString) {
|
|
106
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Partner$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Partner' from JSON`);
|
|
107
|
+
}
|
|
108
|
+
exports.partnerFromJSON = partnerFromJSON;
|
|
109
|
+
/** @internal */
|
|
110
|
+
exports.Type$inboundSchema = z.nativeEnum(exports.Type);
|
|
111
|
+
/** @internal */
|
|
112
|
+
exports.Type$outboundSchema = exports.Type$inboundSchema;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
+
*/
|
|
117
|
+
var Type$;
|
|
118
|
+
(function (Type$) {
|
|
119
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
120
|
+
Type$.inboundSchema = exports.Type$inboundSchema;
|
|
121
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
122
|
+
Type$.outboundSchema = exports.Type$outboundSchema;
|
|
123
|
+
})(Type$ || (exports.Type$ = Type$ = {}));
|
|
124
|
+
/** @internal */
|
|
125
|
+
exports.GetCustomersInterval$inboundSchema = z.nativeEnum(exports.GetCustomersInterval);
|
|
126
|
+
/** @internal */
|
|
127
|
+
exports.GetCustomersInterval$outboundSchema = exports.GetCustomersInterval$inboundSchema;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
|
+
*/
|
|
132
|
+
var GetCustomersInterval$;
|
|
133
|
+
(function (GetCustomersInterval$) {
|
|
134
|
+
/** @deprecated use `GetCustomersInterval$inboundSchema` instead. */
|
|
135
|
+
GetCustomersInterval$.inboundSchema = exports.GetCustomersInterval$inboundSchema;
|
|
136
|
+
/** @deprecated use `GetCustomersInterval$outboundSchema` instead. */
|
|
137
|
+
GetCustomersInterval$.outboundSchema = exports.GetCustomersInterval$outboundSchema;
|
|
138
|
+
})(GetCustomersInterval$ || (exports.GetCustomersInterval$ = GetCustomersInterval$ = {}));
|
|
139
|
+
/** @internal */
|
|
140
|
+
exports.Discount$inboundSchema = z.object({
|
|
141
|
+
id: z.string(),
|
|
142
|
+
couponId: z.nullable(z.string()),
|
|
143
|
+
couponTestId: z.nullable(z.string()),
|
|
144
|
+
amount: z.number(),
|
|
145
|
+
type: exports.Type$inboundSchema,
|
|
146
|
+
duration: z.nullable(z.number()),
|
|
147
|
+
interval: z.nullable(exports.GetCustomersInterval$inboundSchema),
|
|
148
|
+
});
|
|
149
|
+
/** @internal */
|
|
150
|
+
exports.Discount$outboundSchema = z.object({
|
|
151
|
+
id: z.string(),
|
|
152
|
+
couponId: z.nullable(z.string()),
|
|
153
|
+
couponTestId: z.nullable(z.string()),
|
|
154
|
+
amount: z.number(),
|
|
155
|
+
type: exports.Type$outboundSchema,
|
|
156
|
+
duration: z.nullable(z.number()),
|
|
157
|
+
interval: z.nullable(exports.GetCustomersInterval$outboundSchema),
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
+
*/
|
|
163
|
+
var Discount$;
|
|
164
|
+
(function (Discount$) {
|
|
165
|
+
/** @deprecated use `Discount$inboundSchema` instead. */
|
|
166
|
+
Discount$.inboundSchema = exports.Discount$inboundSchema;
|
|
167
|
+
/** @deprecated use `Discount$outboundSchema` instead. */
|
|
168
|
+
Discount$.outboundSchema = exports.Discount$outboundSchema;
|
|
169
|
+
})(Discount$ || (exports.Discount$ = Discount$ = {}));
|
|
170
|
+
function discountToJSON(discount) {
|
|
171
|
+
return JSON.stringify(exports.Discount$outboundSchema.parse(discount));
|
|
172
|
+
}
|
|
173
|
+
exports.discountToJSON = discountToJSON;
|
|
174
|
+
function discountFromJSON(jsonString) {
|
|
175
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Discount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Discount' from JSON`);
|
|
176
|
+
}
|
|
177
|
+
exports.discountFromJSON = discountFromJSON;
|
|
178
|
+
/** @internal */
|
|
69
179
|
exports.ResponseBody$inboundSchema = z.object({
|
|
70
180
|
id: z.string(),
|
|
71
181
|
externalId: z.string(),
|
|
@@ -75,6 +185,8 @@ exports.ResponseBody$inboundSchema = z.object({
|
|
|
75
185
|
country: z.nullable(z.string()).optional(),
|
|
76
186
|
createdAt: z.string(),
|
|
77
187
|
link: z.nullable(z.lazy(() => exports.Link$inboundSchema)).optional(),
|
|
188
|
+
partner: z.nullable(z.lazy(() => exports.Partner$inboundSchema)).optional(),
|
|
189
|
+
discount: z.nullable(z.lazy(() => exports.Discount$inboundSchema)).optional(),
|
|
78
190
|
});
|
|
79
191
|
/** @internal */
|
|
80
192
|
exports.ResponseBody$outboundSchema = z.object({
|
|
@@ -86,6 +198,8 @@ exports.ResponseBody$outboundSchema = z.object({
|
|
|
86
198
|
country: z.nullable(z.string()).optional(),
|
|
87
199
|
createdAt: z.string(),
|
|
88
200
|
link: z.nullable(z.lazy(() => exports.Link$outboundSchema)).optional(),
|
|
201
|
+
partner: z.nullable(z.lazy(() => exports.Partner$outboundSchema)).optional(),
|
|
202
|
+
discount: z.nullable(z.lazy(() => exports.Discount$outboundSchema)).optional(),
|
|
89
203
|
});
|
|
90
204
|
/**
|
|
91
205
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getcustomers.js","sourceRoot":"","sources":["../../../../src/models/operations/getcustomers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"getcustomers.js","sourceRoot":"","sources":["../../../../src/models/operations/getcustomers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAC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,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC9D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvE,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,aAAa,CAO7B;AAPD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAG5D,CAAC,EAPgB,aAAa,6BAAb,aAAa,QAO7B;AAED,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AAFD,gDAEC;AAED,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC;AARD,oDAQC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
export type UpdateCustomerRequestBody = {
|
|
@@ -48,6 +49,31 @@ export type UpdateCustomerLink = {
|
|
|
48
49
|
*/
|
|
49
50
|
programId: string | null;
|
|
50
51
|
};
|
|
52
|
+
export type UpdateCustomerPartner = {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
email: string;
|
|
56
|
+
image?: string | null | undefined;
|
|
57
|
+
};
|
|
58
|
+
export declare const UpdateCustomerType: {
|
|
59
|
+
readonly Percentage: "percentage";
|
|
60
|
+
readonly Flat: "flat";
|
|
61
|
+
};
|
|
62
|
+
export type UpdateCustomerType = ClosedEnum<typeof UpdateCustomerType>;
|
|
63
|
+
export declare const UpdateCustomerInterval: {
|
|
64
|
+
readonly Month: "month";
|
|
65
|
+
readonly Year: "year";
|
|
66
|
+
};
|
|
67
|
+
export type UpdateCustomerInterval = ClosedEnum<typeof UpdateCustomerInterval>;
|
|
68
|
+
export type UpdateCustomerDiscount = {
|
|
69
|
+
id: string;
|
|
70
|
+
couponId: string | null;
|
|
71
|
+
couponTestId: string | null;
|
|
72
|
+
amount: number;
|
|
73
|
+
type: UpdateCustomerType;
|
|
74
|
+
duration: number | null;
|
|
75
|
+
interval: UpdateCustomerInterval | null;
|
|
76
|
+
};
|
|
51
77
|
/**
|
|
52
78
|
* The customer was updated.
|
|
53
79
|
*/
|
|
@@ -81,6 +107,8 @@ export type UpdateCustomerResponseBody = {
|
|
|
81
107
|
*/
|
|
82
108
|
createdAt: string;
|
|
83
109
|
link?: UpdateCustomerLink | null | undefined;
|
|
110
|
+
partner?: UpdateCustomerPartner | null | undefined;
|
|
111
|
+
discount?: UpdateCustomerDiscount | null | undefined;
|
|
84
112
|
};
|
|
85
113
|
/** @internal */
|
|
86
114
|
export declare const UpdateCustomerRequestBody$inboundSchema: z.ZodType<UpdateCustomerRequestBody, z.ZodTypeDef, unknown>;
|
|
@@ -157,6 +185,99 @@ export declare namespace UpdateCustomerLink$ {
|
|
|
157
185
|
export declare function updateCustomerLinkToJSON(updateCustomerLink: UpdateCustomerLink): string;
|
|
158
186
|
export declare function updateCustomerLinkFromJSON(jsonString: string): SafeParseResult<UpdateCustomerLink, SDKValidationError>;
|
|
159
187
|
/** @internal */
|
|
188
|
+
export declare const UpdateCustomerPartner$inboundSchema: z.ZodType<UpdateCustomerPartner, z.ZodTypeDef, unknown>;
|
|
189
|
+
/** @internal */
|
|
190
|
+
export type UpdateCustomerPartner$Outbound = {
|
|
191
|
+
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
email: string;
|
|
194
|
+
image?: string | null | undefined;
|
|
195
|
+
};
|
|
196
|
+
/** @internal */
|
|
197
|
+
export declare const UpdateCustomerPartner$outboundSchema: z.ZodType<UpdateCustomerPartner$Outbound, z.ZodTypeDef, UpdateCustomerPartner>;
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
|
+
*/
|
|
202
|
+
export declare namespace UpdateCustomerPartner$ {
|
|
203
|
+
/** @deprecated use `UpdateCustomerPartner$inboundSchema` instead. */
|
|
204
|
+
const inboundSchema: z.ZodType<UpdateCustomerPartner, z.ZodTypeDef, unknown>;
|
|
205
|
+
/** @deprecated use `UpdateCustomerPartner$outboundSchema` instead. */
|
|
206
|
+
const outboundSchema: z.ZodType<UpdateCustomerPartner$Outbound, z.ZodTypeDef, UpdateCustomerPartner>;
|
|
207
|
+
/** @deprecated use `UpdateCustomerPartner$Outbound` instead. */
|
|
208
|
+
type Outbound = UpdateCustomerPartner$Outbound;
|
|
209
|
+
}
|
|
210
|
+
export declare function updateCustomerPartnerToJSON(updateCustomerPartner: UpdateCustomerPartner): string;
|
|
211
|
+
export declare function updateCustomerPartnerFromJSON(jsonString: string): SafeParseResult<UpdateCustomerPartner, SDKValidationError>;
|
|
212
|
+
/** @internal */
|
|
213
|
+
export declare const UpdateCustomerType$inboundSchema: z.ZodNativeEnum<typeof UpdateCustomerType>;
|
|
214
|
+
/** @internal */
|
|
215
|
+
export declare const UpdateCustomerType$outboundSchema: z.ZodNativeEnum<typeof UpdateCustomerType>;
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
+
*/
|
|
220
|
+
export declare namespace UpdateCustomerType$ {
|
|
221
|
+
/** @deprecated use `UpdateCustomerType$inboundSchema` instead. */
|
|
222
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
223
|
+
readonly Percentage: "percentage";
|
|
224
|
+
readonly Flat: "flat";
|
|
225
|
+
}>;
|
|
226
|
+
/** @deprecated use `UpdateCustomerType$outboundSchema` instead. */
|
|
227
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
228
|
+
readonly Percentage: "percentage";
|
|
229
|
+
readonly Flat: "flat";
|
|
230
|
+
}>;
|
|
231
|
+
}
|
|
232
|
+
/** @internal */
|
|
233
|
+
export declare const UpdateCustomerInterval$inboundSchema: z.ZodNativeEnum<typeof UpdateCustomerInterval>;
|
|
234
|
+
/** @internal */
|
|
235
|
+
export declare const UpdateCustomerInterval$outboundSchema: z.ZodNativeEnum<typeof UpdateCustomerInterval>;
|
|
236
|
+
/**
|
|
237
|
+
* @internal
|
|
238
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
|
+
*/
|
|
240
|
+
export declare namespace UpdateCustomerInterval$ {
|
|
241
|
+
/** @deprecated use `UpdateCustomerInterval$inboundSchema` instead. */
|
|
242
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
243
|
+
readonly Month: "month";
|
|
244
|
+
readonly Year: "year";
|
|
245
|
+
}>;
|
|
246
|
+
/** @deprecated use `UpdateCustomerInterval$outboundSchema` instead. */
|
|
247
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
248
|
+
readonly Month: "month";
|
|
249
|
+
readonly Year: "year";
|
|
250
|
+
}>;
|
|
251
|
+
}
|
|
252
|
+
/** @internal */
|
|
253
|
+
export declare const UpdateCustomerDiscount$inboundSchema: z.ZodType<UpdateCustomerDiscount, z.ZodTypeDef, unknown>;
|
|
254
|
+
/** @internal */
|
|
255
|
+
export type UpdateCustomerDiscount$Outbound = {
|
|
256
|
+
id: string;
|
|
257
|
+
couponId: string | null;
|
|
258
|
+
couponTestId: string | null;
|
|
259
|
+
amount: number;
|
|
260
|
+
type: string;
|
|
261
|
+
duration: number | null;
|
|
262
|
+
interval: string | null;
|
|
263
|
+
};
|
|
264
|
+
/** @internal */
|
|
265
|
+
export declare const UpdateCustomerDiscount$outboundSchema: z.ZodType<UpdateCustomerDiscount$Outbound, z.ZodTypeDef, UpdateCustomerDiscount>;
|
|
266
|
+
/**
|
|
267
|
+
* @internal
|
|
268
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
269
|
+
*/
|
|
270
|
+
export declare namespace UpdateCustomerDiscount$ {
|
|
271
|
+
/** @deprecated use `UpdateCustomerDiscount$inboundSchema` instead. */
|
|
272
|
+
const inboundSchema: z.ZodType<UpdateCustomerDiscount, z.ZodTypeDef, unknown>;
|
|
273
|
+
/** @deprecated use `UpdateCustomerDiscount$outboundSchema` instead. */
|
|
274
|
+
const outboundSchema: z.ZodType<UpdateCustomerDiscount$Outbound, z.ZodTypeDef, UpdateCustomerDiscount>;
|
|
275
|
+
/** @deprecated use `UpdateCustomerDiscount$Outbound` instead. */
|
|
276
|
+
type Outbound = UpdateCustomerDiscount$Outbound;
|
|
277
|
+
}
|
|
278
|
+
export declare function updateCustomerDiscountToJSON(updateCustomerDiscount: UpdateCustomerDiscount): string;
|
|
279
|
+
export declare function updateCustomerDiscountFromJSON(jsonString: string): SafeParseResult<UpdateCustomerDiscount, SDKValidationError>;
|
|
280
|
+
/** @internal */
|
|
160
281
|
export declare const UpdateCustomerResponseBody$inboundSchema: z.ZodType<UpdateCustomerResponseBody, z.ZodTypeDef, unknown>;
|
|
161
282
|
/** @internal */
|
|
162
283
|
export type UpdateCustomerResponseBody$Outbound = {
|
|
@@ -168,6 +289,8 @@ export type UpdateCustomerResponseBody$Outbound = {
|
|
|
168
289
|
country?: string | null | undefined;
|
|
169
290
|
createdAt: string;
|
|
170
291
|
link?: UpdateCustomerLink$Outbound | null | undefined;
|
|
292
|
+
partner?: UpdateCustomerPartner$Outbound | null | undefined;
|
|
293
|
+
discount?: UpdateCustomerDiscount$Outbound | null | undefined;
|
|
171
294
|
};
|
|
172
295
|
/** @internal */
|
|
173
296
|
export declare const UpdateCustomerResponseBody$outboundSchema: z.ZodType<UpdateCustomerResponseBody$Outbound, z.ZodTypeDef, UpdateCustomerResponseBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecustomer.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatecustomer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"updatecustomer.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updatecustomer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;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,EAAE,+BAA+B,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAc1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -26,10 +26,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.updateCustomerResponseBodyFromJSON = exports.updateCustomerResponseBodyToJSON = exports.UpdateCustomerResponseBody$ = exports.UpdateCustomerResponseBody$outboundSchema = exports.UpdateCustomerResponseBody$inboundSchema = exports.updateCustomerLinkFromJSON = exports.updateCustomerLinkToJSON = exports.UpdateCustomerLink$ = exports.UpdateCustomerLink$outboundSchema = exports.UpdateCustomerLink$inboundSchema = exports.updateCustomerRequestFromJSON = exports.updateCustomerRequestToJSON = exports.UpdateCustomerRequest$ = exports.UpdateCustomerRequest$outboundSchema = exports.UpdateCustomerRequest$inboundSchema = exports.updateCustomerRequestBodyFromJSON = exports.updateCustomerRequestBodyToJSON = exports.UpdateCustomerRequestBody$ = exports.UpdateCustomerRequestBody$outboundSchema = exports.UpdateCustomerRequestBody$inboundSchema = void 0;
|
|
29
|
+
exports.updateCustomerResponseBodyFromJSON = exports.updateCustomerResponseBodyToJSON = exports.UpdateCustomerResponseBody$ = exports.UpdateCustomerResponseBody$outboundSchema = exports.UpdateCustomerResponseBody$inboundSchema = exports.updateCustomerDiscountFromJSON = exports.updateCustomerDiscountToJSON = exports.UpdateCustomerDiscount$ = exports.UpdateCustomerDiscount$outboundSchema = exports.UpdateCustomerDiscount$inboundSchema = exports.UpdateCustomerInterval$ = exports.UpdateCustomerInterval$outboundSchema = exports.UpdateCustomerInterval$inboundSchema = exports.UpdateCustomerType$ = exports.UpdateCustomerType$outboundSchema = exports.UpdateCustomerType$inboundSchema = exports.updateCustomerPartnerFromJSON = exports.updateCustomerPartnerToJSON = exports.UpdateCustomerPartner$ = exports.UpdateCustomerPartner$outboundSchema = exports.UpdateCustomerPartner$inboundSchema = exports.updateCustomerLinkFromJSON = exports.updateCustomerLinkToJSON = exports.UpdateCustomerLink$ = exports.UpdateCustomerLink$outboundSchema = exports.UpdateCustomerLink$inboundSchema = exports.updateCustomerRequestFromJSON = exports.updateCustomerRequestToJSON = exports.UpdateCustomerRequest$ = exports.UpdateCustomerRequest$outboundSchema = exports.UpdateCustomerRequest$inboundSchema = exports.updateCustomerRequestBodyFromJSON = exports.updateCustomerRequestBodyToJSON = exports.UpdateCustomerRequestBody$ = exports.UpdateCustomerRequestBody$outboundSchema = exports.UpdateCustomerRequestBody$inboundSchema = exports.UpdateCustomerInterval = exports.UpdateCustomerType = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
|
+
exports.UpdateCustomerType = {
|
|
34
|
+
Percentage: "percentage",
|
|
35
|
+
Flat: "flat",
|
|
36
|
+
};
|
|
37
|
+
exports.UpdateCustomerInterval = {
|
|
38
|
+
Month: "month",
|
|
39
|
+
Year: "year",
|
|
40
|
+
};
|
|
33
41
|
/** @internal */
|
|
34
42
|
exports.UpdateCustomerRequestBody$inboundSchema = z.object({
|
|
35
43
|
email: z.nullable(z.string()).optional(),
|
|
@@ -137,6 +145,108 @@ function updateCustomerLinkFromJSON(jsonString) {
|
|
|
137
145
|
}
|
|
138
146
|
exports.updateCustomerLinkFromJSON = updateCustomerLinkFromJSON;
|
|
139
147
|
/** @internal */
|
|
148
|
+
exports.UpdateCustomerPartner$inboundSchema = z.object({
|
|
149
|
+
id: z.string(),
|
|
150
|
+
name: z.string(),
|
|
151
|
+
email: z.string(),
|
|
152
|
+
image: z.nullable(z.string()).optional(),
|
|
153
|
+
});
|
|
154
|
+
/** @internal */
|
|
155
|
+
exports.UpdateCustomerPartner$outboundSchema = z.object({
|
|
156
|
+
id: z.string(),
|
|
157
|
+
name: z.string(),
|
|
158
|
+
email: z.string(),
|
|
159
|
+
image: z.nullable(z.string()).optional(),
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
164
|
+
*/
|
|
165
|
+
var UpdateCustomerPartner$;
|
|
166
|
+
(function (UpdateCustomerPartner$) {
|
|
167
|
+
/** @deprecated use `UpdateCustomerPartner$inboundSchema` instead. */
|
|
168
|
+
UpdateCustomerPartner$.inboundSchema = exports.UpdateCustomerPartner$inboundSchema;
|
|
169
|
+
/** @deprecated use `UpdateCustomerPartner$outboundSchema` instead. */
|
|
170
|
+
UpdateCustomerPartner$.outboundSchema = exports.UpdateCustomerPartner$outboundSchema;
|
|
171
|
+
})(UpdateCustomerPartner$ || (exports.UpdateCustomerPartner$ = UpdateCustomerPartner$ = {}));
|
|
172
|
+
function updateCustomerPartnerToJSON(updateCustomerPartner) {
|
|
173
|
+
return JSON.stringify(exports.UpdateCustomerPartner$outboundSchema.parse(updateCustomerPartner));
|
|
174
|
+
}
|
|
175
|
+
exports.updateCustomerPartnerToJSON = updateCustomerPartnerToJSON;
|
|
176
|
+
function updateCustomerPartnerFromJSON(jsonString) {
|
|
177
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateCustomerPartner$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomerPartner' from JSON`);
|
|
178
|
+
}
|
|
179
|
+
exports.updateCustomerPartnerFromJSON = updateCustomerPartnerFromJSON;
|
|
180
|
+
/** @internal */
|
|
181
|
+
exports.UpdateCustomerType$inboundSchema = z.nativeEnum(exports.UpdateCustomerType);
|
|
182
|
+
/** @internal */
|
|
183
|
+
exports.UpdateCustomerType$outboundSchema = exports.UpdateCustomerType$inboundSchema;
|
|
184
|
+
/**
|
|
185
|
+
* @internal
|
|
186
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
187
|
+
*/
|
|
188
|
+
var UpdateCustomerType$;
|
|
189
|
+
(function (UpdateCustomerType$) {
|
|
190
|
+
/** @deprecated use `UpdateCustomerType$inboundSchema` instead. */
|
|
191
|
+
UpdateCustomerType$.inboundSchema = exports.UpdateCustomerType$inboundSchema;
|
|
192
|
+
/** @deprecated use `UpdateCustomerType$outboundSchema` instead. */
|
|
193
|
+
UpdateCustomerType$.outboundSchema = exports.UpdateCustomerType$outboundSchema;
|
|
194
|
+
})(UpdateCustomerType$ || (exports.UpdateCustomerType$ = UpdateCustomerType$ = {}));
|
|
195
|
+
/** @internal */
|
|
196
|
+
exports.UpdateCustomerInterval$inboundSchema = z.nativeEnum(exports.UpdateCustomerInterval);
|
|
197
|
+
/** @internal */
|
|
198
|
+
exports.UpdateCustomerInterval$outboundSchema = exports.UpdateCustomerInterval$inboundSchema;
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
202
|
+
*/
|
|
203
|
+
var UpdateCustomerInterval$;
|
|
204
|
+
(function (UpdateCustomerInterval$) {
|
|
205
|
+
/** @deprecated use `UpdateCustomerInterval$inboundSchema` instead. */
|
|
206
|
+
UpdateCustomerInterval$.inboundSchema = exports.UpdateCustomerInterval$inboundSchema;
|
|
207
|
+
/** @deprecated use `UpdateCustomerInterval$outboundSchema` instead. */
|
|
208
|
+
UpdateCustomerInterval$.outboundSchema = exports.UpdateCustomerInterval$outboundSchema;
|
|
209
|
+
})(UpdateCustomerInterval$ || (exports.UpdateCustomerInterval$ = UpdateCustomerInterval$ = {}));
|
|
210
|
+
/** @internal */
|
|
211
|
+
exports.UpdateCustomerDiscount$inboundSchema = z.object({
|
|
212
|
+
id: z.string(),
|
|
213
|
+
couponId: z.nullable(z.string()),
|
|
214
|
+
couponTestId: z.nullable(z.string()),
|
|
215
|
+
amount: z.number(),
|
|
216
|
+
type: exports.UpdateCustomerType$inboundSchema,
|
|
217
|
+
duration: z.nullable(z.number()),
|
|
218
|
+
interval: z.nullable(exports.UpdateCustomerInterval$inboundSchema),
|
|
219
|
+
});
|
|
220
|
+
/** @internal */
|
|
221
|
+
exports.UpdateCustomerDiscount$outboundSchema = z.object({
|
|
222
|
+
id: z.string(),
|
|
223
|
+
couponId: z.nullable(z.string()),
|
|
224
|
+
couponTestId: z.nullable(z.string()),
|
|
225
|
+
amount: z.number(),
|
|
226
|
+
type: exports.UpdateCustomerType$outboundSchema,
|
|
227
|
+
duration: z.nullable(z.number()),
|
|
228
|
+
interval: z.nullable(exports.UpdateCustomerInterval$outboundSchema),
|
|
229
|
+
});
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
233
|
+
*/
|
|
234
|
+
var UpdateCustomerDiscount$;
|
|
235
|
+
(function (UpdateCustomerDiscount$) {
|
|
236
|
+
/** @deprecated use `UpdateCustomerDiscount$inboundSchema` instead. */
|
|
237
|
+
UpdateCustomerDiscount$.inboundSchema = exports.UpdateCustomerDiscount$inboundSchema;
|
|
238
|
+
/** @deprecated use `UpdateCustomerDiscount$outboundSchema` instead. */
|
|
239
|
+
UpdateCustomerDiscount$.outboundSchema = exports.UpdateCustomerDiscount$outboundSchema;
|
|
240
|
+
})(UpdateCustomerDiscount$ || (exports.UpdateCustomerDiscount$ = UpdateCustomerDiscount$ = {}));
|
|
241
|
+
function updateCustomerDiscountToJSON(updateCustomerDiscount) {
|
|
242
|
+
return JSON.stringify(exports.UpdateCustomerDiscount$outboundSchema.parse(updateCustomerDiscount));
|
|
243
|
+
}
|
|
244
|
+
exports.updateCustomerDiscountToJSON = updateCustomerDiscountToJSON;
|
|
245
|
+
function updateCustomerDiscountFromJSON(jsonString) {
|
|
246
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateCustomerDiscount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomerDiscount' from JSON`);
|
|
247
|
+
}
|
|
248
|
+
exports.updateCustomerDiscountFromJSON = updateCustomerDiscountFromJSON;
|
|
249
|
+
/** @internal */
|
|
140
250
|
exports.UpdateCustomerResponseBody$inboundSchema = z.object({
|
|
141
251
|
id: z.string(),
|
|
142
252
|
externalId: z.string(),
|
|
@@ -146,6 +256,10 @@ exports.UpdateCustomerResponseBody$inboundSchema = z.object({
|
|
|
146
256
|
country: z.nullable(z.string()).optional(),
|
|
147
257
|
createdAt: z.string(),
|
|
148
258
|
link: z.nullable(z.lazy(() => exports.UpdateCustomerLink$inboundSchema)).optional(),
|
|
259
|
+
partner: z.nullable(z.lazy(() => exports.UpdateCustomerPartner$inboundSchema))
|
|
260
|
+
.optional(),
|
|
261
|
+
discount: z.nullable(z.lazy(() => exports.UpdateCustomerDiscount$inboundSchema))
|
|
262
|
+
.optional(),
|
|
149
263
|
});
|
|
150
264
|
/** @internal */
|
|
151
265
|
exports.UpdateCustomerResponseBody$outboundSchema = z.object({
|
|
@@ -157,6 +271,10 @@ exports.UpdateCustomerResponseBody$outboundSchema = z.object({
|
|
|
157
271
|
country: z.nullable(z.string()).optional(),
|
|
158
272
|
createdAt: z.string(),
|
|
159
273
|
link: z.nullable(z.lazy(() => exports.UpdateCustomerLink$outboundSchema)).optional(),
|
|
274
|
+
partner: z.nullable(z.lazy(() => exports.UpdateCustomerPartner$outboundSchema))
|
|
275
|
+
.optional(),
|
|
276
|
+
discount: z.nullable(z.lazy(() => exports.UpdateCustomerDiscount$outboundSchema))
|
|
277
|
+
.optional(),
|
|
160
278
|
});
|
|
161
279
|
/**
|
|
162
280
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecustomer.js","sourceRoot":"","sources":["../../../../src/models/operations/updatecustomer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;
|
|
1
|
+
{"version":3,"file":"updatecustomer.js","sourceRoot":"","sources":["../../../../src/models/operations/updatecustomer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA8DpC,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;CACJ,CAAC;AAGE,QAAA,sBAAsB,GAAG;IACpC,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAkDX,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAA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CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,6CAAqC,CAAC,CAAC;SACtE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAND,4EAMC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.1";
|
|
30
|
-
readonly sdkVersion: "0.46.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.46.
|
|
30
|
+
readonly sdkVersion: "0.46.9";
|
|
31
|
+
readonly genVersion: "2.484.0";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.46.9 2.484.0 0.0.1 dub";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
|
-
sdkVersion: "0.46.
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.46.
|
|
30
|
+
sdkVersion: "0.46.9",
|
|
31
|
+
genVersion: "2.484.0",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.46.9 2.484.0 0.0.1 dub",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
package/dist/esm/lib/security.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.js","sourceRoot":"","sources":["../../../src/lib/security.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,4EAAuD,CAAA;AACzD,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YACS,IAAuB,EAC9B,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,SAAI,GAAJ,IAAI,CAAmB;QAI9B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,UAAU;QACf,OAAO,IAAI,aAAa,CACtB,iBAAiB,CAAC,UAAU,EAC5B,iEAAiE,CAClE,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,IAAY;QAClC,OAAO,IAAI,aAAa,CACtB,iBAAiB,CAAC,wBAAwB,EAC1C,+BAA+B,IAAI,EAAE,CACtC,CAAC;IACJ,CAAC;CACF;AA2ED,MAAM,UAAU,eAAe,CAC7B,GAAG,OAA0B;IAE7B,MAAM,KAAK,GAAkB;QAC3B,KAAK,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"security.js","sourceRoot":"","sources":["../../../src/lib/security.ts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