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
|
@@ -0,0 +1,287 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The status of the submissions to list.
|
|
13
|
+
*/
|
|
14
|
+
export const ListBountySubmissionsQueryParamStatus = {
|
|
15
|
+
Draft: "draft",
|
|
16
|
+
Submitted: "submitted",
|
|
17
|
+
Approved: "approved",
|
|
18
|
+
Rejected: "rejected",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* The status of the submissions to list.
|
|
22
|
+
*/
|
|
23
|
+
export type ListBountySubmissionsQueryParamStatus = ClosedEnum<
|
|
24
|
+
typeof ListBountySubmissionsQueryParamStatus
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The field to sort the submissions by.
|
|
29
|
+
*/
|
|
30
|
+
export const ListBountySubmissionsQueryParamSortBy = {
|
|
31
|
+
CompletedAt: "completedAt",
|
|
32
|
+
PerformanceCount: "performanceCount",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* The field to sort the submissions by.
|
|
36
|
+
*/
|
|
37
|
+
export type ListBountySubmissionsQueryParamSortBy = ClosedEnum<
|
|
38
|
+
typeof ListBountySubmissionsQueryParamSortBy
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The order to sort the submissions by.
|
|
43
|
+
*/
|
|
44
|
+
export const ListBountySubmissionsQueryParamSortOrder = {
|
|
45
|
+
Asc: "asc",
|
|
46
|
+
Desc: "desc",
|
|
47
|
+
} as const;
|
|
48
|
+
/**
|
|
49
|
+
* The order to sort the submissions by.
|
|
50
|
+
*/
|
|
51
|
+
export type ListBountySubmissionsQueryParamSortOrder = ClosedEnum<
|
|
52
|
+
typeof ListBountySubmissionsQueryParamSortOrder
|
|
53
|
+
>;
|
|
54
|
+
|
|
55
|
+
export type ListBountySubmissionsRequest = {
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the bounty
|
|
58
|
+
*/
|
|
59
|
+
bountyId: string;
|
|
60
|
+
/**
|
|
61
|
+
* The status of the submissions to list.
|
|
62
|
+
*/
|
|
63
|
+
status?: ListBountySubmissionsQueryParamStatus | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The ID of the group to list submissions for.
|
|
66
|
+
*/
|
|
67
|
+
groupId?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the partner to list submissions for.
|
|
70
|
+
*/
|
|
71
|
+
partnerId?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The field to sort the submissions by.
|
|
74
|
+
*/
|
|
75
|
+
sortBy?: ListBountySubmissionsQueryParamSortBy | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* The order to sort the submissions by.
|
|
78
|
+
*/
|
|
79
|
+
sortOrder?: ListBountySubmissionsQueryParamSortOrder | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The page number for pagination.
|
|
82
|
+
*/
|
|
83
|
+
page?: number | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* The number of items per page.
|
|
86
|
+
*/
|
|
87
|
+
pageSize?: number | undefined;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type Files = {
|
|
91
|
+
/**
|
|
92
|
+
* The URL of the uploaded file.
|
|
93
|
+
*/
|
|
94
|
+
url: string;
|
|
95
|
+
/**
|
|
96
|
+
* The original file name.
|
|
97
|
+
*/
|
|
98
|
+
fileName: string;
|
|
99
|
+
/**
|
|
100
|
+
* The file size in bytes.
|
|
101
|
+
*/
|
|
102
|
+
size: number;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The status of the submission
|
|
107
|
+
*/
|
|
108
|
+
export const ListBountySubmissionsStatus = {
|
|
109
|
+
Draft: "draft",
|
|
110
|
+
Submitted: "submitted",
|
|
111
|
+
Approved: "approved",
|
|
112
|
+
Rejected: "rejected",
|
|
113
|
+
} as const;
|
|
114
|
+
/**
|
|
115
|
+
* The status of the submission
|
|
116
|
+
*/
|
|
117
|
+
export type ListBountySubmissionsStatus = ClosedEnum<
|
|
118
|
+
typeof ListBountySubmissionsStatus
|
|
119
|
+
>;
|
|
120
|
+
|
|
121
|
+
export type ListBountySubmissionsResponseBody = {
|
|
122
|
+
/**
|
|
123
|
+
* The ID of the bounty submission
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* The ID of the bounty
|
|
128
|
+
*/
|
|
129
|
+
bountyId: string;
|
|
130
|
+
/**
|
|
131
|
+
* The ID of the partner
|
|
132
|
+
*/
|
|
133
|
+
partnerId: string;
|
|
134
|
+
/**
|
|
135
|
+
* The description of the submission
|
|
136
|
+
*/
|
|
137
|
+
description: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* The URLs submitted for the submission
|
|
140
|
+
*/
|
|
141
|
+
urls: Array<string> | null;
|
|
142
|
+
/**
|
|
143
|
+
* The files uploaded for the submission
|
|
144
|
+
*/
|
|
145
|
+
files: Array<Files> | null;
|
|
146
|
+
/**
|
|
147
|
+
* The status of the submission
|
|
148
|
+
*/
|
|
149
|
+
status: ListBountySubmissionsStatus;
|
|
150
|
+
/**
|
|
151
|
+
* The performance count of the submission
|
|
152
|
+
*/
|
|
153
|
+
performanceCount: number | null;
|
|
154
|
+
/**
|
|
155
|
+
* The date and time the submission was created
|
|
156
|
+
*/
|
|
157
|
+
createdAt: string;
|
|
158
|
+
/**
|
|
159
|
+
* The date and time the submission was completed
|
|
160
|
+
*/
|
|
161
|
+
completedAt: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* The date and time the submission was reviewed
|
|
164
|
+
*/
|
|
165
|
+
reviewedAt: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* The reason for rejecting the submission
|
|
168
|
+
*/
|
|
169
|
+
rejectionReason: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* The note for rejecting the submission
|
|
172
|
+
*/
|
|
173
|
+
rejectionNote: string | null;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const ListBountySubmissionsQueryParamStatus$outboundSchema:
|
|
178
|
+
z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamStatus> = z.nativeEnum(
|
|
179
|
+
ListBountySubmissionsQueryParamStatus,
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const ListBountySubmissionsQueryParamSortBy$outboundSchema:
|
|
184
|
+
z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamSortBy> = z.nativeEnum(
|
|
185
|
+
ListBountySubmissionsQueryParamSortBy,
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export const ListBountySubmissionsQueryParamSortOrder$outboundSchema:
|
|
190
|
+
z.ZodNativeEnum<typeof ListBountySubmissionsQueryParamSortOrder> = z
|
|
191
|
+
.nativeEnum(ListBountySubmissionsQueryParamSortOrder);
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export type ListBountySubmissionsRequest$Outbound = {
|
|
195
|
+
bountyId: string;
|
|
196
|
+
status?: string | undefined;
|
|
197
|
+
groupId?: string | undefined;
|
|
198
|
+
partnerId?: string | undefined;
|
|
199
|
+
sortBy: string;
|
|
200
|
+
sortOrder: string;
|
|
201
|
+
page: number;
|
|
202
|
+
pageSize: number;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export const ListBountySubmissionsRequest$outboundSchema: z.ZodType<
|
|
207
|
+
ListBountySubmissionsRequest$Outbound,
|
|
208
|
+
z.ZodTypeDef,
|
|
209
|
+
ListBountySubmissionsRequest
|
|
210
|
+
> = z.object({
|
|
211
|
+
bountyId: z.string(),
|
|
212
|
+
status: ListBountySubmissionsQueryParamStatus$outboundSchema.optional(),
|
|
213
|
+
groupId: z.string().optional(),
|
|
214
|
+
partnerId: z.string().optional(),
|
|
215
|
+
sortBy: ListBountySubmissionsQueryParamSortBy$outboundSchema.default(
|
|
216
|
+
"completedAt",
|
|
217
|
+
),
|
|
218
|
+
sortOrder: ListBountySubmissionsQueryParamSortOrder$outboundSchema.default(
|
|
219
|
+
"asc",
|
|
220
|
+
),
|
|
221
|
+
page: z.number().default(1),
|
|
222
|
+
pageSize: z.number().default(100),
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
export function listBountySubmissionsRequestToJSON(
|
|
226
|
+
listBountySubmissionsRequest: ListBountySubmissionsRequest,
|
|
227
|
+
): string {
|
|
228
|
+
return JSON.stringify(
|
|
229
|
+
ListBountySubmissionsRequest$outboundSchema.parse(
|
|
230
|
+
listBountySubmissionsRequest,
|
|
231
|
+
),
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const Files$inboundSchema: z.ZodType<Files, z.ZodTypeDef, unknown> = z
|
|
237
|
+
.object({
|
|
238
|
+
url: z.string(),
|
|
239
|
+
fileName: z.string(),
|
|
240
|
+
size: z.number(),
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
export function filesFromJSON(
|
|
244
|
+
jsonString: string,
|
|
245
|
+
): SafeParseResult<Files, SDKValidationError> {
|
|
246
|
+
return safeParse(
|
|
247
|
+
jsonString,
|
|
248
|
+
(x) => Files$inboundSchema.parse(JSON.parse(x)),
|
|
249
|
+
`Failed to parse 'Files' from JSON`,
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const ListBountySubmissionsStatus$inboundSchema: z.ZodNativeEnum<
|
|
255
|
+
typeof ListBountySubmissionsStatus
|
|
256
|
+
> = z.nativeEnum(ListBountySubmissionsStatus);
|
|
257
|
+
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const ListBountySubmissionsResponseBody$inboundSchema: z.ZodType<
|
|
260
|
+
ListBountySubmissionsResponseBody,
|
|
261
|
+
z.ZodTypeDef,
|
|
262
|
+
unknown
|
|
263
|
+
> = z.object({
|
|
264
|
+
id: z.string(),
|
|
265
|
+
bountyId: z.string(),
|
|
266
|
+
partnerId: z.string(),
|
|
267
|
+
description: z.nullable(z.string()),
|
|
268
|
+
urls: z.nullable(z.array(z.string())),
|
|
269
|
+
files: z.nullable(z.array(z.lazy(() => Files$inboundSchema))),
|
|
270
|
+
status: ListBountySubmissionsStatus$inboundSchema,
|
|
271
|
+
performanceCount: z.nullable(z.number()),
|
|
272
|
+
createdAt: z.string(),
|
|
273
|
+
completedAt: z.nullable(z.string()),
|
|
274
|
+
reviewedAt: z.nullable(z.string()),
|
|
275
|
+
rejectionReason: z.nullable(z.string()),
|
|
276
|
+
rejectionNote: z.nullable(z.string()),
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
export function listBountySubmissionsResponseBodyFromJSON(
|
|
280
|
+
jsonString: string,
|
|
281
|
+
): SafeParseResult<ListBountySubmissionsResponseBody, SDKValidationError> {
|
|
282
|
+
return safeParse(
|
|
283
|
+
jsonString,
|
|
284
|
+
(x) => ListBountySubmissionsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
+
`Failed to parse 'ListBountySubmissionsResponseBody' from JSON`,
|
|
286
|
+
);
|
|
287
|
+
}
|
|
@@ -198,10 +198,6 @@ export type ListCommissionsCustomer = {
|
|
|
198
198
|
* 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`).
|
|
199
199
|
*/
|
|
200
200
|
id: string;
|
|
201
|
-
/**
|
|
202
|
-
* Unique identifier for the customer in the client's app.
|
|
203
|
-
*/
|
|
204
|
-
externalId: string;
|
|
205
201
|
/**
|
|
206
202
|
* Name of the customer.
|
|
207
203
|
*/
|
|
@@ -214,6 +210,14 @@ export type ListCommissionsCustomer = {
|
|
|
214
210
|
* Avatar URL of the customer.
|
|
215
211
|
*/
|
|
216
212
|
avatar?: string | null | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Unique identifier for the customer in the client's app.
|
|
215
|
+
*/
|
|
216
|
+
externalId: string;
|
|
217
|
+
/**
|
|
218
|
+
* The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
|
|
219
|
+
*/
|
|
220
|
+
stripeCustomerId?: string | null | undefined;
|
|
217
221
|
/**
|
|
218
222
|
* Country of the customer.
|
|
219
223
|
*/
|
|
@@ -227,9 +231,17 @@ export type ListCommissionsCustomer = {
|
|
|
227
231
|
*/
|
|
228
232
|
saleAmount?: number | null | undefined;
|
|
229
233
|
/**
|
|
230
|
-
* The date the customer was created.
|
|
234
|
+
* The date the customer was created (usually the signup date or trial start date).
|
|
231
235
|
*/
|
|
232
236
|
createdAt: string;
|
|
237
|
+
/**
|
|
238
|
+
* The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
|
|
239
|
+
*/
|
|
240
|
+
firstSaleAt?: string | null | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
|
|
243
|
+
*/
|
|
244
|
+
subscriptionCanceledAt?: string | null | undefined;
|
|
233
245
|
};
|
|
234
246
|
|
|
235
247
|
export type ListCommissionsResponseBody = {
|
|
@@ -374,14 +386,17 @@ export const ListCommissionsCustomer$inboundSchema: z.ZodType<
|
|
|
374
386
|
unknown
|
|
375
387
|
> = z.object({
|
|
376
388
|
id: z.string(),
|
|
377
|
-
externalId: z.string(),
|
|
378
389
|
name: z.string(),
|
|
379
390
|
email: z.nullable(z.string()).optional(),
|
|
380
391
|
avatar: z.nullable(z.string()).optional(),
|
|
392
|
+
externalId: z.string(),
|
|
393
|
+
stripeCustomerId: z.nullable(z.string()).optional(),
|
|
381
394
|
country: z.nullable(z.string()).optional(),
|
|
382
395
|
sales: z.nullable(z.number()).optional(),
|
|
383
396
|
saleAmount: z.nullable(z.number()).optional(),
|
|
384
397
|
createdAt: z.string(),
|
|
398
|
+
firstSaleAt: z.nullable(z.string()).optional(),
|
|
399
|
+
subscriptionCanceledAt: z.nullable(z.string()).optional(),
|
|
385
400
|
});
|
|
386
401
|
|
|
387
402
|
export function listCommissionsCustomerFromJSON(
|
|
@@ -525,10 +525,6 @@ export type ResponseBodyCustomer = {
|
|
|
525
525
|
* 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`).
|
|
526
526
|
*/
|
|
527
527
|
id: string;
|
|
528
|
-
/**
|
|
529
|
-
* Unique identifier for the customer in the client's app.
|
|
530
|
-
*/
|
|
531
|
-
externalId: string;
|
|
532
528
|
/**
|
|
533
529
|
* Name of the customer.
|
|
534
530
|
*/
|
|
@@ -541,6 +537,14 @@ export type ResponseBodyCustomer = {
|
|
|
541
537
|
* Avatar URL of the customer.
|
|
542
538
|
*/
|
|
543
539
|
avatar?: string | null | undefined;
|
|
540
|
+
/**
|
|
541
|
+
* Unique identifier for the customer in the client's app.
|
|
542
|
+
*/
|
|
543
|
+
externalId: string;
|
|
544
|
+
/**
|
|
545
|
+
* The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
|
|
546
|
+
*/
|
|
547
|
+
stripeCustomerId?: string | null | undefined;
|
|
544
548
|
/**
|
|
545
549
|
* Country of the customer.
|
|
546
550
|
*/
|
|
@@ -554,9 +558,17 @@ export type ResponseBodyCustomer = {
|
|
|
554
558
|
*/
|
|
555
559
|
saleAmount?: number | null | undefined;
|
|
556
560
|
/**
|
|
557
|
-
* The date the customer was created.
|
|
561
|
+
* The date the customer was created (usually the signup date or trial start date).
|
|
558
562
|
*/
|
|
559
563
|
createdAt: string;
|
|
564
|
+
/**
|
|
565
|
+
* The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
|
|
566
|
+
*/
|
|
567
|
+
firstSaleAt?: string | null | undefined;
|
|
568
|
+
/**
|
|
569
|
+
* The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
|
|
570
|
+
*/
|
|
571
|
+
subscriptionCanceledAt?: string | null | undefined;
|
|
560
572
|
};
|
|
561
573
|
|
|
562
574
|
export type SaleEvent = {
|
|
@@ -858,10 +870,6 @@ export type ListEventsResponseBodyCustomer = {
|
|
|
858
870
|
* 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`).
|
|
859
871
|
*/
|
|
860
872
|
id: string;
|
|
861
|
-
/**
|
|
862
|
-
* Unique identifier for the customer in the client's app.
|
|
863
|
-
*/
|
|
864
|
-
externalId: string;
|
|
865
873
|
/**
|
|
866
874
|
* Name of the customer.
|
|
867
875
|
*/
|
|
@@ -874,6 +882,14 @@ export type ListEventsResponseBodyCustomer = {
|
|
|
874
882
|
* Avatar URL of the customer.
|
|
875
883
|
*/
|
|
876
884
|
avatar?: string | null | undefined;
|
|
885
|
+
/**
|
|
886
|
+
* Unique identifier for the customer in the client's app.
|
|
887
|
+
*/
|
|
888
|
+
externalId: string;
|
|
889
|
+
/**
|
|
890
|
+
* The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
|
|
891
|
+
*/
|
|
892
|
+
stripeCustomerId?: string | null | undefined;
|
|
877
893
|
/**
|
|
878
894
|
* Country of the customer.
|
|
879
895
|
*/
|
|
@@ -887,9 +903,17 @@ export type ListEventsResponseBodyCustomer = {
|
|
|
887
903
|
*/
|
|
888
904
|
saleAmount?: number | null | undefined;
|
|
889
905
|
/**
|
|
890
|
-
* The date the customer was created.
|
|
906
|
+
* The date the customer was created (usually the signup date or trial start date).
|
|
891
907
|
*/
|
|
892
908
|
createdAt: string;
|
|
909
|
+
/**
|
|
910
|
+
* The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
|
|
911
|
+
*/
|
|
912
|
+
firstSaleAt?: string | null | undefined;
|
|
913
|
+
/**
|
|
914
|
+
* The date the customer canceled their subscription. Useful for calculating LTV and churn rate.
|
|
915
|
+
*/
|
|
916
|
+
subscriptionCanceledAt?: string | null | undefined;
|
|
893
917
|
};
|
|
894
918
|
|
|
895
919
|
export type LeadEvent = {
|
|
@@ -1601,14 +1625,17 @@ export const ResponseBodyCustomer$inboundSchema: z.ZodType<
|
|
|
1601
1625
|
unknown
|
|
1602
1626
|
> = z.object({
|
|
1603
1627
|
id: z.string(),
|
|
1604
|
-
externalId: z.string(),
|
|
1605
1628
|
name: z.string(),
|
|
1606
1629
|
email: z.nullable(z.string()).optional(),
|
|
1607
1630
|
avatar: z.nullable(z.string()).optional(),
|
|
1631
|
+
externalId: z.string(),
|
|
1632
|
+
stripeCustomerId: z.nullable(z.string()).optional(),
|
|
1608
1633
|
country: z.nullable(z.string()).optional(),
|
|
1609
1634
|
sales: z.nullable(z.number()).optional(),
|
|
1610
1635
|
saleAmount: z.nullable(z.number()).optional(),
|
|
1611
1636
|
createdAt: z.string(),
|
|
1637
|
+
firstSaleAt: z.nullable(z.string()).optional(),
|
|
1638
|
+
subscriptionCanceledAt: z.nullable(z.string()).optional(),
|
|
1612
1639
|
});
|
|
1613
1640
|
|
|
1614
1641
|
export function responseBodyCustomerFromJSON(
|
|
@@ -1811,14 +1838,17 @@ export const ListEventsResponseBodyCustomer$inboundSchema: z.ZodType<
|
|
|
1811
1838
|
unknown
|
|
1812
1839
|
> = z.object({
|
|
1813
1840
|
id: z.string(),
|
|
1814
|
-
externalId: z.string(),
|
|
1815
1841
|
name: z.string(),
|
|
1816
1842
|
email: z.nullable(z.string()).optional(),
|
|
1817
1843
|
avatar: z.nullable(z.string()).optional(),
|
|
1844
|
+
externalId: z.string(),
|
|
1845
|
+
stripeCustomerId: z.nullable(z.string()).optional(),
|
|
1818
1846
|
country: z.nullable(z.string()).optional(),
|
|
1819
1847
|
sales: z.nullable(z.number()).optional(),
|
|
1820
1848
|
saleAmount: z.nullable(z.number()).optional(),
|
|
1821
1849
|
createdAt: z.string(),
|
|
1850
|
+
firstSaleAt: z.nullable(z.string()).optional(),
|
|
1851
|
+
subscriptionCanceledAt: z.nullable(z.string()).optional(),
|
|
1822
1852
|
});
|
|
1823
1853
|
|
|
1824
1854
|
export function listEventsResponseBodyCustomerFromJSON(
|