dub 0.45.0 → 0.45.2
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 +15 -2
- package/dist/commonjs/funcs/customersCreate.d.ts +16 -0
- package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersCreate.js +114 -0
- package/dist/commonjs/funcs/customersCreate.js.map +1 -0
- package/dist/commonjs/funcs/customersDelete.d.ts +16 -0
- package/dist/commonjs/funcs/customersDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersDelete.js +120 -0
- package/dist/commonjs/funcs/customersDelete.js.map +1 -0
- package/dist/commonjs/funcs/customersGet.d.ts +16 -0
- package/dist/commonjs/funcs/customersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGet.js +117 -0
- package/dist/commonjs/funcs/customersGet.js.map +1 -0
- package/dist/commonjs/funcs/customersList.d.ts +16 -0
- package/dist/commonjs/funcs/customersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersList.js +103 -0
- package/dist/commonjs/funcs/customersList.js.map +1 -0
- package/dist/commonjs/funcs/customersUpdate.d.ts +16 -0
- package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersUpdate.js +122 -0
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -0
- package/dist/commonjs/funcs/trackCustomer.d.ts +2 -0
- package/dist/commonjs/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/commonjs/funcs/trackCustomer.js +2 -0
- package/dist/commonjs/funcs/trackCustomer.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +28 -6
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +10 -6
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +26 -4
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +8 -4
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +28 -6
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +10 -6
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +26 -4
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +8 -4
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts +21 -1
- package/dist/commonjs/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/workspaceschema.js +8 -0
- package/dist/commonjs/models/components/workspaceschema.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +97 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcustomer.js +85 -0
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -0
- package/dist/commonjs/models/operations/deletecustomer.d.ts +57 -0
- package/dist/commonjs/models/operations/deletecustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecustomer.js +69 -0
- package/dist/commonjs/models/operations/deletecustomer.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts +82 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcustomer.js +79 -0
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts +53 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcustomers.js +60 -0
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +5 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +5 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/tracklead.d.ts +11 -4
- package/dist/commonjs/models/operations/tracklead.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracklead.js +6 -4
- package/dist/commonjs/models/operations/tracklead.js.map +1 -1
- package/dist/commonjs/models/operations/tracksale.d.ts +11 -2
- package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracksale.js +6 -2
- package/dist/commonjs/models/operations/tracksale.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +125 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatecustomer.js +116 -0
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -0
- package/dist/commonjs/sdk/customers.d.ts +40 -0
- package/dist/commonjs/sdk/customers.d.ts.map +1 -0
- package/dist/commonjs/sdk/customers.js +62 -0
- package/dist/commonjs/sdk/customers.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +7 -4
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +13 -8
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/track.d.ts +2 -0
- package/dist/commonjs/sdk/track.d.ts.map +1 -1
- package/dist/commonjs/sdk/track.js +2 -0
- package/dist/commonjs/sdk/track.js.map +1 -1
- package/dist/esm/funcs/customersCreate.d.ts +16 -0
- package/dist/esm/funcs/customersCreate.d.ts.map +1 -0
- package/dist/esm/funcs/customersCreate.js +87 -0
- package/dist/esm/funcs/customersCreate.js.map +1 -0
- package/dist/esm/funcs/customersDelete.d.ts +16 -0
- package/dist/esm/funcs/customersDelete.d.ts.map +1 -0
- package/dist/esm/funcs/customersDelete.js +93 -0
- package/dist/esm/funcs/customersDelete.js.map +1 -0
- package/dist/esm/funcs/customersGet.d.ts +16 -0
- package/dist/esm/funcs/customersGet.d.ts.map +1 -0
- package/dist/esm/funcs/customersGet.js +90 -0
- package/dist/esm/funcs/customersGet.js.map +1 -0
- package/dist/esm/funcs/customersList.d.ts +16 -0
- package/dist/esm/funcs/customersList.d.ts.map +1 -0
- package/dist/esm/funcs/customersList.js +76 -0
- package/dist/esm/funcs/customersList.js.map +1 -0
- package/dist/esm/funcs/customersUpdate.d.ts +16 -0
- package/dist/esm/funcs/customersUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/customersUpdate.js +95 -0
- package/dist/esm/funcs/customersUpdate.js.map +1 -0
- package/dist/esm/funcs/trackCustomer.d.ts +2 -0
- package/dist/esm/funcs/trackCustomer.d.ts.map +1 -1
- package/dist/esm/funcs/trackCustomer.js +2 -0
- package/dist/esm/funcs/trackCustomer.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/leadcreatedevent.d.ts +28 -6
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +10 -6
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +26 -4
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +8 -4
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +28 -6
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +10 -6
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +26 -4
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +8 -4
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/components/workspaceschema.d.ts +21 -1
- package/dist/esm/models/components/workspaceschema.d.ts.map +1 -1
- package/dist/esm/models/components/workspaceschema.js +8 -0
- package/dist/esm/models/components/workspaceschema.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +97 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/createcustomer.js +59 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -0
- package/dist/esm/models/operations/deletecustomer.d.ts +57 -0
- package/dist/esm/models/operations/deletecustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecustomer.js +43 -0
- package/dist/esm/models/operations/deletecustomer.js.map +1 -0
- package/dist/esm/models/operations/getcustomer.d.ts +82 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/getcustomer.js +53 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -0
- package/dist/esm/models/operations/getcustomers.d.ts +53 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -0
- package/dist/esm/models/operations/getcustomers.js +34 -0
- package/dist/esm/models/operations/getcustomers.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +5 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +5 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/tracklead.d.ts +11 -4
- package/dist/esm/models/operations/tracklead.d.ts.map +1 -1
- package/dist/esm/models/operations/tracklead.js +6 -4
- package/dist/esm/models/operations/tracklead.js.map +1 -1
- package/dist/esm/models/operations/tracksale.d.ts +11 -2
- package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
- package/dist/esm/models/operations/tracksale.js +6 -2
- package/dist/esm/models/operations/tracksale.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +125 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -0
- package/dist/esm/models/operations/updatecustomer.js +90 -0
- package/dist/esm/models/operations/updatecustomer.js.map +1 -0
- package/dist/esm/sdk/customers.d.ts +40 -0
- package/dist/esm/sdk/customers.d.ts.map +1 -0
- package/dist/esm/sdk/customers.js +58 -0
- package/dist/esm/sdk/customers.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +7 -4
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +13 -8
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/track.d.ts +2 -0
- package/dist/esm/sdk/track.d.ts.map +1 -1
- package/dist/esm/sdk/track.js +2 -0
- package/dist/esm/sdk/track.js.map +1 -1
- package/docs/sdks/customers/README.md +421 -0
- package/docs/sdks/track/README.md +4 -2
- package/package.json +1 -1
- package/src/funcs/customersCreate.ts +172 -0
- package/src/funcs/customersDelete.ts +177 -0
- package/src/funcs/customersGet.ts +173 -0
- package/src/funcs/customersList.ts +152 -0
- package/src/funcs/customersUpdate.ts +180 -0
- package/src/funcs/trackCustomer.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/leadcreatedevent.ts +38 -12
- package/src/models/components/leadevent.ts +34 -8
- package/src/models/components/salecreatedevent.ts +38 -12
- package/src/models/components/saleevent.ts +34 -8
- package/src/models/components/workspaceschema.ts +29 -1
- package/src/models/operations/createcustomer.ts +150 -0
- package/src/models/operations/deletecustomer.ts +94 -0
- package/src/models/operations/getcustomer.ts +129 -0
- package/src/models/operations/getcustomers.ts +83 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/tracklead.ts +17 -8
- package/src/models/operations/tracksale.ts +17 -4
- package/src/models/operations/updatecustomer.ts +207 -0
- package/src/sdk/customers.ts +99 -0
- package/src/sdk/sdk.ts +16 -10
- package/src/sdk/track.ts +2 -0
|
@@ -18,10 +18,30 @@ export const LeadCreatedEventEvent = {
|
|
|
18
18
|
export type LeadCreatedEventEvent = ClosedEnum<typeof LeadCreatedEventEvent>;
|
|
19
19
|
|
|
20
20
|
export type LeadCreatedEventCustomer = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of the customer in Dub.
|
|
23
|
+
*/
|
|
21
24
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the customer in the client's app.
|
|
27
|
+
*/
|
|
28
|
+
externalId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the customer.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Email of the customer.
|
|
35
|
+
*/
|
|
36
|
+
email?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Avatar URL of the customer.
|
|
39
|
+
*/
|
|
40
|
+
avatar?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The date the customer was created.
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
25
45
|
};
|
|
26
46
|
|
|
27
47
|
export type LeadCreatedEventClick = {
|
|
@@ -483,17 +503,21 @@ export const LeadCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
483
503
|
unknown
|
|
484
504
|
> = z.object({
|
|
485
505
|
id: z.string(),
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
506
|
+
externalId: z.string(),
|
|
507
|
+
name: z.string(),
|
|
508
|
+
email: z.nullable(z.string()).optional(),
|
|
509
|
+
avatar: z.nullable(z.string()).optional(),
|
|
510
|
+
createdAt: z.string(),
|
|
489
511
|
});
|
|
490
512
|
|
|
491
513
|
/** @internal */
|
|
492
514
|
export type LeadCreatedEventCustomer$Outbound = {
|
|
493
515
|
id: string;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
516
|
+
externalId: string;
|
|
517
|
+
name: string;
|
|
518
|
+
email?: string | null | undefined;
|
|
519
|
+
avatar?: string | null | undefined;
|
|
520
|
+
createdAt: string;
|
|
497
521
|
};
|
|
498
522
|
|
|
499
523
|
/** @internal */
|
|
@@ -503,9 +527,11 @@ export const LeadCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
503
527
|
LeadCreatedEventCustomer
|
|
504
528
|
> = z.object({
|
|
505
529
|
id: z.string(),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
530
|
+
externalId: z.string(),
|
|
531
|
+
name: z.string(),
|
|
532
|
+
email: z.nullable(z.string()).optional(),
|
|
533
|
+
avatar: z.nullable(z.string()).optional(),
|
|
534
|
+
createdAt: z.string(),
|
|
509
535
|
});
|
|
510
536
|
|
|
511
537
|
/**
|
|
@@ -432,10 +432,30 @@ export type LeadEventLink = {
|
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
export type Customer = {
|
|
435
|
+
/**
|
|
436
|
+
* The unique identifier of the customer in Dub.
|
|
437
|
+
*/
|
|
435
438
|
id: string;
|
|
439
|
+
/**
|
|
440
|
+
* Unique identifier for the customer in the client's app.
|
|
441
|
+
*/
|
|
442
|
+
externalId: string;
|
|
443
|
+
/**
|
|
444
|
+
* Name of the customer.
|
|
445
|
+
*/
|
|
436
446
|
name: string;
|
|
437
|
-
|
|
438
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Email of the customer.
|
|
449
|
+
*/
|
|
450
|
+
email?: string | null | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* Avatar URL of the customer.
|
|
453
|
+
*/
|
|
454
|
+
avatar?: string | null | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The date the customer was created.
|
|
457
|
+
*/
|
|
458
|
+
createdAt: string;
|
|
439
459
|
};
|
|
440
460
|
|
|
441
461
|
export type LeadEvent = {
|
|
@@ -2090,17 +2110,21 @@ export const Customer$inboundSchema: z.ZodType<
|
|
|
2090
2110
|
unknown
|
|
2091
2111
|
> = z.object({
|
|
2092
2112
|
id: z.string(),
|
|
2113
|
+
externalId: z.string(),
|
|
2093
2114
|
name: z.string(),
|
|
2094
|
-
email: z.string(),
|
|
2095
|
-
avatar: z.string(),
|
|
2115
|
+
email: z.nullable(z.string()).optional(),
|
|
2116
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2117
|
+
createdAt: z.string(),
|
|
2096
2118
|
});
|
|
2097
2119
|
|
|
2098
2120
|
/** @internal */
|
|
2099
2121
|
export type Customer$Outbound = {
|
|
2100
2122
|
id: string;
|
|
2123
|
+
externalId: string;
|
|
2101
2124
|
name: string;
|
|
2102
|
-
email
|
|
2103
|
-
avatar
|
|
2125
|
+
email?: string | null | undefined;
|
|
2126
|
+
avatar?: string | null | undefined;
|
|
2127
|
+
createdAt: string;
|
|
2104
2128
|
};
|
|
2105
2129
|
|
|
2106
2130
|
/** @internal */
|
|
@@ -2110,9 +2134,11 @@ export const Customer$outboundSchema: z.ZodType<
|
|
|
2110
2134
|
Customer
|
|
2111
2135
|
> = z.object({
|
|
2112
2136
|
id: z.string(),
|
|
2137
|
+
externalId: z.string(),
|
|
2113
2138
|
name: z.string(),
|
|
2114
|
-
email: z.string(),
|
|
2115
|
-
avatar: z.string(),
|
|
2139
|
+
email: z.nullable(z.string()).optional(),
|
|
2140
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2141
|
+
createdAt: z.string(),
|
|
2116
2142
|
});
|
|
2117
2143
|
|
|
2118
2144
|
/**
|
|
@@ -18,10 +18,30 @@ export const SaleCreatedEventEvent = {
|
|
|
18
18
|
export type SaleCreatedEventEvent = ClosedEnum<typeof SaleCreatedEventEvent>;
|
|
19
19
|
|
|
20
20
|
export type SaleCreatedEventCustomer = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of the customer in Dub.
|
|
23
|
+
*/
|
|
21
24
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the customer in the client's app.
|
|
27
|
+
*/
|
|
28
|
+
externalId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the customer.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Email of the customer.
|
|
35
|
+
*/
|
|
36
|
+
email?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Avatar URL of the customer.
|
|
39
|
+
*/
|
|
40
|
+
avatar?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The date the customer was created.
|
|
43
|
+
*/
|
|
44
|
+
createdAt: string;
|
|
25
45
|
};
|
|
26
46
|
|
|
27
47
|
export type SaleCreatedEventClick = {
|
|
@@ -491,17 +511,21 @@ export const SaleCreatedEventCustomer$inboundSchema: z.ZodType<
|
|
|
491
511
|
unknown
|
|
492
512
|
> = z.object({
|
|
493
513
|
id: z.string(),
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
514
|
+
externalId: z.string(),
|
|
515
|
+
name: z.string(),
|
|
516
|
+
email: z.nullable(z.string()).optional(),
|
|
517
|
+
avatar: z.nullable(z.string()).optional(),
|
|
518
|
+
createdAt: z.string(),
|
|
497
519
|
});
|
|
498
520
|
|
|
499
521
|
/** @internal */
|
|
500
522
|
export type SaleCreatedEventCustomer$Outbound = {
|
|
501
523
|
id: string;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
524
|
+
externalId: string;
|
|
525
|
+
name: string;
|
|
526
|
+
email?: string | null | undefined;
|
|
527
|
+
avatar?: string | null | undefined;
|
|
528
|
+
createdAt: string;
|
|
505
529
|
};
|
|
506
530
|
|
|
507
531
|
/** @internal */
|
|
@@ -511,9 +535,11 @@ export const SaleCreatedEventCustomer$outboundSchema: z.ZodType<
|
|
|
511
535
|
SaleCreatedEventCustomer
|
|
512
536
|
> = z.object({
|
|
513
537
|
id: z.string(),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
538
|
+
externalId: z.string(),
|
|
539
|
+
name: z.string(),
|
|
540
|
+
email: z.nullable(z.string()).optional(),
|
|
541
|
+
avatar: z.nullable(z.string()).optional(),
|
|
542
|
+
createdAt: z.string(),
|
|
517
543
|
});
|
|
518
544
|
|
|
519
545
|
/**
|
|
@@ -432,10 +432,30 @@ export type SaleEventClick = {
|
|
|
432
432
|
};
|
|
433
433
|
|
|
434
434
|
export type SaleEventCustomer = {
|
|
435
|
+
/**
|
|
436
|
+
* The unique identifier of the customer in Dub.
|
|
437
|
+
*/
|
|
435
438
|
id: string;
|
|
439
|
+
/**
|
|
440
|
+
* Unique identifier for the customer in the client's app.
|
|
441
|
+
*/
|
|
442
|
+
externalId: string;
|
|
443
|
+
/**
|
|
444
|
+
* Name of the customer.
|
|
445
|
+
*/
|
|
436
446
|
name: string;
|
|
437
|
-
|
|
438
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Email of the customer.
|
|
449
|
+
*/
|
|
450
|
+
email?: string | null | undefined;
|
|
451
|
+
/**
|
|
452
|
+
* Avatar URL of the customer.
|
|
453
|
+
*/
|
|
454
|
+
avatar?: string | null | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* The date the customer was created.
|
|
457
|
+
*/
|
|
458
|
+
createdAt: string;
|
|
439
459
|
};
|
|
440
460
|
|
|
441
461
|
/**
|
|
@@ -2135,17 +2155,21 @@ export const SaleEventCustomer$inboundSchema: z.ZodType<
|
|
|
2135
2155
|
unknown
|
|
2136
2156
|
> = z.object({
|
|
2137
2157
|
id: z.string(),
|
|
2158
|
+
externalId: z.string(),
|
|
2138
2159
|
name: z.string(),
|
|
2139
|
-
email: z.string(),
|
|
2140
|
-
avatar: z.string(),
|
|
2160
|
+
email: z.nullable(z.string()).optional(),
|
|
2161
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2162
|
+
createdAt: z.string(),
|
|
2141
2163
|
});
|
|
2142
2164
|
|
|
2143
2165
|
/** @internal */
|
|
2144
2166
|
export type SaleEventCustomer$Outbound = {
|
|
2145
2167
|
id: string;
|
|
2168
|
+
externalId: string;
|
|
2146
2169
|
name: string;
|
|
2147
|
-
email
|
|
2148
|
-
avatar
|
|
2170
|
+
email?: string | null | undefined;
|
|
2171
|
+
avatar?: string | null | undefined;
|
|
2172
|
+
createdAt: string;
|
|
2149
2173
|
};
|
|
2150
2174
|
|
|
2151
2175
|
/** @internal */
|
|
@@ -2155,9 +2179,11 @@ export const SaleEventCustomer$outboundSchema: z.ZodType<
|
|
|
2155
2179
|
SaleEventCustomer
|
|
2156
2180
|
> = z.object({
|
|
2157
2181
|
id: z.string(),
|
|
2182
|
+
externalId: z.string(),
|
|
2158
2183
|
name: z.string(),
|
|
2159
|
-
email: z.string(),
|
|
2160
|
-
avatar: z.string(),
|
|
2184
|
+
email: z.nullable(z.string()).optional(),
|
|
2185
|
+
avatar: z.nullable(z.string()).optional(),
|
|
2186
|
+
createdAt: z.string(),
|
|
2161
2187
|
});
|
|
2162
2188
|
|
|
2163
2189
|
/**
|
|
@@ -94,7 +94,7 @@ export type WorkspaceSchema = {
|
|
|
94
94
|
*/
|
|
95
95
|
paymentFailedAt: string | null;
|
|
96
96
|
/**
|
|
97
|
-
* [BETA]: The Stripe Connect ID of the workspace.
|
|
97
|
+
* [BETA – Dub Conversions]: The Stripe Connect ID of the workspace.
|
|
98
98
|
*/
|
|
99
99
|
stripeConnectId: string | null;
|
|
100
100
|
/**
|
|
@@ -173,6 +173,22 @@ export type WorkspaceSchema = {
|
|
|
173
173
|
* The publishable key of the workspace.
|
|
174
174
|
*/
|
|
175
175
|
publishableKey: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* [BETA – Dub Partners]: The name of the connected bank account.
|
|
178
|
+
*/
|
|
179
|
+
bankAccountName: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* [BETA – Dub Partners]: The partial account number of the bank account.
|
|
182
|
+
*/
|
|
183
|
+
partialAccountNumber: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* [BETA – Dub Partners]: The routing number of the bank account.
|
|
186
|
+
*/
|
|
187
|
+
routingNumber: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* [BETA – Dub Partners]: Whether the bank account is verified.
|
|
190
|
+
*/
|
|
191
|
+
bankAccountVerified: boolean;
|
|
176
192
|
};
|
|
177
193
|
|
|
178
194
|
/** @internal */
|
|
@@ -322,6 +338,10 @@ export const WorkspaceSchema$inboundSchema: z.ZodType<
|
|
|
322
338
|
domains: z.array(z.lazy(() => Domains$inboundSchema)),
|
|
323
339
|
flags: z.record(z.boolean()).optional(),
|
|
324
340
|
publishableKey: z.nullable(z.string()),
|
|
341
|
+
bankAccountName: z.nullable(z.string()),
|
|
342
|
+
partialAccountNumber: z.nullable(z.string()),
|
|
343
|
+
routingNumber: z.nullable(z.string()),
|
|
344
|
+
bankAccountVerified: z.boolean(),
|
|
325
345
|
});
|
|
326
346
|
|
|
327
347
|
/** @internal */
|
|
@@ -355,6 +375,10 @@ export type WorkspaceSchema$Outbound = {
|
|
|
355
375
|
domains: Array<Domains$Outbound>;
|
|
356
376
|
flags?: { [k: string]: boolean } | undefined;
|
|
357
377
|
publishableKey: string | null;
|
|
378
|
+
bankAccountName: string | null;
|
|
379
|
+
partialAccountNumber: string | null;
|
|
380
|
+
routingNumber: string | null;
|
|
381
|
+
bankAccountVerified: boolean;
|
|
358
382
|
};
|
|
359
383
|
|
|
360
384
|
/** @internal */
|
|
@@ -392,6 +416,10 @@ export const WorkspaceSchema$outboundSchema: z.ZodType<
|
|
|
392
416
|
domains: z.array(z.lazy(() => Domains$outboundSchema)),
|
|
393
417
|
flags: z.record(z.boolean()).optional(),
|
|
394
418
|
publishableKey: z.nullable(z.string()),
|
|
419
|
+
bankAccountName: z.nullable(z.string()),
|
|
420
|
+
partialAccountNumber: z.nullable(z.string()),
|
|
421
|
+
routingNumber: z.nullable(z.string()),
|
|
422
|
+
bankAccountVerified: z.boolean(),
|
|
395
423
|
});
|
|
396
424
|
|
|
397
425
|
/**
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type CreateCustomerRequestBody = {
|
|
8
|
+
/**
|
|
9
|
+
* Email of the customer in the client's app.
|
|
10
|
+
*/
|
|
11
|
+
email?: string | null | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Name of the customer in the client's app. If not provided, a random name will be generated.
|
|
14
|
+
*/
|
|
15
|
+
name?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Avatar URL of the customer in the client's app.
|
|
18
|
+
*/
|
|
19
|
+
avatar?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the customer in the client's app.
|
|
22
|
+
*/
|
|
23
|
+
externalId: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The customer was created.
|
|
28
|
+
*/
|
|
29
|
+
export type CreateCustomerResponseBody = {
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier of the customer in Dub.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier for the customer in the client's app.
|
|
36
|
+
*/
|
|
37
|
+
externalId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the customer.
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Email of the customer.
|
|
44
|
+
*/
|
|
45
|
+
email?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Avatar URL of the customer.
|
|
48
|
+
*/
|
|
49
|
+
avatar?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The date the customer was created.
|
|
52
|
+
*/
|
|
53
|
+
createdAt: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const CreateCustomerRequestBody$inboundSchema: z.ZodType<
|
|
58
|
+
CreateCustomerRequestBody,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({
|
|
62
|
+
email: z.nullable(z.string()).optional(),
|
|
63
|
+
name: z.nullable(z.string()).optional(),
|
|
64
|
+
avatar: z.nullable(z.string()).optional(),
|
|
65
|
+
externalId: z.string(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type CreateCustomerRequestBody$Outbound = {
|
|
70
|
+
email?: string | null | undefined;
|
|
71
|
+
name?: string | null | undefined;
|
|
72
|
+
avatar?: string | null | undefined;
|
|
73
|
+
externalId: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const CreateCustomerRequestBody$outboundSchema: z.ZodType<
|
|
78
|
+
CreateCustomerRequestBody$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
CreateCustomerRequestBody
|
|
81
|
+
> = z.object({
|
|
82
|
+
email: z.nullable(z.string()).optional(),
|
|
83
|
+
name: z.nullable(z.string()).optional(),
|
|
84
|
+
avatar: z.nullable(z.string()).optional(),
|
|
85
|
+
externalId: z.string(),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
+
*/
|
|
92
|
+
export namespace CreateCustomerRequestBody$ {
|
|
93
|
+
/** @deprecated use `CreateCustomerRequestBody$inboundSchema` instead. */
|
|
94
|
+
export const inboundSchema = CreateCustomerRequestBody$inboundSchema;
|
|
95
|
+
/** @deprecated use `CreateCustomerRequestBody$outboundSchema` instead. */
|
|
96
|
+
export const outboundSchema = CreateCustomerRequestBody$outboundSchema;
|
|
97
|
+
/** @deprecated use `CreateCustomerRequestBody$Outbound` instead. */
|
|
98
|
+
export type Outbound = CreateCustomerRequestBody$Outbound;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const CreateCustomerResponseBody$inboundSchema: z.ZodType<
|
|
103
|
+
CreateCustomerResponseBody,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
id: z.string(),
|
|
108
|
+
externalId: z.string(),
|
|
109
|
+
name: z.string(),
|
|
110
|
+
email: z.nullable(z.string()).optional(),
|
|
111
|
+
avatar: z.nullable(z.string()).optional(),
|
|
112
|
+
createdAt: z.string(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type CreateCustomerResponseBody$Outbound = {
|
|
117
|
+
id: string;
|
|
118
|
+
externalId: string;
|
|
119
|
+
name: string;
|
|
120
|
+
email?: string | null | undefined;
|
|
121
|
+
avatar?: string | null | undefined;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const CreateCustomerResponseBody$outboundSchema: z.ZodType<
|
|
127
|
+
CreateCustomerResponseBody$Outbound,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
CreateCustomerResponseBody
|
|
130
|
+
> = z.object({
|
|
131
|
+
id: z.string(),
|
|
132
|
+
externalId: z.string(),
|
|
133
|
+
name: z.string(),
|
|
134
|
+
email: z.nullable(z.string()).optional(),
|
|
135
|
+
avatar: z.nullable(z.string()).optional(),
|
|
136
|
+
createdAt: z.string(),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
+
*/
|
|
143
|
+
export namespace CreateCustomerResponseBody$ {
|
|
144
|
+
/** @deprecated use `CreateCustomerResponseBody$inboundSchema` instead. */
|
|
145
|
+
export const inboundSchema = CreateCustomerResponseBody$inboundSchema;
|
|
146
|
+
/** @deprecated use `CreateCustomerResponseBody$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema = CreateCustomerResponseBody$outboundSchema;
|
|
148
|
+
/** @deprecated use `CreateCustomerResponseBody$Outbound` instead. */
|
|
149
|
+
export type Outbound = CreateCustomerResponseBody$Outbound;
|
|
150
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type DeleteCustomerRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the customer in Dub.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The customer was deleted.
|
|
16
|
+
*/
|
|
17
|
+
export type DeleteCustomerResponseBody = {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the customer in Dub.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const DeleteCustomerRequest$inboundSchema: z.ZodType<
|
|
26
|
+
DeleteCustomerRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
id: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type DeleteCustomerRequest$Outbound = {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const DeleteCustomerRequest$outboundSchema: z.ZodType<
|
|
40
|
+
DeleteCustomerRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
DeleteCustomerRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace DeleteCustomerRequest$ {
|
|
52
|
+
/** @deprecated use `DeleteCustomerRequest$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = DeleteCustomerRequest$inboundSchema;
|
|
54
|
+
/** @deprecated use `DeleteCustomerRequest$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = DeleteCustomerRequest$outboundSchema;
|
|
56
|
+
/** @deprecated use `DeleteCustomerRequest$Outbound` instead. */
|
|
57
|
+
export type Outbound = DeleteCustomerRequest$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const DeleteCustomerResponseBody$inboundSchema: z.ZodType<
|
|
62
|
+
DeleteCustomerResponseBody,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
id: z.string(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type DeleteCustomerResponseBody$Outbound = {
|
|
71
|
+
id: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const DeleteCustomerResponseBody$outboundSchema: z.ZodType<
|
|
76
|
+
DeleteCustomerResponseBody$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
DeleteCustomerResponseBody
|
|
79
|
+
> = z.object({
|
|
80
|
+
id: z.string(),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace DeleteCustomerResponseBody$ {
|
|
88
|
+
/** @deprecated use `DeleteCustomerResponseBody$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = DeleteCustomerResponseBody$inboundSchema;
|
|
90
|
+
/** @deprecated use `DeleteCustomerResponseBody$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = DeleteCustomerResponseBody$outboundSchema;
|
|
92
|
+
/** @deprecated use `DeleteCustomerResponseBody$Outbound` instead. */
|
|
93
|
+
export type Outbound = DeleteCustomerResponseBody$Outbound;
|
|
94
|
+
}
|