@kl1/contracts 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-contracts/src/activity-log/index.d.ts +22 -23
- package/dist/api-contracts/src/activity-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/activity-log/schema.d.ts +5 -6
- package/dist/api-contracts/src/activity-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute/index.d.ts +148 -164
- package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute/schema.d.ts +8 -11
- package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/attribute-option/schema.d.ts +2 -3
- package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/auth/index.d.ts +24 -26
- package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
- package/dist/api-contracts/src/automation-queue/index.d.ts +170 -192
- package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
- package/dist/api-contracts/src/automation-queue/schema.d.ts +12 -15
- package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/aws/index.d.ts +6 -8
- package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
- package/dist/api-contracts/src/botpress/index.d.ts +13 -17
- package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
- package/dist/api-contracts/src/business-calendar/index.d.ts +28 -40
- package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
- package/dist/api-contracts/src/business-calendar/schema.d.ts +10 -15
- package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/call-log/schema.d.ts +4 -5
- package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/category/index.d.ts +109 -118
- package/dist/api-contracts/src/category/index.d.ts.map +1 -1
- package/dist/api-contracts/src/category/schema.d.ts +2 -3
- package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/index.d.ts +1502 -1532
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/schema.d.ts +54 -54
- package/dist/api-contracts/src/channel/validation.d.ts +72 -72
- package/dist/api-contracts/src/chat/index.d.ts +13141 -13645
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +2308 -2467
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +3331 -3414
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/index.d.ts +299 -371
- package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/schema.d.ts +75 -98
- package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/validation.d.ts +1 -1
- package/dist/api-contracts/src/company/index.d.ts +109 -136
- package/dist/api-contracts/src/company/index.d.ts.map +1 -1
- package/dist/api-contracts/src/company/schema.d.ts +24 -33
- package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/company/validation.d.ts +62 -78
- package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/index.d.ts +559 -677
- package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/schema.d.ts +42 -56
- package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/validation.d.ts +218 -299
- package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contact-email/schema.d.ts +2 -3
- package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contact-phone/schema.d.ts +2 -3
- package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +25882 -27370
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/custom-field/schema.d.ts +2 -3
- package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
- package/dist/api-contracts/src/custom-field-upload/schema.d.ts +2 -3
- package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-intelligence/index.d.ts +47 -50
- package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +783 -831
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +461 -514
- package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
- package/dist/api-contracts/src/dashboard/index.d.ts +361 -402
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/schema.d.ts +4 -5
- package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +18 -24
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/evaluate-form/index.d.ts +3 -4
- package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
- package/dist/api-contracts/src/evaluate-form/schema.d.ts +2 -3
- package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/export/index.d.ts +3 -4
- package/dist/api-contracts/src/export/index.d.ts.map +1 -1
- package/dist/api-contracts/src/extension/index.d.ts +112 -118
- package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +2211 -2291
- package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +82 -94
- package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/validation.d.ts +89 -106
- package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
- package/dist/api-contracts/src/group/schema.d.ts +2 -3
- package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/index.d.ts +58 -77
- package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
- package/dist/api-contracts/src/hold-label/schema.d.ts +14 -20
- package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/index.d.ts +1 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +3873 -3933
- package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
- package/dist/api-contracts/src/line/index.d.ts +2073 -2133
- package/dist/api-contracts/src/line/index.d.ts.map +1 -1
- package/dist/api-contracts/src/line/schema.d.ts +11 -12
- package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/line/validation.d.ts +127 -127
- package/dist/api-contracts/src/log-form/schema.d.ts +2 -3
- package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/account-contract.d.ts +174 -184
- package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +3 -4
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +451 -502
- package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts +18 -24
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/message-contract.d.ts +107 -113
- package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/room-contract.d.ts +101 -130
- package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +30 -36
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +20 -27
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/index.d.ts +3873 -3935
- package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/validation.d.ts +89 -106
- package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/index.d.ts +27 -34
- package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/schema.d.ts +15 -18
- package/dist/api-contracts/src/notification/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/validation.d.ts +5 -6
- package/dist/api-contracts/src/notification/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/permission/index.d.ts +17 -17
- package/dist/api-contracts/src/presence-status/index.d.ts +81 -84
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/index.d.ts +196 -260
- package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/schema.d.ts +34 -48
- package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/validation.d.ts +88 -113
- package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/role/index.d.ts +83 -88
- package/dist/api-contracts/src/role/index.d.ts.map +1 -1
- package/dist/api-contracts/src/sms/index.d.ts +345 -349
- package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/index.d.ts +54 -76
- package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/schema.d.ts +14 -21
- package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/validation.d.ts +4 -5
- package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/index.d.ts +51 -74
- package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/schema.d.ts +62 -93
- package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/index.d.ts +72 -79
- package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
- package/dist/api-contracts/src/tag/schema.d.ts +2 -3
- package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tag-group/schema.d.ts +2 -3
- package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telegram/index.d.ts +1532 -1590
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +50 -55
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +7 -9
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
- package/dist/api-contracts/src/telephony-cdr/index.d.ts +1170 -1245
- package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/schema.d.ts +196 -222
- package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/validation.d.ts +45 -52
- package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
- package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
- package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +2 -3
- package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +2 -3
- package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/tenant/schema.d.ts +2 -3
- package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +679 -790
- package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/schema.d.ts +73 -99
- package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/validation.d.ts +55 -57
- package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/upload/index.d.ts +34 -36
- package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
- package/dist/api-contracts/src/upload/schema.d.ts +2 -3
- package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/user/index.d.ts +148 -159
- package/dist/api-contracts/src/user/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user/schema.d.ts +5 -6
- package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/user/validation.d.ts +4 -5
- package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +31 -32
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +7 -9
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +1785 -1843
- package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
- package/dist/api-contracts/src/webchat/index.d.ts +1551 -1609
- package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/index.d.ts +1920 -1982
- package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/validation.d.ts +6 -9
- package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +144 -155
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/schema.d.ts +2 -3
- package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/validation.d.ts +16 -16
- package/dist/api-contracts/src/workflow-rule/index.d.ts +2021 -2087
- package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
- package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -3
- package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/index.d.ts +147 -166
- package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts +6 -9
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/validation.d.ts +20 -21
- package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
- package/dist/api-contracts/utils.d.ts +3 -4
- package/dist/api-contracts/utils.d.ts.map +1 -1
- package/dist/index.js +53 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -37,22 +37,21 @@ export declare const companyContract: {
|
|
|
37
37
|
}, {
|
|
38
38
|
value: string;
|
|
39
39
|
}>;
|
|
40
|
-
customFields: z.ZodArray<z.ZodObject<
|
|
40
|
+
customFields: z.ZodArray<z.ZodObject<{
|
|
41
41
|
isRequired: z.ZodBoolean;
|
|
42
42
|
attributeId: z.ZodString;
|
|
43
|
-
}, {
|
|
44
43
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
45
44
|
type: z.ZodString;
|
|
46
45
|
isDefaultAttribute: z.ZodBoolean;
|
|
47
|
-
}
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
47
|
type: string;
|
|
49
|
-
value: string | string[];
|
|
48
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
50
49
|
isRequired: boolean;
|
|
51
50
|
attributeId: string;
|
|
52
51
|
isDefaultAttribute: boolean;
|
|
53
52
|
}, {
|
|
54
53
|
type: string;
|
|
55
|
-
value: string | string[];
|
|
54
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
56
55
|
isRequired: boolean;
|
|
57
56
|
attributeId: string;
|
|
58
57
|
isDefaultAttribute: boolean;
|
|
@@ -72,7 +71,7 @@ export declare const companyContract: {
|
|
|
72
71
|
};
|
|
73
72
|
customFields: {
|
|
74
73
|
type: string;
|
|
75
|
-
value: string | string[];
|
|
74
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
76
75
|
isRequired: boolean;
|
|
77
76
|
attributeId: string;
|
|
78
77
|
isDefaultAttribute: boolean;
|
|
@@ -92,7 +91,7 @@ export declare const companyContract: {
|
|
|
92
91
|
};
|
|
93
92
|
customFields: {
|
|
94
93
|
type: string;
|
|
95
|
-
value: string | string[];
|
|
94
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
96
95
|
isRequired: boolean;
|
|
97
96
|
attributeId: string;
|
|
98
97
|
isDefaultAttribute: boolean;
|
|
@@ -100,37 +99,32 @@ export declare const companyContract: {
|
|
|
100
99
|
}>;
|
|
101
100
|
summary: "Create a new company";
|
|
102
101
|
method: "POST";
|
|
103
|
-
path: "cs/companies";
|
|
104
102
|
responses: {
|
|
105
|
-
201: z.ZodObject<
|
|
103
|
+
201: z.ZodObject<{
|
|
106
104
|
requestId: z.ZodString;
|
|
107
|
-
|
|
108
|
-
data: z.ZodObject<z.objectUtil.extendShape<{
|
|
105
|
+
data: z.ZodObject<{
|
|
109
106
|
id: z.ZodString;
|
|
110
107
|
createdAt: z.ZodDate;
|
|
111
108
|
updatedAt: z.ZodDate;
|
|
112
109
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
113
|
-
}, {
|
|
114
110
|
name: z.ZodOptional<z.ZodString>;
|
|
115
111
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
112
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
113
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
114
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
115
|
id: z.ZodString;
|
|
120
116
|
createdAt: z.ZodDate;
|
|
121
117
|
updatedAt: z.ZodDate;
|
|
122
118
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
123
|
-
}, {
|
|
124
119
|
textValue: z.ZodNullable<z.ZodString>;
|
|
125
120
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
126
121
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
127
122
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
128
|
-
attribute: z.ZodObject<Omit<
|
|
123
|
+
attribute: z.ZodObject<Omit<{
|
|
129
124
|
id: z.ZodString;
|
|
130
125
|
createdAt: z.ZodDate;
|
|
131
126
|
updatedAt: z.ZodDate;
|
|
132
127
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
133
|
-
}, {
|
|
134
128
|
systemName: z.ZodString;
|
|
135
129
|
displayName: z.ZodString;
|
|
136
130
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -139,14 +133,13 @@ export declare const companyContract: {
|
|
|
139
133
|
isArchived: z.ZodBoolean;
|
|
140
134
|
isRequired: z.ZodBoolean;
|
|
141
135
|
isUnique: z.ZodBoolean;
|
|
142
|
-
options: z.ZodArray<z.ZodObject<
|
|
143
|
-
|
|
136
|
+
options: z.ZodArray<z.ZodObject<{
|
|
137
|
+
position: z.ZodNumber;
|
|
144
138
|
value: z.ZodString;
|
|
139
|
+
label: z.ZodString;
|
|
145
140
|
isDefault: z.ZodBoolean;
|
|
146
|
-
position: z.ZodNumber;
|
|
147
|
-
}, {
|
|
148
141
|
id: z.ZodString;
|
|
149
|
-
}
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
143
|
id: string;
|
|
151
144
|
position: number;
|
|
152
145
|
value: string;
|
|
@@ -159,15 +152,14 @@ export declare const companyContract: {
|
|
|
159
152
|
label: string;
|
|
160
153
|
isDefault: boolean;
|
|
161
154
|
}>, "many">;
|
|
162
|
-
group: z.ZodObject<
|
|
155
|
+
group: z.ZodObject<{
|
|
163
156
|
id: z.ZodString;
|
|
164
157
|
createdAt: z.ZodDate;
|
|
165
158
|
updatedAt: z.ZodDate;
|
|
166
159
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
167
|
-
}, {
|
|
168
160
|
systemName: z.ZodString;
|
|
169
161
|
displayName: z.ZodString;
|
|
170
|
-
}
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
163
|
id: string;
|
|
172
164
|
createdAt: Date;
|
|
173
165
|
updatedAt: Date;
|
|
@@ -182,7 +174,7 @@ export declare const companyContract: {
|
|
|
182
174
|
systemName: string;
|
|
183
175
|
displayName: string;
|
|
184
176
|
}>;
|
|
185
|
-
}
|
|
177
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
186
178
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
187
179
|
id: string;
|
|
188
180
|
position: number;
|
|
@@ -209,7 +201,7 @@ export declare const companyContract: {
|
|
|
209
201
|
isRequired: boolean;
|
|
210
202
|
isUnique: boolean;
|
|
211
203
|
}>;
|
|
212
|
-
}
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
205
|
id: string;
|
|
214
206
|
createdAt: Date;
|
|
215
207
|
updatedAt: Date;
|
|
@@ -256,14 +248,14 @@ export declare const companyContract: {
|
|
|
256
248
|
numberValue: number | null;
|
|
257
249
|
dateValue: Date | null;
|
|
258
250
|
}>, "many">>;
|
|
259
|
-
}
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
252
|
id: string;
|
|
261
253
|
createdAt: Date;
|
|
262
254
|
updatedAt: Date;
|
|
263
255
|
deletedAt: Date | null;
|
|
264
256
|
name?: string | undefined;
|
|
265
|
-
address?: string | null | undefined;
|
|
266
257
|
phone?: string | null | undefined;
|
|
258
|
+
address?: string | null | undefined;
|
|
267
259
|
industry?: string | null | undefined;
|
|
268
260
|
customFields?: {
|
|
269
261
|
id: string;
|
|
@@ -295,8 +287,8 @@ export declare const companyContract: {
|
|
|
295
287
|
updatedAt: Date;
|
|
296
288
|
deletedAt: Date | null;
|
|
297
289
|
name?: string | undefined;
|
|
298
|
-
address?: string | null | undefined;
|
|
299
290
|
phone?: string | null | undefined;
|
|
291
|
+
address?: string | null | undefined;
|
|
300
292
|
industry?: string | null | undefined;
|
|
301
293
|
customFields?: {
|
|
302
294
|
id: string;
|
|
@@ -323,15 +315,15 @@ export declare const companyContract: {
|
|
|
323
315
|
dateValue: Date | null;
|
|
324
316
|
}[] | undefined;
|
|
325
317
|
}>;
|
|
326
|
-
}
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
319
|
data: {
|
|
328
320
|
id: string;
|
|
329
321
|
createdAt: Date;
|
|
330
322
|
updatedAt: Date;
|
|
331
323
|
deletedAt: Date | null;
|
|
332
324
|
name?: string | undefined;
|
|
333
|
-
address?: string | null | undefined;
|
|
334
325
|
phone?: string | null | undefined;
|
|
326
|
+
address?: string | null | undefined;
|
|
335
327
|
industry?: string | null | undefined;
|
|
336
328
|
customFields?: {
|
|
337
329
|
id: string;
|
|
@@ -366,8 +358,8 @@ export declare const companyContract: {
|
|
|
366
358
|
updatedAt: Date;
|
|
367
359
|
deletedAt: Date | null;
|
|
368
360
|
name?: string | undefined;
|
|
369
|
-
address?: string | null | undefined;
|
|
370
361
|
phone?: string | null | undefined;
|
|
362
|
+
address?: string | null | undefined;
|
|
371
363
|
industry?: string | null | undefined;
|
|
372
364
|
customFields?: {
|
|
373
365
|
id: string;
|
|
@@ -448,6 +440,7 @@ export declare const companyContract: {
|
|
|
448
440
|
error?: any;
|
|
449
441
|
}>;
|
|
450
442
|
};
|
|
443
|
+
path: "cs/companies";
|
|
451
444
|
};
|
|
452
445
|
update: {
|
|
453
446
|
body: z.ZodObject<{
|
|
@@ -479,22 +472,21 @@ export declare const companyContract: {
|
|
|
479
472
|
}, {
|
|
480
473
|
value: string;
|
|
481
474
|
}>>;
|
|
482
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
475
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
476
|
isRequired: z.ZodBoolean;
|
|
484
477
|
attributeId: z.ZodString;
|
|
485
|
-
}, {
|
|
486
478
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
487
479
|
type: z.ZodString;
|
|
488
480
|
isDefaultAttribute: z.ZodBoolean;
|
|
489
|
-
}
|
|
481
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
482
|
type: string;
|
|
491
|
-
value: string | string[];
|
|
483
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
492
484
|
isRequired: boolean;
|
|
493
485
|
attributeId: string;
|
|
494
486
|
isDefaultAttribute: boolean;
|
|
495
487
|
}, {
|
|
496
488
|
type: string;
|
|
497
|
-
value: string | string[];
|
|
489
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
498
490
|
isRequired: boolean;
|
|
499
491
|
attributeId: string;
|
|
500
492
|
isDefaultAttribute: boolean;
|
|
@@ -503,10 +495,10 @@ export declare const companyContract: {
|
|
|
503
495
|
name?: {
|
|
504
496
|
value: string;
|
|
505
497
|
} | undefined;
|
|
506
|
-
|
|
498
|
+
phone?: {
|
|
507
499
|
value: string;
|
|
508
500
|
} | undefined;
|
|
509
|
-
|
|
501
|
+
address?: {
|
|
510
502
|
value: string;
|
|
511
503
|
} | undefined;
|
|
512
504
|
industry?: {
|
|
@@ -514,7 +506,7 @@ export declare const companyContract: {
|
|
|
514
506
|
} | undefined;
|
|
515
507
|
customFields?: {
|
|
516
508
|
type: string;
|
|
517
|
-
value: string | string[];
|
|
509
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
518
510
|
isRequired: boolean;
|
|
519
511
|
attributeId: string;
|
|
520
512
|
isDefaultAttribute: boolean;
|
|
@@ -523,10 +515,10 @@ export declare const companyContract: {
|
|
|
523
515
|
name?: {
|
|
524
516
|
value: string;
|
|
525
517
|
} | undefined;
|
|
526
|
-
|
|
518
|
+
phone?: {
|
|
527
519
|
value: string;
|
|
528
520
|
} | undefined;
|
|
529
|
-
|
|
521
|
+
address?: {
|
|
530
522
|
value: string;
|
|
531
523
|
} | undefined;
|
|
532
524
|
industry?: {
|
|
@@ -534,7 +526,7 @@ export declare const companyContract: {
|
|
|
534
526
|
} | undefined;
|
|
535
527
|
customFields?: {
|
|
536
528
|
type: string;
|
|
537
|
-
value: string | string[];
|
|
529
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
538
530
|
isRequired: boolean;
|
|
539
531
|
attributeId: string;
|
|
540
532
|
isDefaultAttribute: boolean;
|
|
@@ -549,37 +541,32 @@ export declare const companyContract: {
|
|
|
549
541
|
}, {
|
|
550
542
|
id: string;
|
|
551
543
|
}>;
|
|
552
|
-
path: "cs/companies/:id";
|
|
553
544
|
responses: {
|
|
554
|
-
201: z.ZodObject<
|
|
545
|
+
201: z.ZodObject<{
|
|
555
546
|
requestId: z.ZodString;
|
|
556
|
-
|
|
557
|
-
data: z.ZodObject<z.objectUtil.extendShape<{
|
|
547
|
+
data: z.ZodObject<{
|
|
558
548
|
id: z.ZodString;
|
|
559
549
|
createdAt: z.ZodDate;
|
|
560
550
|
updatedAt: z.ZodDate;
|
|
561
551
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
562
|
-
}, {
|
|
563
552
|
name: z.ZodOptional<z.ZodString>;
|
|
564
553
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
565
554
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
555
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
556
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
568
557
|
id: z.ZodString;
|
|
569
558
|
createdAt: z.ZodDate;
|
|
570
559
|
updatedAt: z.ZodDate;
|
|
571
560
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
572
|
-
}, {
|
|
573
561
|
textValue: z.ZodNullable<z.ZodString>;
|
|
574
562
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
575
563
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
576
564
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
577
|
-
attribute: z.ZodObject<Omit<
|
|
565
|
+
attribute: z.ZodObject<Omit<{
|
|
578
566
|
id: z.ZodString;
|
|
579
567
|
createdAt: z.ZodDate;
|
|
580
568
|
updatedAt: z.ZodDate;
|
|
581
569
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
582
|
-
}, {
|
|
583
570
|
systemName: z.ZodString;
|
|
584
571
|
displayName: z.ZodString;
|
|
585
572
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -588,14 +575,13 @@ export declare const companyContract: {
|
|
|
588
575
|
isArchived: z.ZodBoolean;
|
|
589
576
|
isRequired: z.ZodBoolean;
|
|
590
577
|
isUnique: z.ZodBoolean;
|
|
591
|
-
options: z.ZodArray<z.ZodObject<
|
|
592
|
-
|
|
578
|
+
options: z.ZodArray<z.ZodObject<{
|
|
579
|
+
position: z.ZodNumber;
|
|
593
580
|
value: z.ZodString;
|
|
581
|
+
label: z.ZodString;
|
|
594
582
|
isDefault: z.ZodBoolean;
|
|
595
|
-
position: z.ZodNumber;
|
|
596
|
-
}, {
|
|
597
583
|
id: z.ZodString;
|
|
598
|
-
}
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
585
|
id: string;
|
|
600
586
|
position: number;
|
|
601
587
|
value: string;
|
|
@@ -608,15 +594,14 @@ export declare const companyContract: {
|
|
|
608
594
|
label: string;
|
|
609
595
|
isDefault: boolean;
|
|
610
596
|
}>, "many">;
|
|
611
|
-
group: z.ZodObject<
|
|
597
|
+
group: z.ZodObject<{
|
|
612
598
|
id: z.ZodString;
|
|
613
599
|
createdAt: z.ZodDate;
|
|
614
600
|
updatedAt: z.ZodDate;
|
|
615
601
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
616
|
-
}, {
|
|
617
602
|
systemName: z.ZodString;
|
|
618
603
|
displayName: z.ZodString;
|
|
619
|
-
}
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
620
605
|
id: string;
|
|
621
606
|
createdAt: Date;
|
|
622
607
|
updatedAt: Date;
|
|
@@ -631,7 +616,7 @@ export declare const companyContract: {
|
|
|
631
616
|
systemName: string;
|
|
632
617
|
displayName: string;
|
|
633
618
|
}>;
|
|
634
|
-
}
|
|
619
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
635
620
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
636
621
|
id: string;
|
|
637
622
|
position: number;
|
|
@@ -658,7 +643,7 @@ export declare const companyContract: {
|
|
|
658
643
|
isRequired: boolean;
|
|
659
644
|
isUnique: boolean;
|
|
660
645
|
}>;
|
|
661
|
-
}
|
|
646
|
+
}, "strip", z.ZodTypeAny, {
|
|
662
647
|
id: string;
|
|
663
648
|
createdAt: Date;
|
|
664
649
|
updatedAt: Date;
|
|
@@ -705,14 +690,14 @@ export declare const companyContract: {
|
|
|
705
690
|
numberValue: number | null;
|
|
706
691
|
dateValue: Date | null;
|
|
707
692
|
}>, "many">>;
|
|
708
|
-
}
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
709
694
|
id: string;
|
|
710
695
|
createdAt: Date;
|
|
711
696
|
updatedAt: Date;
|
|
712
697
|
deletedAt: Date | null;
|
|
713
698
|
name?: string | undefined;
|
|
714
|
-
address?: string | null | undefined;
|
|
715
699
|
phone?: string | null | undefined;
|
|
700
|
+
address?: string | null | undefined;
|
|
716
701
|
industry?: string | null | undefined;
|
|
717
702
|
customFields?: {
|
|
718
703
|
id: string;
|
|
@@ -744,8 +729,8 @@ export declare const companyContract: {
|
|
|
744
729
|
updatedAt: Date;
|
|
745
730
|
deletedAt: Date | null;
|
|
746
731
|
name?: string | undefined;
|
|
747
|
-
address?: string | null | undefined;
|
|
748
732
|
phone?: string | null | undefined;
|
|
733
|
+
address?: string | null | undefined;
|
|
749
734
|
industry?: string | null | undefined;
|
|
750
735
|
customFields?: {
|
|
751
736
|
id: string;
|
|
@@ -772,15 +757,15 @@ export declare const companyContract: {
|
|
|
772
757
|
dateValue: Date | null;
|
|
773
758
|
}[] | undefined;
|
|
774
759
|
}>;
|
|
775
|
-
}
|
|
760
|
+
}, "strip", z.ZodTypeAny, {
|
|
776
761
|
data: {
|
|
777
762
|
id: string;
|
|
778
763
|
createdAt: Date;
|
|
779
764
|
updatedAt: Date;
|
|
780
765
|
deletedAt: Date | null;
|
|
781
766
|
name?: string | undefined;
|
|
782
|
-
address?: string | null | undefined;
|
|
783
767
|
phone?: string | null | undefined;
|
|
768
|
+
address?: string | null | undefined;
|
|
784
769
|
industry?: string | null | undefined;
|
|
785
770
|
customFields?: {
|
|
786
771
|
id: string;
|
|
@@ -815,8 +800,8 @@ export declare const companyContract: {
|
|
|
815
800
|
updatedAt: Date;
|
|
816
801
|
deletedAt: Date | null;
|
|
817
802
|
name?: string | undefined;
|
|
818
|
-
address?: string | null | undefined;
|
|
819
803
|
phone?: string | null | undefined;
|
|
804
|
+
address?: string | null | undefined;
|
|
820
805
|
industry?: string | null | undefined;
|
|
821
806
|
customFields?: {
|
|
822
807
|
id: string;
|
|
@@ -897,6 +882,7 @@ export declare const companyContract: {
|
|
|
897
882
|
error?: any;
|
|
898
883
|
}>;
|
|
899
884
|
};
|
|
885
|
+
path: "cs/companies/:id";
|
|
900
886
|
};
|
|
901
887
|
delete: {
|
|
902
888
|
body: null;
|
|
@@ -909,13 +895,11 @@ export declare const companyContract: {
|
|
|
909
895
|
}, {
|
|
910
896
|
id: string;
|
|
911
897
|
}>;
|
|
912
|
-
path: "cs/companies/:id";
|
|
913
898
|
responses: {
|
|
914
|
-
201: z.ZodObject<
|
|
899
|
+
201: z.ZodObject<{
|
|
915
900
|
requestId: z.ZodString;
|
|
916
|
-
}, {
|
|
917
901
|
message: z.ZodString;
|
|
918
|
-
}
|
|
902
|
+
}, "strip", z.ZodTypeAny, {
|
|
919
903
|
message: string;
|
|
920
904
|
requestId: string;
|
|
921
905
|
}, {
|
|
@@ -974,6 +958,7 @@ export declare const companyContract: {
|
|
|
974
958
|
error?: any;
|
|
975
959
|
}>;
|
|
976
960
|
};
|
|
961
|
+
path: "cs/companies/:id";
|
|
977
962
|
};
|
|
978
963
|
getById: {
|
|
979
964
|
summary: "Get a company by id";
|
|
@@ -985,37 +970,32 @@ export declare const companyContract: {
|
|
|
985
970
|
}, {
|
|
986
971
|
id: string;
|
|
987
972
|
}>;
|
|
988
|
-
path: "cs/companies/:id";
|
|
989
973
|
responses: {
|
|
990
|
-
200: z.ZodObject<
|
|
974
|
+
200: z.ZodObject<{
|
|
991
975
|
requestId: z.ZodString;
|
|
992
|
-
|
|
993
|
-
data: z.ZodObject<z.objectUtil.extendShape<{
|
|
976
|
+
data: z.ZodObject<{
|
|
994
977
|
id: z.ZodString;
|
|
995
978
|
createdAt: z.ZodDate;
|
|
996
979
|
updatedAt: z.ZodDate;
|
|
997
980
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
998
|
-
}, {
|
|
999
981
|
name: z.ZodOptional<z.ZodString>;
|
|
1000
982
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1001
983
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1002
984
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1003
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
985
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1004
986
|
id: z.ZodString;
|
|
1005
987
|
createdAt: z.ZodDate;
|
|
1006
988
|
updatedAt: z.ZodDate;
|
|
1007
989
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1008
|
-
}, {
|
|
1009
990
|
textValue: z.ZodNullable<z.ZodString>;
|
|
1010
991
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
1011
992
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
1012
993
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
1013
|
-
attribute: z.ZodObject<Omit<
|
|
994
|
+
attribute: z.ZodObject<Omit<{
|
|
1014
995
|
id: z.ZodString;
|
|
1015
996
|
createdAt: z.ZodDate;
|
|
1016
997
|
updatedAt: z.ZodDate;
|
|
1017
998
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1018
|
-
}, {
|
|
1019
999
|
systemName: z.ZodString;
|
|
1020
1000
|
displayName: z.ZodString;
|
|
1021
1001
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -1024,14 +1004,13 @@ export declare const companyContract: {
|
|
|
1024
1004
|
isArchived: z.ZodBoolean;
|
|
1025
1005
|
isRequired: z.ZodBoolean;
|
|
1026
1006
|
isUnique: z.ZodBoolean;
|
|
1027
|
-
options: z.ZodArray<z.ZodObject<
|
|
1028
|
-
|
|
1007
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1008
|
+
position: z.ZodNumber;
|
|
1029
1009
|
value: z.ZodString;
|
|
1010
|
+
label: z.ZodString;
|
|
1030
1011
|
isDefault: z.ZodBoolean;
|
|
1031
|
-
position: z.ZodNumber;
|
|
1032
|
-
}, {
|
|
1033
1012
|
id: z.ZodString;
|
|
1034
|
-
}
|
|
1013
|
+
}, "strip", z.ZodTypeAny, {
|
|
1035
1014
|
id: string;
|
|
1036
1015
|
position: number;
|
|
1037
1016
|
value: string;
|
|
@@ -1044,15 +1023,14 @@ export declare const companyContract: {
|
|
|
1044
1023
|
label: string;
|
|
1045
1024
|
isDefault: boolean;
|
|
1046
1025
|
}>, "many">;
|
|
1047
|
-
group: z.ZodObject<
|
|
1026
|
+
group: z.ZodObject<{
|
|
1048
1027
|
id: z.ZodString;
|
|
1049
1028
|
createdAt: z.ZodDate;
|
|
1050
1029
|
updatedAt: z.ZodDate;
|
|
1051
1030
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1052
|
-
}, {
|
|
1053
1031
|
systemName: z.ZodString;
|
|
1054
1032
|
displayName: z.ZodString;
|
|
1055
|
-
}
|
|
1033
|
+
}, "strip", z.ZodTypeAny, {
|
|
1056
1034
|
id: string;
|
|
1057
1035
|
createdAt: Date;
|
|
1058
1036
|
updatedAt: Date;
|
|
@@ -1067,7 +1045,7 @@ export declare const companyContract: {
|
|
|
1067
1045
|
systemName: string;
|
|
1068
1046
|
displayName: string;
|
|
1069
1047
|
}>;
|
|
1070
|
-
}
|
|
1048
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
1071
1049
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
1072
1050
|
id: string;
|
|
1073
1051
|
position: number;
|
|
@@ -1094,7 +1072,7 @@ export declare const companyContract: {
|
|
|
1094
1072
|
isRequired: boolean;
|
|
1095
1073
|
isUnique: boolean;
|
|
1096
1074
|
}>;
|
|
1097
|
-
}
|
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
1076
|
id: string;
|
|
1099
1077
|
createdAt: Date;
|
|
1100
1078
|
updatedAt: Date;
|
|
@@ -1141,14 +1119,14 @@ export declare const companyContract: {
|
|
|
1141
1119
|
numberValue: number | null;
|
|
1142
1120
|
dateValue: Date | null;
|
|
1143
1121
|
}>, "many">>;
|
|
1144
|
-
}
|
|
1122
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
1123
|
id: string;
|
|
1146
1124
|
createdAt: Date;
|
|
1147
1125
|
updatedAt: Date;
|
|
1148
1126
|
deletedAt: Date | null;
|
|
1149
1127
|
name?: string | undefined;
|
|
1150
|
-
address?: string | null | undefined;
|
|
1151
1128
|
phone?: string | null | undefined;
|
|
1129
|
+
address?: string | null | undefined;
|
|
1152
1130
|
industry?: string | null | undefined;
|
|
1153
1131
|
customFields?: {
|
|
1154
1132
|
id: string;
|
|
@@ -1180,8 +1158,8 @@ export declare const companyContract: {
|
|
|
1180
1158
|
updatedAt: Date;
|
|
1181
1159
|
deletedAt: Date | null;
|
|
1182
1160
|
name?: string | undefined;
|
|
1183
|
-
address?: string | null | undefined;
|
|
1184
1161
|
phone?: string | null | undefined;
|
|
1162
|
+
address?: string | null | undefined;
|
|
1185
1163
|
industry?: string | null | undefined;
|
|
1186
1164
|
customFields?: {
|
|
1187
1165
|
id: string;
|
|
@@ -1208,15 +1186,15 @@ export declare const companyContract: {
|
|
|
1208
1186
|
dateValue: Date | null;
|
|
1209
1187
|
}[] | undefined;
|
|
1210
1188
|
}>;
|
|
1211
|
-
}
|
|
1189
|
+
}, "strip", z.ZodTypeAny, {
|
|
1212
1190
|
data: {
|
|
1213
1191
|
id: string;
|
|
1214
1192
|
createdAt: Date;
|
|
1215
1193
|
updatedAt: Date;
|
|
1216
1194
|
deletedAt: Date | null;
|
|
1217
1195
|
name?: string | undefined;
|
|
1218
|
-
address?: string | null | undefined;
|
|
1219
1196
|
phone?: string | null | undefined;
|
|
1197
|
+
address?: string | null | undefined;
|
|
1220
1198
|
industry?: string | null | undefined;
|
|
1221
1199
|
customFields?: {
|
|
1222
1200
|
id: string;
|
|
@@ -1251,8 +1229,8 @@ export declare const companyContract: {
|
|
|
1251
1229
|
updatedAt: Date;
|
|
1252
1230
|
deletedAt: Date | null;
|
|
1253
1231
|
name?: string | undefined;
|
|
1254
|
-
address?: string | null | undefined;
|
|
1255
1232
|
phone?: string | null | undefined;
|
|
1233
|
+
address?: string | null | undefined;
|
|
1256
1234
|
industry?: string | null | undefined;
|
|
1257
1235
|
customFields?: {
|
|
1258
1236
|
id: string;
|
|
@@ -1333,6 +1311,7 @@ export declare const companyContract: {
|
|
|
1333
1311
|
error?: any;
|
|
1334
1312
|
}>;
|
|
1335
1313
|
};
|
|
1314
|
+
path: "cs/companies/:id";
|
|
1336
1315
|
};
|
|
1337
1316
|
getAll: {
|
|
1338
1317
|
summary: "Get all companies";
|
|
@@ -1352,77 +1331,72 @@ export declare const companyContract: {
|
|
|
1352
1331
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1353
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1354
1333
|
type: string;
|
|
1355
|
-
value: string | string[];
|
|
1334
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1356
1335
|
attributeId: string;
|
|
1357
1336
|
}, {
|
|
1358
1337
|
type: string;
|
|
1359
|
-
value: string | string[];
|
|
1338
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1360
1339
|
attributeId: string;
|
|
1361
1340
|
}>, "many">>;
|
|
1362
1341
|
}, "strip", z.ZodTypeAny, {
|
|
1363
|
-
name?: string | undefined;
|
|
1364
|
-
address?: string | undefined;
|
|
1365
1342
|
page?: number | undefined;
|
|
1366
1343
|
pageSize?: number | undefined;
|
|
1367
|
-
|
|
1344
|
+
keyword?: string | undefined;
|
|
1368
1345
|
industry?: string[] | undefined;
|
|
1346
|
+
name?: string | undefined;
|
|
1347
|
+
address?: string | undefined;
|
|
1348
|
+
phone?: string | undefined;
|
|
1349
|
+
selectedDate?: string | undefined;
|
|
1369
1350
|
customFields?: {
|
|
1370
1351
|
type: string;
|
|
1371
|
-
value: string | string[];
|
|
1352
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1372
1353
|
attributeId: string;
|
|
1373
1354
|
}[] | undefined;
|
|
1374
|
-
keyword?: string | undefined;
|
|
1375
|
-
selectedDate?: string | undefined;
|
|
1376
1355
|
}, {
|
|
1377
|
-
name?: string | undefined;
|
|
1378
|
-
address?: string | undefined;
|
|
1379
1356
|
page?: number | undefined;
|
|
1380
1357
|
pageSize?: number | undefined;
|
|
1381
|
-
|
|
1358
|
+
keyword?: string | undefined;
|
|
1382
1359
|
industry?: string[] | undefined;
|
|
1360
|
+
name?: string | undefined;
|
|
1361
|
+
address?: string | undefined;
|
|
1362
|
+
phone?: string | undefined;
|
|
1363
|
+
selectedDate?: string | undefined;
|
|
1383
1364
|
customFields?: {
|
|
1384
1365
|
type: string;
|
|
1385
|
-
value: string | string[];
|
|
1366
|
+
value: (string | string[]) & (string | string[] | undefined);
|
|
1386
1367
|
attributeId: string;
|
|
1387
1368
|
}[] | undefined;
|
|
1388
|
-
keyword?: string | undefined;
|
|
1389
|
-
selectedDate?: string | undefined;
|
|
1390
1369
|
}>;
|
|
1391
|
-
path: "cs/companies";
|
|
1392
1370
|
responses: {
|
|
1393
|
-
200: z.ZodObject<
|
|
1371
|
+
200: z.ZodObject<{
|
|
1394
1372
|
requestId: z.ZodString;
|
|
1395
|
-
}, {
|
|
1396
1373
|
page: z.ZodNumber;
|
|
1397
1374
|
pageSize: z.ZodNumber;
|
|
1398
1375
|
total: z.ZodNumber;
|
|
1399
1376
|
lastPage: z.ZodNumber;
|
|
1400
|
-
data: z.ZodArray<z.ZodObject<
|
|
1377
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1401
1378
|
id: z.ZodString;
|
|
1402
1379
|
createdAt: z.ZodDate;
|
|
1403
1380
|
updatedAt: z.ZodDate;
|
|
1404
1381
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1405
|
-
}, {
|
|
1406
1382
|
name: z.ZodOptional<z.ZodString>;
|
|
1407
1383
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1408
1384
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1409
1385
|
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1410
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
1386
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1411
1387
|
id: z.ZodString;
|
|
1412
1388
|
createdAt: z.ZodDate;
|
|
1413
1389
|
updatedAt: z.ZodDate;
|
|
1414
1390
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1415
|
-
}, {
|
|
1416
1391
|
textValue: z.ZodNullable<z.ZodString>;
|
|
1417
1392
|
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
|
1418
1393
|
numberValue: z.ZodNullable<z.ZodNumber>;
|
|
1419
1394
|
dateValue: z.ZodNullable<z.ZodDate>;
|
|
1420
|
-
attribute: z.ZodObject<Omit<
|
|
1395
|
+
attribute: z.ZodObject<Omit<{
|
|
1421
1396
|
id: z.ZodString;
|
|
1422
1397
|
createdAt: z.ZodDate;
|
|
1423
1398
|
updatedAt: z.ZodDate;
|
|
1424
1399
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1425
|
-
}, {
|
|
1426
1400
|
systemName: z.ZodString;
|
|
1427
1401
|
displayName: z.ZodString;
|
|
1428
1402
|
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
|
@@ -1431,14 +1405,13 @@ export declare const companyContract: {
|
|
|
1431
1405
|
isArchived: z.ZodBoolean;
|
|
1432
1406
|
isRequired: z.ZodBoolean;
|
|
1433
1407
|
isUnique: z.ZodBoolean;
|
|
1434
|
-
options: z.ZodArray<z.ZodObject<
|
|
1435
|
-
|
|
1408
|
+
options: z.ZodArray<z.ZodObject<{
|
|
1409
|
+
position: z.ZodNumber;
|
|
1436
1410
|
value: z.ZodString;
|
|
1411
|
+
label: z.ZodString;
|
|
1437
1412
|
isDefault: z.ZodBoolean;
|
|
1438
|
-
position: z.ZodNumber;
|
|
1439
|
-
}, {
|
|
1440
1413
|
id: z.ZodString;
|
|
1441
|
-
}
|
|
1414
|
+
}, "strip", z.ZodTypeAny, {
|
|
1442
1415
|
id: string;
|
|
1443
1416
|
position: number;
|
|
1444
1417
|
value: string;
|
|
@@ -1451,15 +1424,14 @@ export declare const companyContract: {
|
|
|
1451
1424
|
label: string;
|
|
1452
1425
|
isDefault: boolean;
|
|
1453
1426
|
}>, "many">;
|
|
1454
|
-
group: z.ZodObject<
|
|
1427
|
+
group: z.ZodObject<{
|
|
1455
1428
|
id: z.ZodString;
|
|
1456
1429
|
createdAt: z.ZodDate;
|
|
1457
1430
|
updatedAt: z.ZodDate;
|
|
1458
1431
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
1459
|
-
}, {
|
|
1460
1432
|
systemName: z.ZodString;
|
|
1461
1433
|
displayName: z.ZodString;
|
|
1462
|
-
}
|
|
1434
|
+
}, "strip", z.ZodTypeAny, {
|
|
1463
1435
|
id: string;
|
|
1464
1436
|
createdAt: Date;
|
|
1465
1437
|
updatedAt: Date;
|
|
@@ -1474,7 +1446,7 @@ export declare const companyContract: {
|
|
|
1474
1446
|
systemName: string;
|
|
1475
1447
|
displayName: string;
|
|
1476
1448
|
}>;
|
|
1477
|
-
}
|
|
1449
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
|
1478
1450
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
|
1479
1451
|
id: string;
|
|
1480
1452
|
position: number;
|
|
@@ -1501,7 +1473,7 @@ export declare const companyContract: {
|
|
|
1501
1473
|
isRequired: boolean;
|
|
1502
1474
|
isUnique: boolean;
|
|
1503
1475
|
}>;
|
|
1504
|
-
}
|
|
1476
|
+
}, "strip", z.ZodTypeAny, {
|
|
1505
1477
|
id: string;
|
|
1506
1478
|
createdAt: Date;
|
|
1507
1479
|
updatedAt: Date;
|
|
@@ -1548,14 +1520,14 @@ export declare const companyContract: {
|
|
|
1548
1520
|
numberValue: number | null;
|
|
1549
1521
|
dateValue: Date | null;
|
|
1550
1522
|
}>, "many">>;
|
|
1551
|
-
}
|
|
1523
|
+
}, "strip", z.ZodTypeAny, {
|
|
1552
1524
|
id: string;
|
|
1553
1525
|
createdAt: Date;
|
|
1554
1526
|
updatedAt: Date;
|
|
1555
1527
|
deletedAt: Date | null;
|
|
1556
1528
|
name?: string | undefined;
|
|
1557
|
-
address?: string | null | undefined;
|
|
1558
1529
|
phone?: string | null | undefined;
|
|
1530
|
+
address?: string | null | undefined;
|
|
1559
1531
|
industry?: string | null | undefined;
|
|
1560
1532
|
customFields?: {
|
|
1561
1533
|
id: string;
|
|
@@ -1587,8 +1559,8 @@ export declare const companyContract: {
|
|
|
1587
1559
|
updatedAt: Date;
|
|
1588
1560
|
deletedAt: Date | null;
|
|
1589
1561
|
name?: string | undefined;
|
|
1590
|
-
address?: string | null | undefined;
|
|
1591
1562
|
phone?: string | null | undefined;
|
|
1563
|
+
address?: string | null | undefined;
|
|
1592
1564
|
industry?: string | null | undefined;
|
|
1593
1565
|
customFields?: {
|
|
1594
1566
|
id: string;
|
|
@@ -1615,15 +1587,15 @@ export declare const companyContract: {
|
|
|
1615
1587
|
dateValue: Date | null;
|
|
1616
1588
|
}[] | undefined;
|
|
1617
1589
|
}>, "many">;
|
|
1618
|
-
}
|
|
1590
|
+
}, "strip", z.ZodTypeAny, {
|
|
1619
1591
|
data: {
|
|
1620
1592
|
id: string;
|
|
1621
1593
|
createdAt: Date;
|
|
1622
1594
|
updatedAt: Date;
|
|
1623
1595
|
deletedAt: Date | null;
|
|
1624
1596
|
name?: string | undefined;
|
|
1625
|
-
address?: string | null | undefined;
|
|
1626
1597
|
phone?: string | null | undefined;
|
|
1598
|
+
address?: string | null | undefined;
|
|
1627
1599
|
industry?: string | null | undefined;
|
|
1628
1600
|
customFields?: {
|
|
1629
1601
|
id: string;
|
|
@@ -1662,8 +1634,8 @@ export declare const companyContract: {
|
|
|
1662
1634
|
updatedAt: Date;
|
|
1663
1635
|
deletedAt: Date | null;
|
|
1664
1636
|
name?: string | undefined;
|
|
1665
|
-
address?: string | null | undefined;
|
|
1666
1637
|
phone?: string | null | undefined;
|
|
1638
|
+
address?: string | null | undefined;
|
|
1667
1639
|
industry?: string | null | undefined;
|
|
1668
1640
|
customFields?: {
|
|
1669
1641
|
id: string;
|
|
@@ -1748,6 +1720,7 @@ export declare const companyContract: {
|
|
|
1748
1720
|
error?: any;
|
|
1749
1721
|
}>;
|
|
1750
1722
|
};
|
|
1723
|
+
path: "cs/companies";
|
|
1751
1724
|
};
|
|
1752
1725
|
};
|
|
1753
1726
|
//# sourceMappingURL=index.d.ts.map
|