dub 0.70.0 → 0.71.0
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/README.md +11 -7
- package/dist/commonjs/funcs/bountiesApproveSubmission.d.ts +18 -0
- package/dist/commonjs/funcs/bountiesApproveSubmission.d.ts.map +1 -0
- package/dist/commonjs/funcs/bountiesApproveSubmission.js +140 -0
- package/dist/commonjs/funcs/bountiesApproveSubmission.js.map +1 -0
- package/dist/commonjs/funcs/bountiesListSubmissions.d.ts +18 -0
- package/dist/commonjs/funcs/bountiesListSubmissions.d.ts.map +1 -0
- package/dist/commonjs/funcs/bountiesListSubmissions.js +146 -0
- package/dist/commonjs/funcs/bountiesListSubmissions.js.map +1 -0
- package/dist/commonjs/funcs/bountiesRejectSubmission.d.ts +18 -0
- package/dist/commonjs/funcs/bountiesRejectSubmission.d.ts.map +1 -0
- package/dist/commonjs/funcs/{workspacesUpdate.js → bountiesRejectSubmission.js} +17 -18
- package/dist/commonjs/funcs/bountiesRejectSubmission.js.map +1 -0
- package/dist/commonjs/funcs/partnersDeactivate.d.ts +18 -0
- package/dist/commonjs/funcs/partnersDeactivate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{workspacesGet.js → partnersDeactivate.js} +14 -18
- package/dist/commonjs/funcs/partnersDeactivate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/commissioncreatedevent.d.ts +54 -6
- package/dist/commonjs/models/components/commissioncreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/commissioncreatedevent.js +33 -3
- package/dist/commonjs/models/components/commissioncreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +21 -6
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +8 -2
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts +402 -0
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.js +421 -1
- package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +21 -6
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +8 -2
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/operations/approvebountysubmission.d.ts +130 -0
- package/dist/commonjs/models/operations/approvebountysubmission.d.ts.map +1 -0
- package/dist/commonjs/models/operations/approvebountysubmission.js +107 -0
- package/dist/commonjs/models/operations/approvebountysubmission.js.map +1 -0
- package/dist/commonjs/models/operations/createpartner.d.ts +130 -0
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +183 -1
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/deactivatepartner.d.ts +34 -0
- package/dist/commonjs/models/operations/deactivatepartner.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{getworkspace.js → deactivatepartner.js} +17 -7
- package/dist/commonjs/models/operations/deactivatepartner.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts +17 -5
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +4 -1
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +19 -5
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +6 -1
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbountysubmissions.d.ts +183 -0
- package/dist/commonjs/models/operations/listbountysubmissions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listbountysubmissions.js +129 -0
- package/dist/commonjs/models/operations/listbountysubmissions.js.map +1 -0
- package/dist/commonjs/models/operations/listcommissions.d.ts +17 -5
- package/dist/commonjs/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.js +4 -1
- package/dist/commonjs/models/operations/listcommissions.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +34 -10
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +8 -2
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listpartners.d.ts +130 -0
- package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpartners.js +179 -1
- package/dist/commonjs/models/operations/listpartners.js.map +1 -1
- package/dist/commonjs/models/operations/rejectbountysubmission.d.ts +151 -0
- package/dist/commonjs/models/operations/rejectbountysubmission.d.ts.map +1 -0
- package/dist/commonjs/models/operations/rejectbountysubmission.js +120 -0
- package/dist/commonjs/models/operations/rejectbountysubmission.js.map +1 -0
- package/dist/commonjs/models/operations/updatecommission.d.ts +17 -5
- package/dist/commonjs/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.js +4 -1
- package/dist/commonjs/models/operations/updatecommission.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +17 -5
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +4 -1
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts +3 -3
- package/dist/commonjs/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js +1 -1
- package/dist/commonjs/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/commonjs/sdk/bounties.d.ts +26 -0
- package/dist/commonjs/sdk/bounties.d.ts.map +1 -0
- package/dist/commonjs/sdk/bounties.js +42 -0
- package/dist/commonjs/sdk/bounties.js.map +1 -0
- package/dist/commonjs/sdk/partners.d.ts +7 -0
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js +10 -0
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/bountiesApproveSubmission.d.ts +18 -0
- package/dist/esm/funcs/bountiesApproveSubmission.d.ts.map +1 -0
- package/dist/esm/funcs/bountiesApproveSubmission.js +104 -0
- package/dist/esm/funcs/bountiesApproveSubmission.js.map +1 -0
- package/dist/esm/funcs/bountiesListSubmissions.d.ts +18 -0
- package/dist/esm/funcs/bountiesListSubmissions.d.ts.map +1 -0
- package/dist/esm/funcs/bountiesListSubmissions.js +110 -0
- package/dist/esm/funcs/bountiesListSubmissions.js.map +1 -0
- package/dist/esm/funcs/bountiesRejectSubmission.d.ts +18 -0
- package/dist/esm/funcs/bountiesRejectSubmission.d.ts.map +1 -0
- package/dist/esm/funcs/{workspacesUpdate.js → bountiesRejectSubmission.js} +16 -17
- package/dist/esm/funcs/bountiesRejectSubmission.js.map +1 -0
- package/dist/esm/funcs/partnersDeactivate.d.ts +18 -0
- package/dist/esm/funcs/partnersDeactivate.d.ts.map +1 -0
- package/dist/esm/funcs/{workspacesGet.js → partnersDeactivate.js} +14 -18
- package/dist/esm/funcs/partnersDeactivate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/commissioncreatedevent.d.ts +54 -6
- package/dist/esm/models/components/commissioncreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/commissioncreatedevent.js +30 -2
- package/dist/esm/models/components/commissioncreatedevent.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +21 -6
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +8 -2
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.d.ts +402 -0
- package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.js +391 -0
- package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +21 -6
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +8 -2
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/operations/approvebountysubmission.d.ts +130 -0
- package/dist/esm/models/operations/approvebountysubmission.d.ts.map +1 -0
- package/dist/esm/models/operations/approvebountysubmission.js +67 -0
- package/dist/esm/models/operations/approvebountysubmission.js.map +1 -0
- package/dist/esm/models/operations/createpartner.d.ts +130 -0
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +168 -0
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/deactivatepartner.d.ts +34 -0
- package/dist/esm/models/operations/deactivatepartner.d.ts.map +1 -0
- package/dist/esm/models/operations/deactivatepartner.js +21 -0
- package/dist/esm/models/operations/deactivatepartner.js.map +1 -0
- package/dist/esm/models/operations/getcustomer.d.ts +17 -5
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +4 -1
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +19 -5
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +6 -1
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbountysubmissions.d.ts +183 -0
- package/dist/esm/models/operations/listbountysubmissions.d.ts.map +1 -0
- package/dist/esm/models/operations/listbountysubmissions.js +90 -0
- package/dist/esm/models/operations/listbountysubmissions.js.map +1 -0
- package/dist/esm/models/operations/listcommissions.d.ts +17 -5
- package/dist/esm/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listcommissions.js +4 -1
- package/dist/esm/models/operations/listcommissions.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +34 -10
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +8 -2
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listpartners.d.ts +130 -0
- package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
- package/dist/esm/models/operations/listpartners.js +164 -0
- package/dist/esm/models/operations/listpartners.js.map +1 -1
- package/dist/esm/models/operations/rejectbountysubmission.d.ts +151 -0
- package/dist/esm/models/operations/rejectbountysubmission.d.ts.map +1 -0
- package/dist/esm/models/operations/rejectbountysubmission.js +80 -0
- package/dist/esm/models/operations/rejectbountysubmission.js.map +1 -0
- package/dist/esm/models/operations/updatecommission.d.ts +17 -5
- package/dist/esm/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecommission.js +4 -1
- package/dist/esm/models/operations/updatecommission.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +17 -5
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +4 -1
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.d.ts +3 -3
- package/dist/esm/models/operations/upsertpartnerlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.js +1 -1
- package/dist/esm/models/operations/upsertpartnerlink.js.map +1 -1
- package/dist/esm/sdk/bounties.d.ts +26 -0
- package/dist/esm/sdk/bounties.d.ts.map +1 -0
- package/dist/esm/sdk/bounties.js +38 -0
- package/dist/esm/sdk/bounties.js.map +1 -0
- package/dist/esm/sdk/partners.d.ts +7 -0
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js +10 -0
- package/dist/esm/sdk/partners.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/bountiesApproveSubmission.ts +227 -0
- package/src/funcs/bountiesListSubmissions.ts +235 -0
- package/src/funcs/{workspacesUpdate.ts → bountiesRejectSubmission.ts} +23 -25
- package/src/funcs/{workspacesGet.ts → partnersDeactivate.ts} +21 -23
- package/src/lib/config.ts +3 -3
- package/src/models/components/commissioncreatedevent.ts +100 -8
- package/src/models/components/index.ts +0 -1
- package/src/models/components/leadcreatedevent.ts +29 -8
- package/src/models/components/partnerenrolledevent.ts +959 -0
- package/src/models/components/salecreatedevent.ts +29 -8
- package/src/models/operations/approvebountysubmission.ts +235 -0
- package/src/models/operations/createpartner.ts +415 -0
- package/src/models/operations/deactivatepartner.ts +74 -0
- package/src/models/operations/getcustomer.ts +21 -6
- package/src/models/operations/getcustomers.ts +23 -6
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/listbountysubmissions.ts +287 -0
- package/src/models/operations/listcommissions.ts +21 -6
- package/src/models/operations/listevents.ts +42 -12
- package/src/models/operations/listpartners.ts +446 -0
- package/src/models/operations/rejectbountysubmission.ts +261 -0
- package/src/models/operations/updatecommission.ts +21 -6
- package/src/models/operations/updatecustomer.ts +21 -6
- package/src/models/operations/upsertpartnerlink.ts +4 -4
- package/src/sdk/bounties.ts +63 -0
- package/src/sdk/partners.ts +18 -0
- package/src/sdk/sdk.ts +6 -6
- package/dist/commonjs/funcs/workspacesGet.d.ts +0 -19
- package/dist/commonjs/funcs/workspacesGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/workspacesGet.js.map +0 -1
- package/dist/commonjs/funcs/workspacesUpdate.d.ts +0 -19
- package/dist/commonjs/funcs/workspacesUpdate.d.ts.map +0 -1
- package/dist/commonjs/funcs/workspacesUpdate.js.map +0 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts +0 -222
- package/dist/commonjs/models/components/workspaceschema.d.ts.map +0 -1
- package/dist/commonjs/models/components/workspaceschema.js +0 -131
- package/dist/commonjs/models/components/workspaceschema.js.map +0 -1
- package/dist/commonjs/models/operations/getworkspace.d.ts +0 -15
- package/dist/commonjs/models/operations/getworkspace.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getworkspace.js.map +0 -1
- package/dist/commonjs/models/operations/updateworkspace.d.ts +0 -33
- package/dist/commonjs/models/operations/updateworkspace.d.ts.map +0 -1
- package/dist/commonjs/models/operations/updateworkspace.js +0 -67
- package/dist/commonjs/models/operations/updateworkspace.js.map +0 -1
- package/dist/commonjs/sdk/workspaces.d.ts +0 -20
- package/dist/commonjs/sdk/workspaces.d.ts.map +0 -1
- package/dist/commonjs/sdk/workspaces.js +0 -32
- package/dist/commonjs/sdk/workspaces.js.map +0 -1
- package/dist/esm/funcs/workspacesGet.d.ts +0 -19
- package/dist/esm/funcs/workspacesGet.d.ts.map +0 -1
- package/dist/esm/funcs/workspacesGet.js.map +0 -1
- package/dist/esm/funcs/workspacesUpdate.d.ts +0 -19
- package/dist/esm/funcs/workspacesUpdate.d.ts.map +0 -1
- package/dist/esm/funcs/workspacesUpdate.js.map +0 -1
- package/dist/esm/models/components/workspaceschema.d.ts +0 -222
- package/dist/esm/models/components/workspaceschema.d.ts.map +0 -1
- package/dist/esm/models/components/workspaceschema.js +0 -92
- package/dist/esm/models/components/workspaceschema.js.map +0 -1
- package/dist/esm/models/operations/getworkspace.d.ts +0 -15
- package/dist/esm/models/operations/getworkspace.d.ts.map +0 -1
- package/dist/esm/models/operations/getworkspace.js +0 -12
- package/dist/esm/models/operations/getworkspace.js.map +0 -1
- package/dist/esm/models/operations/updateworkspace.d.ts +0 -33
- package/dist/esm/models/operations/updateworkspace.d.ts.map +0 -1
- package/dist/esm/models/operations/updateworkspace.js +0 -29
- package/dist/esm/models/operations/updateworkspace.js.map +0 -1
- package/dist/esm/sdk/workspaces.d.ts +0 -20
- package/dist/esm/sdk/workspaces.d.ts.map +0 -1
- package/dist/esm/sdk/workspaces.js +0 -28
- package/dist/esm/sdk/workspaces.js.map +0 -1
- package/src/models/components/workspaceschema.ts +0 -315
- package/src/models/operations/getworkspace.ts +0 -34
- package/src/models/operations/updateworkspace.ts +0 -78
- package/src/sdk/workspaces.ts +0 -48
|
@@ -237,6 +237,117 @@ export const BannedReason = {
|
|
|
237
237
|
*/
|
|
238
238
|
export type BannedReason = ClosedEnum<typeof BannedReason>;
|
|
239
239
|
|
|
240
|
+
export type Eight = {
|
|
241
|
+
key: string;
|
|
242
|
+
label: string;
|
|
243
|
+
required: boolean;
|
|
244
|
+
locked: boolean;
|
|
245
|
+
position: number;
|
|
246
|
+
type: "phone";
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type Seven = {
|
|
250
|
+
key: string;
|
|
251
|
+
label: string;
|
|
252
|
+
required: boolean;
|
|
253
|
+
locked: boolean;
|
|
254
|
+
position: number;
|
|
255
|
+
type: "number";
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export type FieldsOptions = {
|
|
259
|
+
label: string;
|
|
260
|
+
value: string;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export type Six = {
|
|
264
|
+
key: string;
|
|
265
|
+
label: string;
|
|
266
|
+
required: boolean;
|
|
267
|
+
locked: boolean;
|
|
268
|
+
position: number;
|
|
269
|
+
type: "multiSelect";
|
|
270
|
+
options: Array<FieldsOptions>;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type Five = {
|
|
274
|
+
key: string;
|
|
275
|
+
label: string;
|
|
276
|
+
required: boolean;
|
|
277
|
+
locked: boolean;
|
|
278
|
+
position: number;
|
|
279
|
+
type: "date";
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export type Fields4 = {
|
|
283
|
+
key: string;
|
|
284
|
+
label: string;
|
|
285
|
+
required: boolean;
|
|
286
|
+
locked: boolean;
|
|
287
|
+
position: number;
|
|
288
|
+
type: "country";
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export type Options = {
|
|
292
|
+
label: string;
|
|
293
|
+
value: string;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export type Fields3 = {
|
|
297
|
+
key: string;
|
|
298
|
+
label: string;
|
|
299
|
+
required: boolean;
|
|
300
|
+
locked: boolean;
|
|
301
|
+
position: number;
|
|
302
|
+
type: "select";
|
|
303
|
+
options: Array<Options>;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export type FieldsConstraints = {
|
|
307
|
+
maxLength?: number | undefined;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export type Fields2 = {
|
|
311
|
+
key: string;
|
|
312
|
+
label: string;
|
|
313
|
+
required: boolean;
|
|
314
|
+
locked: boolean;
|
|
315
|
+
position: number;
|
|
316
|
+
type: "textarea";
|
|
317
|
+
constraints?: FieldsConstraints | undefined;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
export type Constraints = {
|
|
321
|
+
maxLength?: number | undefined;
|
|
322
|
+
pattern?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
export type Fields1 = {
|
|
326
|
+
key: string;
|
|
327
|
+
label: string;
|
|
328
|
+
required: boolean;
|
|
329
|
+
locked: boolean;
|
|
330
|
+
position: number;
|
|
331
|
+
type: "text";
|
|
332
|
+
constraints?: Constraints | undefined;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export type Fields =
|
|
336
|
+
| Fields1
|
|
337
|
+
| Fields2
|
|
338
|
+
| Fields3
|
|
339
|
+
| Fields4
|
|
340
|
+
| Five
|
|
341
|
+
| Six
|
|
342
|
+
| Seven
|
|
343
|
+
| Eight;
|
|
344
|
+
|
|
345
|
+
export type ReferralFormData = {
|
|
346
|
+
fields: Array<
|
|
347
|
+
Fields1 | Fields2 | Fields3 | Fields4 | Five | Six | Seven | Eight
|
|
348
|
+
>;
|
|
349
|
+
};
|
|
350
|
+
|
|
240
351
|
/**
|
|
241
352
|
* The created or updated partner
|
|
242
353
|
*/
|
|
@@ -330,6 +441,7 @@ export type CreatePartnerResponseBody = {
|
|
|
330
441
|
* If the partner was banned from the program, this is the reason for the ban.
|
|
331
442
|
*/
|
|
332
443
|
bannedReason?: BannedReason | null | undefined;
|
|
444
|
+
referralFormData?: ReferralFormData | null | undefined;
|
|
333
445
|
/**
|
|
334
446
|
* The total number of clicks on the partner's links
|
|
335
447
|
*/
|
|
@@ -600,6 +712,307 @@ export function linksFromJSON(
|
|
|
600
712
|
export const BannedReason$inboundSchema: z.ZodNativeEnum<typeof BannedReason> =
|
|
601
713
|
z.nativeEnum(BannedReason);
|
|
602
714
|
|
|
715
|
+
/** @internal */
|
|
716
|
+
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
717
|
+
.object({
|
|
718
|
+
key: z.string(),
|
|
719
|
+
label: z.string(),
|
|
720
|
+
required: z.boolean(),
|
|
721
|
+
locked: z.boolean(),
|
|
722
|
+
position: z.number().int(),
|
|
723
|
+
type: z.literal("phone"),
|
|
724
|
+
});
|
|
725
|
+
|
|
726
|
+
export function eightFromJSON(
|
|
727
|
+
jsonString: string,
|
|
728
|
+
): SafeParseResult<Eight, SDKValidationError> {
|
|
729
|
+
return safeParse(
|
|
730
|
+
jsonString,
|
|
731
|
+
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
732
|
+
`Failed to parse 'Eight' from JSON`,
|
|
733
|
+
);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
738
|
+
.object({
|
|
739
|
+
key: z.string(),
|
|
740
|
+
label: z.string(),
|
|
741
|
+
required: z.boolean(),
|
|
742
|
+
locked: z.boolean(),
|
|
743
|
+
position: z.number().int(),
|
|
744
|
+
type: z.literal("number"),
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
export function sevenFromJSON(
|
|
748
|
+
jsonString: string,
|
|
749
|
+
): SafeParseResult<Seven, SDKValidationError> {
|
|
750
|
+
return safeParse(
|
|
751
|
+
jsonString,
|
|
752
|
+
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
753
|
+
`Failed to parse 'Seven' from JSON`,
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** @internal */
|
|
758
|
+
export const FieldsOptions$inboundSchema: z.ZodType<
|
|
759
|
+
FieldsOptions,
|
|
760
|
+
z.ZodTypeDef,
|
|
761
|
+
unknown
|
|
762
|
+
> = z.object({
|
|
763
|
+
label: z.string(),
|
|
764
|
+
value: z.string(),
|
|
765
|
+
});
|
|
766
|
+
|
|
767
|
+
export function fieldsOptionsFromJSON(
|
|
768
|
+
jsonString: string,
|
|
769
|
+
): SafeParseResult<FieldsOptions, SDKValidationError> {
|
|
770
|
+
return safeParse(
|
|
771
|
+
jsonString,
|
|
772
|
+
(x) => FieldsOptions$inboundSchema.parse(JSON.parse(x)),
|
|
773
|
+
`Failed to parse 'FieldsOptions' from JSON`,
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/** @internal */
|
|
778
|
+
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
779
|
+
.object({
|
|
780
|
+
key: z.string(),
|
|
781
|
+
label: z.string(),
|
|
782
|
+
required: z.boolean(),
|
|
783
|
+
locked: z.boolean(),
|
|
784
|
+
position: z.number().int(),
|
|
785
|
+
type: z.literal("multiSelect"),
|
|
786
|
+
options: z.array(z.lazy(() => FieldsOptions$inboundSchema)),
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
export function sixFromJSON(
|
|
790
|
+
jsonString: string,
|
|
791
|
+
): SafeParseResult<Six, SDKValidationError> {
|
|
792
|
+
return safeParse(
|
|
793
|
+
jsonString,
|
|
794
|
+
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
795
|
+
`Failed to parse 'Six' from JSON`,
|
|
796
|
+
);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/** @internal */
|
|
800
|
+
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
801
|
+
.object({
|
|
802
|
+
key: z.string(),
|
|
803
|
+
label: z.string(),
|
|
804
|
+
required: z.boolean(),
|
|
805
|
+
locked: z.boolean(),
|
|
806
|
+
position: z.number().int(),
|
|
807
|
+
type: z.literal("date"),
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
export function fiveFromJSON(
|
|
811
|
+
jsonString: string,
|
|
812
|
+
): SafeParseResult<Five, SDKValidationError> {
|
|
813
|
+
return safeParse(
|
|
814
|
+
jsonString,
|
|
815
|
+
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
816
|
+
`Failed to parse 'Five' from JSON`,
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/** @internal */
|
|
821
|
+
export const Fields4$inboundSchema: z.ZodType<Fields4, z.ZodTypeDef, unknown> =
|
|
822
|
+
z.object({
|
|
823
|
+
key: z.string(),
|
|
824
|
+
label: z.string(),
|
|
825
|
+
required: z.boolean(),
|
|
826
|
+
locked: z.boolean(),
|
|
827
|
+
position: z.number().int(),
|
|
828
|
+
type: z.literal("country"),
|
|
829
|
+
});
|
|
830
|
+
|
|
831
|
+
export function fields4FromJSON(
|
|
832
|
+
jsonString: string,
|
|
833
|
+
): SafeParseResult<Fields4, SDKValidationError> {
|
|
834
|
+
return safeParse(
|
|
835
|
+
jsonString,
|
|
836
|
+
(x) => Fields4$inboundSchema.parse(JSON.parse(x)),
|
|
837
|
+
`Failed to parse 'Fields4' from JSON`,
|
|
838
|
+
);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/** @internal */
|
|
842
|
+
export const Options$inboundSchema: z.ZodType<Options, z.ZodTypeDef, unknown> =
|
|
843
|
+
z.object({
|
|
844
|
+
label: z.string(),
|
|
845
|
+
value: z.string(),
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
export function optionsFromJSON(
|
|
849
|
+
jsonString: string,
|
|
850
|
+
): SafeParseResult<Options, SDKValidationError> {
|
|
851
|
+
return safeParse(
|
|
852
|
+
jsonString,
|
|
853
|
+
(x) => Options$inboundSchema.parse(JSON.parse(x)),
|
|
854
|
+
`Failed to parse 'Options' from JSON`,
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/** @internal */
|
|
859
|
+
export const Fields3$inboundSchema: z.ZodType<Fields3, z.ZodTypeDef, unknown> =
|
|
860
|
+
z.object({
|
|
861
|
+
key: z.string(),
|
|
862
|
+
label: z.string(),
|
|
863
|
+
required: z.boolean(),
|
|
864
|
+
locked: z.boolean(),
|
|
865
|
+
position: z.number().int(),
|
|
866
|
+
type: z.literal("select"),
|
|
867
|
+
options: z.array(z.lazy(() => Options$inboundSchema)),
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
export function fields3FromJSON(
|
|
871
|
+
jsonString: string,
|
|
872
|
+
): SafeParseResult<Fields3, SDKValidationError> {
|
|
873
|
+
return safeParse(
|
|
874
|
+
jsonString,
|
|
875
|
+
(x) => Fields3$inboundSchema.parse(JSON.parse(x)),
|
|
876
|
+
`Failed to parse 'Fields3' from JSON`,
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const FieldsConstraints$inboundSchema: z.ZodType<
|
|
882
|
+
FieldsConstraints,
|
|
883
|
+
z.ZodTypeDef,
|
|
884
|
+
unknown
|
|
885
|
+
> = z.object({
|
|
886
|
+
maxLength: z.number().int().optional(),
|
|
887
|
+
});
|
|
888
|
+
|
|
889
|
+
export function fieldsConstraintsFromJSON(
|
|
890
|
+
jsonString: string,
|
|
891
|
+
): SafeParseResult<FieldsConstraints, SDKValidationError> {
|
|
892
|
+
return safeParse(
|
|
893
|
+
jsonString,
|
|
894
|
+
(x) => FieldsConstraints$inboundSchema.parse(JSON.parse(x)),
|
|
895
|
+
`Failed to parse 'FieldsConstraints' from JSON`,
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/** @internal */
|
|
900
|
+
export const Fields2$inboundSchema: z.ZodType<Fields2, z.ZodTypeDef, unknown> =
|
|
901
|
+
z.object({
|
|
902
|
+
key: z.string(),
|
|
903
|
+
label: z.string(),
|
|
904
|
+
required: z.boolean(),
|
|
905
|
+
locked: z.boolean(),
|
|
906
|
+
position: z.number().int(),
|
|
907
|
+
type: z.literal("textarea"),
|
|
908
|
+
constraints: z.lazy(() => FieldsConstraints$inboundSchema).optional(),
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
export function fields2FromJSON(
|
|
912
|
+
jsonString: string,
|
|
913
|
+
): SafeParseResult<Fields2, SDKValidationError> {
|
|
914
|
+
return safeParse(
|
|
915
|
+
jsonString,
|
|
916
|
+
(x) => Fields2$inboundSchema.parse(JSON.parse(x)),
|
|
917
|
+
`Failed to parse 'Fields2' from JSON`,
|
|
918
|
+
);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/** @internal */
|
|
922
|
+
export const Constraints$inboundSchema: z.ZodType<
|
|
923
|
+
Constraints,
|
|
924
|
+
z.ZodTypeDef,
|
|
925
|
+
unknown
|
|
926
|
+
> = z.object({
|
|
927
|
+
maxLength: z.number().int().optional(),
|
|
928
|
+
pattern: z.string().optional(),
|
|
929
|
+
});
|
|
930
|
+
|
|
931
|
+
export function constraintsFromJSON(
|
|
932
|
+
jsonString: string,
|
|
933
|
+
): SafeParseResult<Constraints, SDKValidationError> {
|
|
934
|
+
return safeParse(
|
|
935
|
+
jsonString,
|
|
936
|
+
(x) => Constraints$inboundSchema.parse(JSON.parse(x)),
|
|
937
|
+
`Failed to parse 'Constraints' from JSON`,
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/** @internal */
|
|
942
|
+
export const Fields1$inboundSchema: z.ZodType<Fields1, z.ZodTypeDef, unknown> =
|
|
943
|
+
z.object({
|
|
944
|
+
key: z.string(),
|
|
945
|
+
label: z.string(),
|
|
946
|
+
required: z.boolean(),
|
|
947
|
+
locked: z.boolean(),
|
|
948
|
+
position: z.number().int(),
|
|
949
|
+
type: z.literal("text"),
|
|
950
|
+
constraints: z.lazy(() => Constraints$inboundSchema).optional(),
|
|
951
|
+
});
|
|
952
|
+
|
|
953
|
+
export function fields1FromJSON(
|
|
954
|
+
jsonString: string,
|
|
955
|
+
): SafeParseResult<Fields1, SDKValidationError> {
|
|
956
|
+
return safeParse(
|
|
957
|
+
jsonString,
|
|
958
|
+
(x) => Fields1$inboundSchema.parse(JSON.parse(x)),
|
|
959
|
+
`Failed to parse 'Fields1' from JSON`,
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/** @internal */
|
|
964
|
+
export const Fields$inboundSchema: z.ZodType<Fields, z.ZodTypeDef, unknown> = z
|
|
965
|
+
.union([
|
|
966
|
+
z.lazy(() => Fields1$inboundSchema),
|
|
967
|
+
z.lazy(() => Fields2$inboundSchema),
|
|
968
|
+
z.lazy(() => Fields3$inboundSchema),
|
|
969
|
+
z.lazy(() => Fields4$inboundSchema),
|
|
970
|
+
z.lazy(() => Five$inboundSchema),
|
|
971
|
+
z.lazy(() => Six$inboundSchema),
|
|
972
|
+
z.lazy(() => Seven$inboundSchema),
|
|
973
|
+
z.lazy(() => Eight$inboundSchema),
|
|
974
|
+
]);
|
|
975
|
+
|
|
976
|
+
export function fieldsFromJSON(
|
|
977
|
+
jsonString: string,
|
|
978
|
+
): SafeParseResult<Fields, SDKValidationError> {
|
|
979
|
+
return safeParse(
|
|
980
|
+
jsonString,
|
|
981
|
+
(x) => Fields$inboundSchema.parse(JSON.parse(x)),
|
|
982
|
+
`Failed to parse 'Fields' from JSON`,
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/** @internal */
|
|
987
|
+
export const ReferralFormData$inboundSchema: z.ZodType<
|
|
988
|
+
ReferralFormData,
|
|
989
|
+
z.ZodTypeDef,
|
|
990
|
+
unknown
|
|
991
|
+
> = z.object({
|
|
992
|
+
fields: z.array(
|
|
993
|
+
z.union([
|
|
994
|
+
z.lazy(() => Fields1$inboundSchema),
|
|
995
|
+
z.lazy(() => Fields2$inboundSchema),
|
|
996
|
+
z.lazy(() => Fields3$inboundSchema),
|
|
997
|
+
z.lazy(() => Fields4$inboundSchema),
|
|
998
|
+
z.lazy(() => Five$inboundSchema),
|
|
999
|
+
z.lazy(() => Six$inboundSchema),
|
|
1000
|
+
z.lazy(() => Seven$inboundSchema),
|
|
1001
|
+
z.lazy(() => Eight$inboundSchema),
|
|
1002
|
+
]),
|
|
1003
|
+
),
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
export function referralFormDataFromJSON(
|
|
1007
|
+
jsonString: string,
|
|
1008
|
+
): SafeParseResult<ReferralFormData, SDKValidationError> {
|
|
1009
|
+
return safeParse(
|
|
1010
|
+
jsonString,
|
|
1011
|
+
(x) => ReferralFormData$inboundSchema.parse(JSON.parse(x)),
|
|
1012
|
+
`Failed to parse 'ReferralFormData' from JSON`,
|
|
1013
|
+
);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
603
1016
|
/** @internal */
|
|
604
1017
|
export const CreatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
605
1018
|
CreatePartnerResponseBody,
|
|
@@ -632,6 +1045,8 @@ export const CreatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
|
632
1045
|
applicationId: z.nullable(z.string()).optional(),
|
|
633
1046
|
bannedAt: z.nullable(z.string()).optional(),
|
|
634
1047
|
bannedReason: z.nullable(BannedReason$inboundSchema).optional(),
|
|
1048
|
+
referralFormData: z.nullable(z.lazy(() => ReferralFormData$inboundSchema))
|
|
1049
|
+
.optional(),
|
|
635
1050
|
totalClicks: z.number().default(0),
|
|
636
1051
|
totalLeads: z.number().default(0),
|
|
637
1052
|
totalConversions: z.number().default(0),
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeactivatePartnerRequestBody = {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the partner to create a link for. Will take precedence over `tenantId` if provided.
|
|
13
|
+
*/
|
|
14
|
+
partnerId?: string | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown.
|
|
17
|
+
*/
|
|
18
|
+
tenantId?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The deactivated partner
|
|
23
|
+
*/
|
|
24
|
+
export type DeactivatePartnerResponseBody = {
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the deactivated partner.
|
|
27
|
+
*/
|
|
28
|
+
partnerId: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type DeactivatePartnerRequestBody$Outbound = {
|
|
33
|
+
partnerId?: string | null | undefined;
|
|
34
|
+
tenantId?: string | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DeactivatePartnerRequestBody$outboundSchema: z.ZodType<
|
|
39
|
+
DeactivatePartnerRequestBody$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
DeactivatePartnerRequestBody
|
|
42
|
+
> = z.object({
|
|
43
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
44
|
+
tenantId: z.nullable(z.string()).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function deactivatePartnerRequestBodyToJSON(
|
|
48
|
+
deactivatePartnerRequestBody: DeactivatePartnerRequestBody,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
DeactivatePartnerRequestBody$outboundSchema.parse(
|
|
52
|
+
deactivatePartnerRequestBody,
|
|
53
|
+
),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const DeactivatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
59
|
+
DeactivatePartnerResponseBody,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.object({
|
|
63
|
+
partnerId: z.string(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function deactivatePartnerResponseBodyFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<DeactivatePartnerResponseBody, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => DeactivatePartnerResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'DeactivatePartnerResponseBody' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -90,10 +90,6 @@ export type GetCustomerResponseBody = {
|
|
|
90
90
|
* The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
|
91
91
|
*/
|
|
92
92
|
id: string;
|
|
93
|
-
/**
|
|
94
|
-
* Unique identifier for the customer in the client's app.
|
|
95
|
-
*/
|
|
96
|
-
externalId: string;
|
|
97
93
|
/**
|
|
98
94
|
* Name of the customer.
|
|
99
95
|
*/
|
|
@@ -106,6 +102,14 @@ export type GetCustomerResponseBody = {
|
|
|
106
102
|
* Avatar URL of the customer.
|
|
107
103
|
*/
|
|
108
104
|
avatar?: string | null | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Unique identifier for the customer in the client's app.
|
|
107
|
+
*/
|
|
108
|
+
externalId: string;
|
|
109
|
+
/**
|
|
110
|
+
* The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
|
|
111
|
+
*/
|
|
112
|
+
stripeCustomerId?: string | null | undefined;
|
|
109
113
|
/**
|
|
110
114
|
* Country of the customer.
|
|
111
115
|
*/
|
|
@@ -119,9 +123,17 @@ export type GetCustomerResponseBody = {
|
|
|
119
123
|
*/
|
|
120
124
|
saleAmount?: number | null | undefined;
|
|
121
125
|
/**
|
|
122
|
-
* The date the customer was created.
|
|
126
|
+
* The date the customer was created (usually the signup date or trial start date).
|
|
123
127
|
*/
|
|
124
128
|
createdAt: string;
|
|
129
|
+
/**
|
|
130
|
+
* The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
|
|
131
|
+
*/
|
|
132
|
+
firstSaleAt?: string | null | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
|
|
135
|
+
*/
|
|
136
|
+
subscriptionCanceledAt?: string | null | undefined;
|
|
125
137
|
link?: GetCustomerLink | null | undefined;
|
|
126
138
|
programId?: string | null | undefined;
|
|
127
139
|
partner?: GetCustomerPartner | null | undefined;
|
|
@@ -236,14 +248,17 @@ export const GetCustomerResponseBody$inboundSchema: z.ZodType<
|
|
|
236
248
|
unknown
|
|
237
249
|
> = z.object({
|
|
238
250
|
id: z.string(),
|
|
239
|
-
externalId: z.string(),
|
|
240
251
|
name: z.string(),
|
|
241
252
|
email: z.nullable(z.string()).optional(),
|
|
242
253
|
avatar: z.nullable(z.string()).optional(),
|
|
254
|
+
externalId: z.string(),
|
|
255
|
+
stripeCustomerId: z.nullable(z.string()).optional(),
|
|
243
256
|
country: z.nullable(z.string()).optional(),
|
|
244
257
|
sales: z.nullable(z.number()).optional(),
|
|
245
258
|
saleAmount: z.nullable(z.number()).optional(),
|
|
246
259
|
createdAt: z.string(),
|
|
260
|
+
firstSaleAt: z.nullable(z.string()).optional(),
|
|
261
|
+
subscriptionCanceledAt: z.nullable(z.string()).optional(),
|
|
247
262
|
link: z.nullable(z.lazy(() => GetCustomerLink$inboundSchema)).optional(),
|
|
248
263
|
programId: z.nullable(z.string()).optional(),
|
|
249
264
|
partner: z.nullable(z.lazy(() => GetCustomerPartner$inboundSchema))
|
|
@@ -14,6 +14,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
14
14
|
export const GetCustomersQueryParamSortBy = {
|
|
15
15
|
CreatedAt: "createdAt",
|
|
16
16
|
SaleAmount: "saleAmount",
|
|
17
|
+
FirstSaleAt: "firstSaleAt",
|
|
18
|
+
SubscriptionCanceledAt: "subscriptionCanceledAt",
|
|
17
19
|
} as const;
|
|
18
20
|
/**
|
|
19
21
|
* The field to sort the customers by. The default is `createdAt`.
|
|
@@ -155,10 +157,6 @@ export type GetCustomersResponseBody = {
|
|
|
155
157
|
* The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
|
156
158
|
*/
|
|
157
159
|
id: string;
|
|
158
|
-
/**
|
|
159
|
-
* Unique identifier for the customer in the client's app.
|
|
160
|
-
*/
|
|
161
|
-
externalId: string;
|
|
162
160
|
/**
|
|
163
161
|
* Name of the customer.
|
|
164
162
|
*/
|
|
@@ -171,6 +169,14 @@ export type GetCustomersResponseBody = {
|
|
|
171
169
|
* Avatar URL of the customer.
|
|
172
170
|
*/
|
|
173
171
|
avatar?: string | null | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Unique identifier for the customer in the client's app.
|
|
174
|
+
*/
|
|
175
|
+
externalId: string;
|
|
176
|
+
/**
|
|
177
|
+
* The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
|
|
178
|
+
*/
|
|
179
|
+
stripeCustomerId?: string | null | undefined;
|
|
174
180
|
/**
|
|
175
181
|
* Country of the customer.
|
|
176
182
|
*/
|
|
@@ -184,9 +190,17 @@ export type GetCustomersResponseBody = {
|
|
|
184
190
|
*/
|
|
185
191
|
saleAmount?: number | null | undefined;
|
|
186
192
|
/**
|
|
187
|
-
* The date the customer was created.
|
|
193
|
+
* The date the customer was created (usually the signup date or trial start date).
|
|
188
194
|
*/
|
|
189
195
|
createdAt: string;
|
|
196
|
+
/**
|
|
197
|
+
* The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
|
|
198
|
+
*/
|
|
199
|
+
firstSaleAt?: string | null | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
|
|
202
|
+
*/
|
|
203
|
+
subscriptionCanceledAt?: string | null | undefined;
|
|
190
204
|
link?: GetCustomersLink | null | undefined;
|
|
191
205
|
programId?: string | null | undefined;
|
|
192
206
|
partner?: GetCustomersPartner | null | undefined;
|
|
@@ -331,14 +345,17 @@ export const GetCustomersResponseBody$inboundSchema: z.ZodType<
|
|
|
331
345
|
unknown
|
|
332
346
|
> = z.object({
|
|
333
347
|
id: z.string(),
|
|
334
|
-
externalId: z.string(),
|
|
335
348
|
name: z.string(),
|
|
336
349
|
email: z.nullable(z.string()).optional(),
|
|
337
350
|
avatar: z.nullable(z.string()).optional(),
|
|
351
|
+
externalId: z.string(),
|
|
352
|
+
stripeCustomerId: z.nullable(z.string()).optional(),
|
|
338
353
|
country: z.nullable(z.string()).optional(),
|
|
339
354
|
sales: z.nullable(z.number()).optional(),
|
|
340
355
|
saleAmount: z.nullable(z.number()).optional(),
|
|
341
356
|
createdAt: z.string(),
|
|
357
|
+
firstSaleAt: z.nullable(z.string()).optional(),
|
|
358
|
+
subscriptionCanceledAt: z.nullable(z.string()).optional(),
|
|
342
359
|
link: z.nullable(z.lazy(() => GetCustomersLink$inboundSchema)).optional(),
|
|
343
360
|
programId: z.nullable(z.string()).optional(),
|
|
344
361
|
partner: z.nullable(z.lazy(() => GetCustomersPartner$inboundSchema))
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./approvebountysubmission.js";
|
|
5
6
|
export * from "./banpartner.js";
|
|
6
7
|
export * from "./bulkcreatelinks.js";
|
|
7
8
|
export * from "./bulkdeletelinks.js";
|
|
@@ -14,6 +15,7 @@ export * from "./createpartner.js";
|
|
|
14
15
|
export * from "./createpartnerlink.js";
|
|
15
16
|
export * from "./createreferralsembedtoken.js";
|
|
16
17
|
export * from "./createtag.js";
|
|
18
|
+
export * from "./deactivatepartner.js";
|
|
17
19
|
export * from "./deletecustomer.js";
|
|
18
20
|
export * from "./deletedomain.js";
|
|
19
21
|
export * from "./deletefolder.js";
|
|
@@ -26,13 +28,14 @@ export * from "./getlinks.js";
|
|
|
26
28
|
export * from "./getlinkscount.js";
|
|
27
29
|
export * from "./getqrcode.js";
|
|
28
30
|
export * from "./gettags.js";
|
|
29
|
-
export * from "./
|
|
31
|
+
export * from "./listbountysubmissions.js";
|
|
30
32
|
export * from "./listcommissions.js";
|
|
31
33
|
export * from "./listdomains.js";
|
|
32
34
|
export * from "./listevents.js";
|
|
33
35
|
export * from "./listfolders.js";
|
|
34
36
|
export * from "./listpartners.js";
|
|
35
37
|
export * from "./registerdomain.js";
|
|
38
|
+
export * from "./rejectbountysubmission.js";
|
|
36
39
|
export * from "./retrieveanalytics.js";
|
|
37
40
|
export * from "./retrievelinks.js";
|
|
38
41
|
export * from "./retrievepartneranalytics.js";
|
|
@@ -44,6 +47,5 @@ export * from "./updatedomain.js";
|
|
|
44
47
|
export * from "./updatefolder.js";
|
|
45
48
|
export * from "./updatelink.js";
|
|
46
49
|
export * from "./updatetag.js";
|
|
47
|
-
export * from "./updateworkspace.js";
|
|
48
50
|
export * from "./upsertlink.js";
|
|
49
51
|
export * from "./upsertpartnerlink.js";
|