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
|
@@ -92,6 +92,178 @@ export const BannedReason = {
|
|
|
92
92
|
*/
|
|
93
93
|
export type BannedReason = ClosedEnum<typeof BannedReason>;
|
|
94
94
|
|
|
95
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData8Type = {
|
|
96
|
+
Phone: "phone",
|
|
97
|
+
} as const;
|
|
98
|
+
export type PartnerEnrolledEventFieldsDataReferralFormData8Type = ClosedEnum<
|
|
99
|
+
typeof PartnerEnrolledEventFieldsDataReferralFormData8Type
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
export type Eight = {
|
|
103
|
+
key: string;
|
|
104
|
+
label: string;
|
|
105
|
+
required: boolean;
|
|
106
|
+
locked: boolean;
|
|
107
|
+
position: number;
|
|
108
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData8Type;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData7Type = {
|
|
112
|
+
Number: "number",
|
|
113
|
+
} as const;
|
|
114
|
+
export type PartnerEnrolledEventFieldsDataReferralFormData7Type = ClosedEnum<
|
|
115
|
+
typeof PartnerEnrolledEventFieldsDataReferralFormData7Type
|
|
116
|
+
>;
|
|
117
|
+
|
|
118
|
+
export type Seven = {
|
|
119
|
+
key: string;
|
|
120
|
+
label: string;
|
|
121
|
+
required: boolean;
|
|
122
|
+
locked: boolean;
|
|
123
|
+
position: number;
|
|
124
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData7Type;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData6Type = {
|
|
128
|
+
MultiSelect: "multiSelect",
|
|
129
|
+
} as const;
|
|
130
|
+
export type PartnerEnrolledEventFieldsDataReferralFormData6Type = ClosedEnum<
|
|
131
|
+
typeof PartnerEnrolledEventFieldsDataReferralFormData6Type
|
|
132
|
+
>;
|
|
133
|
+
|
|
134
|
+
export type FieldsOptions = {
|
|
135
|
+
label: string;
|
|
136
|
+
value: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export type Six = {
|
|
140
|
+
key: string;
|
|
141
|
+
label: string;
|
|
142
|
+
required: boolean;
|
|
143
|
+
locked: boolean;
|
|
144
|
+
position: number;
|
|
145
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData6Type;
|
|
146
|
+
options: Array<FieldsOptions>;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData5Type = {
|
|
150
|
+
Date: "date",
|
|
151
|
+
} as const;
|
|
152
|
+
export type PartnerEnrolledEventFieldsDataReferralFormData5Type = ClosedEnum<
|
|
153
|
+
typeof PartnerEnrolledEventFieldsDataReferralFormData5Type
|
|
154
|
+
>;
|
|
155
|
+
|
|
156
|
+
export type Five = {
|
|
157
|
+
key: string;
|
|
158
|
+
label: string;
|
|
159
|
+
required: boolean;
|
|
160
|
+
locked: boolean;
|
|
161
|
+
position: number;
|
|
162
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData5Type;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export const PartnerEnrolledEventFieldsDataReferralFormDataType = {
|
|
166
|
+
Country: "country",
|
|
167
|
+
} as const;
|
|
168
|
+
export type PartnerEnrolledEventFieldsDataReferralFormDataType = ClosedEnum<
|
|
169
|
+
typeof PartnerEnrolledEventFieldsDataReferralFormDataType
|
|
170
|
+
>;
|
|
171
|
+
|
|
172
|
+
export type Four = {
|
|
173
|
+
key: string;
|
|
174
|
+
label: string;
|
|
175
|
+
required: boolean;
|
|
176
|
+
locked: boolean;
|
|
177
|
+
position: number;
|
|
178
|
+
type: PartnerEnrolledEventFieldsDataReferralFormDataType;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export const PartnerEnrolledEventFieldsDataType = {
|
|
182
|
+
Select: "select",
|
|
183
|
+
} as const;
|
|
184
|
+
export type PartnerEnrolledEventFieldsDataType = ClosedEnum<
|
|
185
|
+
typeof PartnerEnrolledEventFieldsDataType
|
|
186
|
+
>;
|
|
187
|
+
|
|
188
|
+
export type Options = {
|
|
189
|
+
label: string;
|
|
190
|
+
value: string;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export type Fields3 = {
|
|
194
|
+
key: string;
|
|
195
|
+
label: string;
|
|
196
|
+
required: boolean;
|
|
197
|
+
locked: boolean;
|
|
198
|
+
position: number;
|
|
199
|
+
type: PartnerEnrolledEventFieldsDataType;
|
|
200
|
+
options: Array<Options>;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export const PartnerEnrolledEventFieldsType = {
|
|
204
|
+
Textarea: "textarea",
|
|
205
|
+
} as const;
|
|
206
|
+
export type PartnerEnrolledEventFieldsType = ClosedEnum<
|
|
207
|
+
typeof PartnerEnrolledEventFieldsType
|
|
208
|
+
>;
|
|
209
|
+
|
|
210
|
+
export type FieldsConstraints = {
|
|
211
|
+
maxLength?: number | undefined;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type Fields2 = {
|
|
215
|
+
key: string;
|
|
216
|
+
label: string;
|
|
217
|
+
required: boolean;
|
|
218
|
+
locked: boolean;
|
|
219
|
+
position: number;
|
|
220
|
+
type: PartnerEnrolledEventFieldsType;
|
|
221
|
+
constraints?: FieldsConstraints | undefined;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export const FieldsType = {
|
|
225
|
+
Text: "text",
|
|
226
|
+
} as const;
|
|
227
|
+
export type FieldsType = ClosedEnum<typeof FieldsType>;
|
|
228
|
+
|
|
229
|
+
export type Constraints = {
|
|
230
|
+
maxLength?: number | undefined;
|
|
231
|
+
pattern?: string | undefined;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type Fields1 = {
|
|
235
|
+
key: string;
|
|
236
|
+
label: string;
|
|
237
|
+
required: boolean;
|
|
238
|
+
locked: boolean;
|
|
239
|
+
position: number;
|
|
240
|
+
type: FieldsType;
|
|
241
|
+
constraints?: Constraints | undefined;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
export type Fields =
|
|
245
|
+
| (Fields1 & { type: "text" })
|
|
246
|
+
| (Fields2 & { type: "textarea" })
|
|
247
|
+
| (Fields3 & { type: "select" })
|
|
248
|
+
| (Four & { type: "country" })
|
|
249
|
+
| (Five & { type: "date" })
|
|
250
|
+
| (Six & { type: "multiSelect" })
|
|
251
|
+
| (Seven & { type: "number" })
|
|
252
|
+
| (Eight & { type: "phone" });
|
|
253
|
+
|
|
254
|
+
export type ReferralFormData = {
|
|
255
|
+
fields: Array<
|
|
256
|
+
| (Fields1 & { type: "text" })
|
|
257
|
+
| (Fields2 & { type: "textarea" })
|
|
258
|
+
| (Fields3 & { type: "select" })
|
|
259
|
+
| (Four & { type: "country" })
|
|
260
|
+
| (Five & { type: "date" })
|
|
261
|
+
| (Six & { type: "multiSelect" })
|
|
262
|
+
| (Seven & { type: "number" })
|
|
263
|
+
| (Eight & { type: "phone" })
|
|
264
|
+
>;
|
|
265
|
+
};
|
|
266
|
+
|
|
95
267
|
export type PartnerEnrolledEventData = {
|
|
96
268
|
/**
|
|
97
269
|
* The partner's unique ID on Dub.
|
|
@@ -182,6 +354,7 @@ export type PartnerEnrolledEventData = {
|
|
|
182
354
|
* If the partner was banned from the program, this is the reason for the ban.
|
|
183
355
|
*/
|
|
184
356
|
bannedReason?: BannedReason | null | undefined;
|
|
357
|
+
referralFormData?: ReferralFormData | null | undefined;
|
|
185
358
|
/**
|
|
186
359
|
* The total number of clicks on the partner's links
|
|
187
360
|
*/
|
|
@@ -348,6 +521,787 @@ export const BannedReason$inboundSchema: z.ZodNativeEnum<typeof BannedReason> =
|
|
|
348
521
|
export const BannedReason$outboundSchema: z.ZodNativeEnum<typeof BannedReason> =
|
|
349
522
|
BannedReason$inboundSchema;
|
|
350
523
|
|
|
524
|
+
/** @internal */
|
|
525
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData8Type$inboundSchema:
|
|
526
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData8Type> =
|
|
527
|
+
z.nativeEnum(PartnerEnrolledEventFieldsDataReferralFormData8Type);
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData8Type$outboundSchema:
|
|
530
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData8Type> =
|
|
531
|
+
PartnerEnrolledEventFieldsDataReferralFormData8Type$inboundSchema;
|
|
532
|
+
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
535
|
+
.object({
|
|
536
|
+
key: z.string(),
|
|
537
|
+
label: z.string(),
|
|
538
|
+
required: z.boolean(),
|
|
539
|
+
locked: z.boolean(),
|
|
540
|
+
position: z.number().int(),
|
|
541
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData8Type$inboundSchema,
|
|
542
|
+
});
|
|
543
|
+
/** @internal */
|
|
544
|
+
export type Eight$Outbound = {
|
|
545
|
+
key: string;
|
|
546
|
+
label: string;
|
|
547
|
+
required: boolean;
|
|
548
|
+
locked: boolean;
|
|
549
|
+
position: number;
|
|
550
|
+
type: string;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
/** @internal */
|
|
554
|
+
export const Eight$outboundSchema: z.ZodType<
|
|
555
|
+
Eight$Outbound,
|
|
556
|
+
z.ZodTypeDef,
|
|
557
|
+
Eight
|
|
558
|
+
> = z.object({
|
|
559
|
+
key: z.string(),
|
|
560
|
+
label: z.string(),
|
|
561
|
+
required: z.boolean(),
|
|
562
|
+
locked: z.boolean(),
|
|
563
|
+
position: z.number().int(),
|
|
564
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData8Type$outboundSchema,
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
export function eightToJSON(eight: Eight): string {
|
|
568
|
+
return JSON.stringify(Eight$outboundSchema.parse(eight));
|
|
569
|
+
}
|
|
570
|
+
export function eightFromJSON(
|
|
571
|
+
jsonString: string,
|
|
572
|
+
): SafeParseResult<Eight, SDKValidationError> {
|
|
573
|
+
return safeParse(
|
|
574
|
+
jsonString,
|
|
575
|
+
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
576
|
+
`Failed to parse 'Eight' from JSON`,
|
|
577
|
+
);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/** @internal */
|
|
581
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData7Type$inboundSchema:
|
|
582
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData7Type> =
|
|
583
|
+
z.nativeEnum(PartnerEnrolledEventFieldsDataReferralFormData7Type);
|
|
584
|
+
/** @internal */
|
|
585
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData7Type$outboundSchema:
|
|
586
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData7Type> =
|
|
587
|
+
PartnerEnrolledEventFieldsDataReferralFormData7Type$inboundSchema;
|
|
588
|
+
|
|
589
|
+
/** @internal */
|
|
590
|
+
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
591
|
+
.object({
|
|
592
|
+
key: z.string(),
|
|
593
|
+
label: z.string(),
|
|
594
|
+
required: z.boolean(),
|
|
595
|
+
locked: z.boolean(),
|
|
596
|
+
position: z.number().int(),
|
|
597
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData7Type$inboundSchema,
|
|
598
|
+
});
|
|
599
|
+
/** @internal */
|
|
600
|
+
export type Seven$Outbound = {
|
|
601
|
+
key: string;
|
|
602
|
+
label: string;
|
|
603
|
+
required: boolean;
|
|
604
|
+
locked: boolean;
|
|
605
|
+
position: number;
|
|
606
|
+
type: string;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
/** @internal */
|
|
610
|
+
export const Seven$outboundSchema: z.ZodType<
|
|
611
|
+
Seven$Outbound,
|
|
612
|
+
z.ZodTypeDef,
|
|
613
|
+
Seven
|
|
614
|
+
> = z.object({
|
|
615
|
+
key: z.string(),
|
|
616
|
+
label: z.string(),
|
|
617
|
+
required: z.boolean(),
|
|
618
|
+
locked: z.boolean(),
|
|
619
|
+
position: z.number().int(),
|
|
620
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData7Type$outboundSchema,
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
export function sevenToJSON(seven: Seven): string {
|
|
624
|
+
return JSON.stringify(Seven$outboundSchema.parse(seven));
|
|
625
|
+
}
|
|
626
|
+
export function sevenFromJSON(
|
|
627
|
+
jsonString: string,
|
|
628
|
+
): SafeParseResult<Seven, SDKValidationError> {
|
|
629
|
+
return safeParse(
|
|
630
|
+
jsonString,
|
|
631
|
+
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
632
|
+
`Failed to parse 'Seven' from JSON`,
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/** @internal */
|
|
637
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData6Type$inboundSchema:
|
|
638
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData6Type> =
|
|
639
|
+
z.nativeEnum(PartnerEnrolledEventFieldsDataReferralFormData6Type);
|
|
640
|
+
/** @internal */
|
|
641
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData6Type$outboundSchema:
|
|
642
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData6Type> =
|
|
643
|
+
PartnerEnrolledEventFieldsDataReferralFormData6Type$inboundSchema;
|
|
644
|
+
|
|
645
|
+
/** @internal */
|
|
646
|
+
export const FieldsOptions$inboundSchema: z.ZodType<
|
|
647
|
+
FieldsOptions,
|
|
648
|
+
z.ZodTypeDef,
|
|
649
|
+
unknown
|
|
650
|
+
> = z.object({
|
|
651
|
+
label: z.string(),
|
|
652
|
+
value: z.string(),
|
|
653
|
+
});
|
|
654
|
+
/** @internal */
|
|
655
|
+
export type FieldsOptions$Outbound = {
|
|
656
|
+
label: string;
|
|
657
|
+
value: string;
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const FieldsOptions$outboundSchema: z.ZodType<
|
|
662
|
+
FieldsOptions$Outbound,
|
|
663
|
+
z.ZodTypeDef,
|
|
664
|
+
FieldsOptions
|
|
665
|
+
> = z.object({
|
|
666
|
+
label: z.string(),
|
|
667
|
+
value: z.string(),
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
export function fieldsOptionsToJSON(fieldsOptions: FieldsOptions): string {
|
|
671
|
+
return JSON.stringify(FieldsOptions$outboundSchema.parse(fieldsOptions));
|
|
672
|
+
}
|
|
673
|
+
export function fieldsOptionsFromJSON(
|
|
674
|
+
jsonString: string,
|
|
675
|
+
): SafeParseResult<FieldsOptions, SDKValidationError> {
|
|
676
|
+
return safeParse(
|
|
677
|
+
jsonString,
|
|
678
|
+
(x) => FieldsOptions$inboundSchema.parse(JSON.parse(x)),
|
|
679
|
+
`Failed to parse 'FieldsOptions' from JSON`,
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/** @internal */
|
|
684
|
+
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
685
|
+
.object({
|
|
686
|
+
key: z.string(),
|
|
687
|
+
label: z.string(),
|
|
688
|
+
required: z.boolean(),
|
|
689
|
+
locked: z.boolean(),
|
|
690
|
+
position: z.number().int(),
|
|
691
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData6Type$inboundSchema,
|
|
692
|
+
options: z.array(z.lazy(() => FieldsOptions$inboundSchema)),
|
|
693
|
+
});
|
|
694
|
+
/** @internal */
|
|
695
|
+
export type Six$Outbound = {
|
|
696
|
+
key: string;
|
|
697
|
+
label: string;
|
|
698
|
+
required: boolean;
|
|
699
|
+
locked: boolean;
|
|
700
|
+
position: number;
|
|
701
|
+
type: string;
|
|
702
|
+
options: Array<FieldsOptions$Outbound>;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
/** @internal */
|
|
706
|
+
export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
|
|
707
|
+
.object({
|
|
708
|
+
key: z.string(),
|
|
709
|
+
label: z.string(),
|
|
710
|
+
required: z.boolean(),
|
|
711
|
+
locked: z.boolean(),
|
|
712
|
+
position: z.number().int(),
|
|
713
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData6Type$outboundSchema,
|
|
714
|
+
options: z.array(z.lazy(() => FieldsOptions$outboundSchema)),
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
export function sixToJSON(six: Six): string {
|
|
718
|
+
return JSON.stringify(Six$outboundSchema.parse(six));
|
|
719
|
+
}
|
|
720
|
+
export function sixFromJSON(
|
|
721
|
+
jsonString: string,
|
|
722
|
+
): SafeParseResult<Six, SDKValidationError> {
|
|
723
|
+
return safeParse(
|
|
724
|
+
jsonString,
|
|
725
|
+
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
726
|
+
`Failed to parse 'Six' from JSON`,
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/** @internal */
|
|
731
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData5Type$inboundSchema:
|
|
732
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData5Type> =
|
|
733
|
+
z.nativeEnum(PartnerEnrolledEventFieldsDataReferralFormData5Type);
|
|
734
|
+
/** @internal */
|
|
735
|
+
export const PartnerEnrolledEventFieldsDataReferralFormData5Type$outboundSchema:
|
|
736
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormData5Type> =
|
|
737
|
+
PartnerEnrolledEventFieldsDataReferralFormData5Type$inboundSchema;
|
|
738
|
+
|
|
739
|
+
/** @internal */
|
|
740
|
+
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
741
|
+
.object({
|
|
742
|
+
key: z.string(),
|
|
743
|
+
label: z.string(),
|
|
744
|
+
required: z.boolean(),
|
|
745
|
+
locked: z.boolean(),
|
|
746
|
+
position: z.number().int(),
|
|
747
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData5Type$inboundSchema,
|
|
748
|
+
});
|
|
749
|
+
/** @internal */
|
|
750
|
+
export type Five$Outbound = {
|
|
751
|
+
key: string;
|
|
752
|
+
label: string;
|
|
753
|
+
required: boolean;
|
|
754
|
+
locked: boolean;
|
|
755
|
+
position: number;
|
|
756
|
+
type: string;
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
/** @internal */
|
|
760
|
+
export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
|
|
761
|
+
z.object({
|
|
762
|
+
key: z.string(),
|
|
763
|
+
label: z.string(),
|
|
764
|
+
required: z.boolean(),
|
|
765
|
+
locked: z.boolean(),
|
|
766
|
+
position: z.number().int(),
|
|
767
|
+
type: PartnerEnrolledEventFieldsDataReferralFormData5Type$outboundSchema,
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
export function fiveToJSON(five: Five): string {
|
|
771
|
+
return JSON.stringify(Five$outboundSchema.parse(five));
|
|
772
|
+
}
|
|
773
|
+
export function fiveFromJSON(
|
|
774
|
+
jsonString: string,
|
|
775
|
+
): SafeParseResult<Five, SDKValidationError> {
|
|
776
|
+
return safeParse(
|
|
777
|
+
jsonString,
|
|
778
|
+
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
779
|
+
`Failed to parse 'Five' from JSON`,
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/** @internal */
|
|
784
|
+
export const PartnerEnrolledEventFieldsDataReferralFormDataType$inboundSchema:
|
|
785
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormDataType> = z
|
|
786
|
+
.nativeEnum(PartnerEnrolledEventFieldsDataReferralFormDataType);
|
|
787
|
+
/** @internal */
|
|
788
|
+
export const PartnerEnrolledEventFieldsDataReferralFormDataType$outboundSchema:
|
|
789
|
+
z.ZodNativeEnum<typeof PartnerEnrolledEventFieldsDataReferralFormDataType> =
|
|
790
|
+
PartnerEnrolledEventFieldsDataReferralFormDataType$inboundSchema;
|
|
791
|
+
|
|
792
|
+
/** @internal */
|
|
793
|
+
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
794
|
+
.object({
|
|
795
|
+
key: z.string(),
|
|
796
|
+
label: z.string(),
|
|
797
|
+
required: z.boolean(),
|
|
798
|
+
locked: z.boolean(),
|
|
799
|
+
position: z.number().int(),
|
|
800
|
+
type: PartnerEnrolledEventFieldsDataReferralFormDataType$inboundSchema,
|
|
801
|
+
});
|
|
802
|
+
/** @internal */
|
|
803
|
+
export type Four$Outbound = {
|
|
804
|
+
key: string;
|
|
805
|
+
label: string;
|
|
806
|
+
required: boolean;
|
|
807
|
+
locked: boolean;
|
|
808
|
+
position: number;
|
|
809
|
+
type: string;
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
/** @internal */
|
|
813
|
+
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
814
|
+
z.object({
|
|
815
|
+
key: z.string(),
|
|
816
|
+
label: z.string(),
|
|
817
|
+
required: z.boolean(),
|
|
818
|
+
locked: z.boolean(),
|
|
819
|
+
position: z.number().int(),
|
|
820
|
+
type: PartnerEnrolledEventFieldsDataReferralFormDataType$outboundSchema,
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
export function fourToJSON(four: Four): string {
|
|
824
|
+
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
825
|
+
}
|
|
826
|
+
export function fourFromJSON(
|
|
827
|
+
jsonString: string,
|
|
828
|
+
): SafeParseResult<Four, SDKValidationError> {
|
|
829
|
+
return safeParse(
|
|
830
|
+
jsonString,
|
|
831
|
+
(x) => Four$inboundSchema.parse(JSON.parse(x)),
|
|
832
|
+
`Failed to parse 'Four' from JSON`,
|
|
833
|
+
);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** @internal */
|
|
837
|
+
export const PartnerEnrolledEventFieldsDataType$inboundSchema: z.ZodNativeEnum<
|
|
838
|
+
typeof PartnerEnrolledEventFieldsDataType
|
|
839
|
+
> = z.nativeEnum(PartnerEnrolledEventFieldsDataType);
|
|
840
|
+
/** @internal */
|
|
841
|
+
export const PartnerEnrolledEventFieldsDataType$outboundSchema: z.ZodNativeEnum<
|
|
842
|
+
typeof PartnerEnrolledEventFieldsDataType
|
|
843
|
+
> = PartnerEnrolledEventFieldsDataType$inboundSchema;
|
|
844
|
+
|
|
845
|
+
/** @internal */
|
|
846
|
+
export const Options$inboundSchema: z.ZodType<Options, z.ZodTypeDef, unknown> =
|
|
847
|
+
z.object({
|
|
848
|
+
label: z.string(),
|
|
849
|
+
value: z.string(),
|
|
850
|
+
});
|
|
851
|
+
/** @internal */
|
|
852
|
+
export type Options$Outbound = {
|
|
853
|
+
label: string;
|
|
854
|
+
value: string;
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
/** @internal */
|
|
858
|
+
export const Options$outboundSchema: z.ZodType<
|
|
859
|
+
Options$Outbound,
|
|
860
|
+
z.ZodTypeDef,
|
|
861
|
+
Options
|
|
862
|
+
> = z.object({
|
|
863
|
+
label: z.string(),
|
|
864
|
+
value: z.string(),
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
export function optionsToJSON(options: Options): string {
|
|
868
|
+
return JSON.stringify(Options$outboundSchema.parse(options));
|
|
869
|
+
}
|
|
870
|
+
export function optionsFromJSON(
|
|
871
|
+
jsonString: string,
|
|
872
|
+
): SafeParseResult<Options, SDKValidationError> {
|
|
873
|
+
return safeParse(
|
|
874
|
+
jsonString,
|
|
875
|
+
(x) => Options$inboundSchema.parse(JSON.parse(x)),
|
|
876
|
+
`Failed to parse 'Options' from JSON`,
|
|
877
|
+
);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const Fields3$inboundSchema: z.ZodType<Fields3, z.ZodTypeDef, unknown> =
|
|
882
|
+
z.object({
|
|
883
|
+
key: z.string(),
|
|
884
|
+
label: z.string(),
|
|
885
|
+
required: z.boolean(),
|
|
886
|
+
locked: z.boolean(),
|
|
887
|
+
position: z.number().int(),
|
|
888
|
+
type: PartnerEnrolledEventFieldsDataType$inboundSchema,
|
|
889
|
+
options: z.array(z.lazy(() => Options$inboundSchema)),
|
|
890
|
+
});
|
|
891
|
+
/** @internal */
|
|
892
|
+
export type Fields3$Outbound = {
|
|
893
|
+
key: string;
|
|
894
|
+
label: string;
|
|
895
|
+
required: boolean;
|
|
896
|
+
locked: boolean;
|
|
897
|
+
position: number;
|
|
898
|
+
type: string;
|
|
899
|
+
options: Array<Options$Outbound>;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
/** @internal */
|
|
903
|
+
export const Fields3$outboundSchema: z.ZodType<
|
|
904
|
+
Fields3$Outbound,
|
|
905
|
+
z.ZodTypeDef,
|
|
906
|
+
Fields3
|
|
907
|
+
> = z.object({
|
|
908
|
+
key: z.string(),
|
|
909
|
+
label: z.string(),
|
|
910
|
+
required: z.boolean(),
|
|
911
|
+
locked: z.boolean(),
|
|
912
|
+
position: z.number().int(),
|
|
913
|
+
type: PartnerEnrolledEventFieldsDataType$outboundSchema,
|
|
914
|
+
options: z.array(z.lazy(() => Options$outboundSchema)),
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
export function fields3ToJSON(fields3: Fields3): string {
|
|
918
|
+
return JSON.stringify(Fields3$outboundSchema.parse(fields3));
|
|
919
|
+
}
|
|
920
|
+
export function fields3FromJSON(
|
|
921
|
+
jsonString: string,
|
|
922
|
+
): SafeParseResult<Fields3, SDKValidationError> {
|
|
923
|
+
return safeParse(
|
|
924
|
+
jsonString,
|
|
925
|
+
(x) => Fields3$inboundSchema.parse(JSON.parse(x)),
|
|
926
|
+
`Failed to parse 'Fields3' from JSON`,
|
|
927
|
+
);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/** @internal */
|
|
931
|
+
export const PartnerEnrolledEventFieldsType$inboundSchema: z.ZodNativeEnum<
|
|
932
|
+
typeof PartnerEnrolledEventFieldsType
|
|
933
|
+
> = z.nativeEnum(PartnerEnrolledEventFieldsType);
|
|
934
|
+
/** @internal */
|
|
935
|
+
export const PartnerEnrolledEventFieldsType$outboundSchema: z.ZodNativeEnum<
|
|
936
|
+
typeof PartnerEnrolledEventFieldsType
|
|
937
|
+
> = PartnerEnrolledEventFieldsType$inboundSchema;
|
|
938
|
+
|
|
939
|
+
/** @internal */
|
|
940
|
+
export const FieldsConstraints$inboundSchema: z.ZodType<
|
|
941
|
+
FieldsConstraints,
|
|
942
|
+
z.ZodTypeDef,
|
|
943
|
+
unknown
|
|
944
|
+
> = z.object({
|
|
945
|
+
maxLength: z.number().int().optional(),
|
|
946
|
+
});
|
|
947
|
+
/** @internal */
|
|
948
|
+
export type FieldsConstraints$Outbound = {
|
|
949
|
+
maxLength?: number | undefined;
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const FieldsConstraints$outboundSchema: z.ZodType<
|
|
954
|
+
FieldsConstraints$Outbound,
|
|
955
|
+
z.ZodTypeDef,
|
|
956
|
+
FieldsConstraints
|
|
957
|
+
> = z.object({
|
|
958
|
+
maxLength: z.number().int().optional(),
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
export function fieldsConstraintsToJSON(
|
|
962
|
+
fieldsConstraints: FieldsConstraints,
|
|
963
|
+
): string {
|
|
964
|
+
return JSON.stringify(
|
|
965
|
+
FieldsConstraints$outboundSchema.parse(fieldsConstraints),
|
|
966
|
+
);
|
|
967
|
+
}
|
|
968
|
+
export function fieldsConstraintsFromJSON(
|
|
969
|
+
jsonString: string,
|
|
970
|
+
): SafeParseResult<FieldsConstraints, SDKValidationError> {
|
|
971
|
+
return safeParse(
|
|
972
|
+
jsonString,
|
|
973
|
+
(x) => FieldsConstraints$inboundSchema.parse(JSON.parse(x)),
|
|
974
|
+
`Failed to parse 'FieldsConstraints' from JSON`,
|
|
975
|
+
);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/** @internal */
|
|
979
|
+
export const Fields2$inboundSchema: z.ZodType<Fields2, z.ZodTypeDef, unknown> =
|
|
980
|
+
z.object({
|
|
981
|
+
key: z.string(),
|
|
982
|
+
label: z.string(),
|
|
983
|
+
required: z.boolean(),
|
|
984
|
+
locked: z.boolean(),
|
|
985
|
+
position: z.number().int(),
|
|
986
|
+
type: PartnerEnrolledEventFieldsType$inboundSchema,
|
|
987
|
+
constraints: z.lazy(() => FieldsConstraints$inboundSchema).optional(),
|
|
988
|
+
});
|
|
989
|
+
/** @internal */
|
|
990
|
+
export type Fields2$Outbound = {
|
|
991
|
+
key: string;
|
|
992
|
+
label: string;
|
|
993
|
+
required: boolean;
|
|
994
|
+
locked: boolean;
|
|
995
|
+
position: number;
|
|
996
|
+
type: string;
|
|
997
|
+
constraints?: FieldsConstraints$Outbound | undefined;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
/** @internal */
|
|
1001
|
+
export const Fields2$outboundSchema: z.ZodType<
|
|
1002
|
+
Fields2$Outbound,
|
|
1003
|
+
z.ZodTypeDef,
|
|
1004
|
+
Fields2
|
|
1005
|
+
> = z.object({
|
|
1006
|
+
key: z.string(),
|
|
1007
|
+
label: z.string(),
|
|
1008
|
+
required: z.boolean(),
|
|
1009
|
+
locked: z.boolean(),
|
|
1010
|
+
position: z.number().int(),
|
|
1011
|
+
type: PartnerEnrolledEventFieldsType$outboundSchema,
|
|
1012
|
+
constraints: z.lazy(() => FieldsConstraints$outboundSchema).optional(),
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
export function fields2ToJSON(fields2: Fields2): string {
|
|
1016
|
+
return JSON.stringify(Fields2$outboundSchema.parse(fields2));
|
|
1017
|
+
}
|
|
1018
|
+
export function fields2FromJSON(
|
|
1019
|
+
jsonString: string,
|
|
1020
|
+
): SafeParseResult<Fields2, SDKValidationError> {
|
|
1021
|
+
return safeParse(
|
|
1022
|
+
jsonString,
|
|
1023
|
+
(x) => Fields2$inboundSchema.parse(JSON.parse(x)),
|
|
1024
|
+
`Failed to parse 'Fields2' from JSON`,
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/** @internal */
|
|
1029
|
+
export const FieldsType$inboundSchema: z.ZodNativeEnum<typeof FieldsType> = z
|
|
1030
|
+
.nativeEnum(FieldsType);
|
|
1031
|
+
/** @internal */
|
|
1032
|
+
export const FieldsType$outboundSchema: z.ZodNativeEnum<typeof FieldsType> =
|
|
1033
|
+
FieldsType$inboundSchema;
|
|
1034
|
+
|
|
1035
|
+
/** @internal */
|
|
1036
|
+
export const Constraints$inboundSchema: z.ZodType<
|
|
1037
|
+
Constraints,
|
|
1038
|
+
z.ZodTypeDef,
|
|
1039
|
+
unknown
|
|
1040
|
+
> = z.object({
|
|
1041
|
+
maxLength: z.number().int().optional(),
|
|
1042
|
+
pattern: z.string().optional(),
|
|
1043
|
+
});
|
|
1044
|
+
/** @internal */
|
|
1045
|
+
export type Constraints$Outbound = {
|
|
1046
|
+
maxLength?: number | undefined;
|
|
1047
|
+
pattern?: string | undefined;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
/** @internal */
|
|
1051
|
+
export const Constraints$outboundSchema: z.ZodType<
|
|
1052
|
+
Constraints$Outbound,
|
|
1053
|
+
z.ZodTypeDef,
|
|
1054
|
+
Constraints
|
|
1055
|
+
> = z.object({
|
|
1056
|
+
maxLength: z.number().int().optional(),
|
|
1057
|
+
pattern: z.string().optional(),
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
export function constraintsToJSON(constraints: Constraints): string {
|
|
1061
|
+
return JSON.stringify(Constraints$outboundSchema.parse(constraints));
|
|
1062
|
+
}
|
|
1063
|
+
export function constraintsFromJSON(
|
|
1064
|
+
jsonString: string,
|
|
1065
|
+
): SafeParseResult<Constraints, SDKValidationError> {
|
|
1066
|
+
return safeParse(
|
|
1067
|
+
jsonString,
|
|
1068
|
+
(x) => Constraints$inboundSchema.parse(JSON.parse(x)),
|
|
1069
|
+
`Failed to parse 'Constraints' from JSON`,
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/** @internal */
|
|
1074
|
+
export const Fields1$inboundSchema: z.ZodType<Fields1, z.ZodTypeDef, unknown> =
|
|
1075
|
+
z.object({
|
|
1076
|
+
key: z.string(),
|
|
1077
|
+
label: z.string(),
|
|
1078
|
+
required: z.boolean(),
|
|
1079
|
+
locked: z.boolean(),
|
|
1080
|
+
position: z.number().int(),
|
|
1081
|
+
type: FieldsType$inboundSchema,
|
|
1082
|
+
constraints: z.lazy(() => Constraints$inboundSchema).optional(),
|
|
1083
|
+
});
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export type Fields1$Outbound = {
|
|
1086
|
+
key: string;
|
|
1087
|
+
label: string;
|
|
1088
|
+
required: boolean;
|
|
1089
|
+
locked: boolean;
|
|
1090
|
+
position: number;
|
|
1091
|
+
type: string;
|
|
1092
|
+
constraints?: Constraints$Outbound | undefined;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
/** @internal */
|
|
1096
|
+
export const Fields1$outboundSchema: z.ZodType<
|
|
1097
|
+
Fields1$Outbound,
|
|
1098
|
+
z.ZodTypeDef,
|
|
1099
|
+
Fields1
|
|
1100
|
+
> = z.object({
|
|
1101
|
+
key: z.string(),
|
|
1102
|
+
label: z.string(),
|
|
1103
|
+
required: z.boolean(),
|
|
1104
|
+
locked: z.boolean(),
|
|
1105
|
+
position: z.number().int(),
|
|
1106
|
+
type: FieldsType$outboundSchema,
|
|
1107
|
+
constraints: z.lazy(() => Constraints$outboundSchema).optional(),
|
|
1108
|
+
});
|
|
1109
|
+
|
|
1110
|
+
export function fields1ToJSON(fields1: Fields1): string {
|
|
1111
|
+
return JSON.stringify(Fields1$outboundSchema.parse(fields1));
|
|
1112
|
+
}
|
|
1113
|
+
export function fields1FromJSON(
|
|
1114
|
+
jsonString: string,
|
|
1115
|
+
): SafeParseResult<Fields1, SDKValidationError> {
|
|
1116
|
+
return safeParse(
|
|
1117
|
+
jsonString,
|
|
1118
|
+
(x) => Fields1$inboundSchema.parse(JSON.parse(x)),
|
|
1119
|
+
`Failed to parse 'Fields1' from JSON`,
|
|
1120
|
+
);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/** @internal */
|
|
1124
|
+
export const Fields$inboundSchema: z.ZodType<Fields, z.ZodTypeDef, unknown> = z
|
|
1125
|
+
.union([
|
|
1126
|
+
z.lazy(() => Fields1$inboundSchema).and(
|
|
1127
|
+
z.object({ type: z.literal("text") }),
|
|
1128
|
+
),
|
|
1129
|
+
z.lazy(() => Fields2$inboundSchema).and(
|
|
1130
|
+
z.object({ type: z.literal("textarea") }),
|
|
1131
|
+
),
|
|
1132
|
+
z.lazy(() => Fields3$inboundSchema).and(
|
|
1133
|
+
z.object({ type: z.literal("select") }),
|
|
1134
|
+
),
|
|
1135
|
+
z.lazy(() => Four$inboundSchema).and(
|
|
1136
|
+
z.object({ type: z.literal("country") }),
|
|
1137
|
+
),
|
|
1138
|
+
z.lazy(() => Five$inboundSchema).and(z.object({ type: z.literal("date") })),
|
|
1139
|
+
z.lazy(() => Six$inboundSchema).and(
|
|
1140
|
+
z.object({ type: z.literal("multiSelect") }),
|
|
1141
|
+
),
|
|
1142
|
+
z.lazy(() => Seven$inboundSchema).and(
|
|
1143
|
+
z.object({ type: z.literal("number") }),
|
|
1144
|
+
),
|
|
1145
|
+
z.lazy(() => Eight$inboundSchema).and(
|
|
1146
|
+
z.object({ type: z.literal("phone") }),
|
|
1147
|
+
),
|
|
1148
|
+
]);
|
|
1149
|
+
/** @internal */
|
|
1150
|
+
export type Fields$Outbound =
|
|
1151
|
+
| (Fields1$Outbound & { type: "text" })
|
|
1152
|
+
| (Fields2$Outbound & { type: "textarea" })
|
|
1153
|
+
| (Fields3$Outbound & { type: "select" })
|
|
1154
|
+
| (Four$Outbound & { type: "country" })
|
|
1155
|
+
| (Five$Outbound & { type: "date" })
|
|
1156
|
+
| (Six$Outbound & { type: "multiSelect" })
|
|
1157
|
+
| (Seven$Outbound & { type: "number" })
|
|
1158
|
+
| (Eight$Outbound & { type: "phone" });
|
|
1159
|
+
|
|
1160
|
+
/** @internal */
|
|
1161
|
+
export const Fields$outboundSchema: z.ZodType<
|
|
1162
|
+
Fields$Outbound,
|
|
1163
|
+
z.ZodTypeDef,
|
|
1164
|
+
Fields
|
|
1165
|
+
> = z.union([
|
|
1166
|
+
z.lazy(() => Fields1$outboundSchema).and(
|
|
1167
|
+
z.object({ type: z.literal("text") }),
|
|
1168
|
+
),
|
|
1169
|
+
z.lazy(() => Fields2$outboundSchema).and(
|
|
1170
|
+
z.object({ type: z.literal("textarea") }),
|
|
1171
|
+
),
|
|
1172
|
+
z.lazy(() => Fields3$outboundSchema).and(
|
|
1173
|
+
z.object({ type: z.literal("select") }),
|
|
1174
|
+
),
|
|
1175
|
+
z.lazy(() => Four$outboundSchema).and(
|
|
1176
|
+
z.object({ type: z.literal("country") }),
|
|
1177
|
+
),
|
|
1178
|
+
z.lazy(() => Five$outboundSchema).and(z.object({ type: z.literal("date") })),
|
|
1179
|
+
z.lazy(() => Six$outboundSchema).and(
|
|
1180
|
+
z.object({ type: z.literal("multiSelect") }),
|
|
1181
|
+
),
|
|
1182
|
+
z.lazy(() => Seven$outboundSchema).and(
|
|
1183
|
+
z.object({ type: z.literal("number") }),
|
|
1184
|
+
),
|
|
1185
|
+
z.lazy(() => Eight$outboundSchema).and(
|
|
1186
|
+
z.object({ type: z.literal("phone") }),
|
|
1187
|
+
),
|
|
1188
|
+
]);
|
|
1189
|
+
|
|
1190
|
+
export function fieldsToJSON(fields: Fields): string {
|
|
1191
|
+
return JSON.stringify(Fields$outboundSchema.parse(fields));
|
|
1192
|
+
}
|
|
1193
|
+
export function fieldsFromJSON(
|
|
1194
|
+
jsonString: string,
|
|
1195
|
+
): SafeParseResult<Fields, SDKValidationError> {
|
|
1196
|
+
return safeParse(
|
|
1197
|
+
jsonString,
|
|
1198
|
+
(x) => Fields$inboundSchema.parse(JSON.parse(x)),
|
|
1199
|
+
`Failed to parse 'Fields' from JSON`,
|
|
1200
|
+
);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/** @internal */
|
|
1204
|
+
export const ReferralFormData$inboundSchema: z.ZodType<
|
|
1205
|
+
ReferralFormData,
|
|
1206
|
+
z.ZodTypeDef,
|
|
1207
|
+
unknown
|
|
1208
|
+
> = z.object({
|
|
1209
|
+
fields: z.array(
|
|
1210
|
+
z.union([
|
|
1211
|
+
z.lazy(() => Fields1$inboundSchema).and(
|
|
1212
|
+
z.object({ type: z.literal("text") }),
|
|
1213
|
+
),
|
|
1214
|
+
z.lazy(() => Fields2$inboundSchema).and(
|
|
1215
|
+
z.object({ type: z.literal("textarea") }),
|
|
1216
|
+
),
|
|
1217
|
+
z.lazy(() => Fields3$inboundSchema).and(
|
|
1218
|
+
z.object({ type: z.literal("select") }),
|
|
1219
|
+
),
|
|
1220
|
+
z.lazy(() => Four$inboundSchema).and(
|
|
1221
|
+
z.object({ type: z.literal("country") }),
|
|
1222
|
+
),
|
|
1223
|
+
z.lazy(() => Five$inboundSchema).and(
|
|
1224
|
+
z.object({ type: z.literal("date") }),
|
|
1225
|
+
),
|
|
1226
|
+
z.lazy(() => Six$inboundSchema).and(
|
|
1227
|
+
z.object({ type: z.literal("multiSelect") }),
|
|
1228
|
+
),
|
|
1229
|
+
z.lazy(() => Seven$inboundSchema).and(
|
|
1230
|
+
z.object({ type: z.literal("number") }),
|
|
1231
|
+
),
|
|
1232
|
+
z.lazy(() => Eight$inboundSchema).and(
|
|
1233
|
+
z.object({ type: z.literal("phone") }),
|
|
1234
|
+
),
|
|
1235
|
+
]),
|
|
1236
|
+
),
|
|
1237
|
+
});
|
|
1238
|
+
/** @internal */
|
|
1239
|
+
export type ReferralFormData$Outbound = {
|
|
1240
|
+
fields: Array<
|
|
1241
|
+
| (Fields1$Outbound & { type: "text" })
|
|
1242
|
+
| (Fields2$Outbound & { type: "textarea" })
|
|
1243
|
+
| (Fields3$Outbound & { type: "select" })
|
|
1244
|
+
| (Four$Outbound & { type: "country" })
|
|
1245
|
+
| (Five$Outbound & { type: "date" })
|
|
1246
|
+
| (Six$Outbound & { type: "multiSelect" })
|
|
1247
|
+
| (Seven$Outbound & { type: "number" })
|
|
1248
|
+
| (Eight$Outbound & { type: "phone" })
|
|
1249
|
+
>;
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
/** @internal */
|
|
1253
|
+
export const ReferralFormData$outboundSchema: z.ZodType<
|
|
1254
|
+
ReferralFormData$Outbound,
|
|
1255
|
+
z.ZodTypeDef,
|
|
1256
|
+
ReferralFormData
|
|
1257
|
+
> = z.object({
|
|
1258
|
+
fields: z.array(
|
|
1259
|
+
z.union([
|
|
1260
|
+
z.lazy(() => Fields1$outboundSchema).and(
|
|
1261
|
+
z.object({ type: z.literal("text") }),
|
|
1262
|
+
),
|
|
1263
|
+
z.lazy(() => Fields2$outboundSchema).and(
|
|
1264
|
+
z.object({ type: z.literal("textarea") }),
|
|
1265
|
+
),
|
|
1266
|
+
z.lazy(() => Fields3$outboundSchema).and(
|
|
1267
|
+
z.object({ type: z.literal("select") }),
|
|
1268
|
+
),
|
|
1269
|
+
z.lazy(() => Four$outboundSchema).and(
|
|
1270
|
+
z.object({ type: z.literal("country") }),
|
|
1271
|
+
),
|
|
1272
|
+
z.lazy(() => Five$outboundSchema).and(
|
|
1273
|
+
z.object({ type: z.literal("date") }),
|
|
1274
|
+
),
|
|
1275
|
+
z.lazy(() => Six$outboundSchema).and(
|
|
1276
|
+
z.object({ type: z.literal("multiSelect") }),
|
|
1277
|
+
),
|
|
1278
|
+
z.lazy(() => Seven$outboundSchema).and(
|
|
1279
|
+
z.object({ type: z.literal("number") }),
|
|
1280
|
+
),
|
|
1281
|
+
z.lazy(() => Eight$outboundSchema).and(
|
|
1282
|
+
z.object({ type: z.literal("phone") }),
|
|
1283
|
+
),
|
|
1284
|
+
]),
|
|
1285
|
+
),
|
|
1286
|
+
});
|
|
1287
|
+
|
|
1288
|
+
export function referralFormDataToJSON(
|
|
1289
|
+
referralFormData: ReferralFormData,
|
|
1290
|
+
): string {
|
|
1291
|
+
return JSON.stringify(
|
|
1292
|
+
ReferralFormData$outboundSchema.parse(referralFormData),
|
|
1293
|
+
);
|
|
1294
|
+
}
|
|
1295
|
+
export function referralFormDataFromJSON(
|
|
1296
|
+
jsonString: string,
|
|
1297
|
+
): SafeParseResult<ReferralFormData, SDKValidationError> {
|
|
1298
|
+
return safeParse(
|
|
1299
|
+
jsonString,
|
|
1300
|
+
(x) => ReferralFormData$inboundSchema.parse(JSON.parse(x)),
|
|
1301
|
+
`Failed to parse 'ReferralFormData' from JSON`,
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
351
1305
|
/** @internal */
|
|
352
1306
|
export const PartnerEnrolledEventData$inboundSchema: z.ZodType<
|
|
353
1307
|
PartnerEnrolledEventData,
|
|
@@ -380,6 +1334,8 @@ export const PartnerEnrolledEventData$inboundSchema: z.ZodType<
|
|
|
380
1334
|
applicationId: z.nullable(z.string()).optional(),
|
|
381
1335
|
bannedAt: z.nullable(z.string()).optional(),
|
|
382
1336
|
bannedReason: z.nullable(BannedReason$inboundSchema).optional(),
|
|
1337
|
+
referralFormData: z.nullable(z.lazy(() => ReferralFormData$inboundSchema))
|
|
1338
|
+
.optional(),
|
|
383
1339
|
totalClicks: z.number().default(0),
|
|
384
1340
|
totalLeads: z.number().default(0),
|
|
385
1341
|
totalConversions: z.number().default(0),
|
|
@@ -427,6 +1383,7 @@ export type PartnerEnrolledEventData$Outbound = {
|
|
|
427
1383
|
applicationId?: string | null | undefined;
|
|
428
1384
|
bannedAt?: string | null | undefined;
|
|
429
1385
|
bannedReason?: string | null | undefined;
|
|
1386
|
+
referralFormData?: ReferralFormData$Outbound | null | undefined;
|
|
430
1387
|
totalClicks: number;
|
|
431
1388
|
totalLeads: number;
|
|
432
1389
|
totalConversions: number;
|
|
@@ -479,6 +1436,8 @@ export const PartnerEnrolledEventData$outboundSchema: z.ZodType<
|
|
|
479
1436
|
applicationId: z.nullable(z.string()).optional(),
|
|
480
1437
|
bannedAt: z.nullable(z.string()).optional(),
|
|
481
1438
|
bannedReason: z.nullable(BannedReason$outboundSchema).optional(),
|
|
1439
|
+
referralFormData: z.nullable(z.lazy(() => ReferralFormData$outboundSchema))
|
|
1440
|
+
.optional(),
|
|
482
1441
|
totalClicks: z.number().default(0),
|
|
483
1442
|
totalLeads: z.number().default(0),
|
|
484
1443
|
totalConversions: z.number().default(0),
|