@kl1/contracts 1.4.19 → 1.4.20

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.
@@ -279201,6 +279201,301 @@ export declare const notificationContract: {
279201
279201
  };
279202
279202
  export declare const publicApiContract: {
279203
279203
  publicApi: {
279204
+ sendLineMessage: {
279205
+ body: import("zod").ZodObject<{
279206
+ channelId: import("zod").ZodString;
279207
+ message: import("zod").ZodString;
279208
+ contactId: import("zod").ZodString;
279209
+ }, "strip", import("zod").ZodTypeAny, {
279210
+ message: string;
279211
+ channelId: string;
279212
+ contactId: string;
279213
+ }, {
279214
+ message: string;
279215
+ channelId: string;
279216
+ contactId: string;
279217
+ }>;
279218
+ summary: "Send line message";
279219
+ method: "POST";
279220
+ responses: {
279221
+ 201: import("zod").ZodObject<{
279222
+ status: import("zod").ZodString;
279223
+ channel: import("zod").ZodString;
279224
+ message: import("zod").ZodString;
279225
+ requestId: import("zod").ZodString;
279226
+ }, "strip", import("zod").ZodTypeAny, {
279227
+ message: string;
279228
+ channel: string;
279229
+ status: string;
279230
+ requestId: string;
279231
+ }, {
279232
+ message: string;
279233
+ channel: string;
279234
+ status: string;
279235
+ requestId: string;
279236
+ }>;
279237
+ 400: import("zod").ZodObject<{
279238
+ message: import("zod").ZodString;
279239
+ }, "strip", import("zod").ZodTypeAny, {
279240
+ message: string;
279241
+ }, {
279242
+ message: string;
279243
+ }>;
279244
+ 409: import("zod").ZodObject<{
279245
+ message: import("zod").ZodString;
279246
+ }, "strip", import("zod").ZodTypeAny, {
279247
+ message: string;
279248
+ }, {
279249
+ message: string;
279250
+ }>;
279251
+ 401: import("zod").ZodObject<{
279252
+ message: import("zod").ZodString;
279253
+ error: import("zod").ZodAny;
279254
+ }, "strip", import("zod").ZodTypeAny, {
279255
+ message: string;
279256
+ error?: any;
279257
+ }, {
279258
+ message: string;
279259
+ error?: any;
279260
+ }>;
279261
+ 404: import("zod").ZodObject<{
279262
+ message: import("zod").ZodString;
279263
+ error: import("zod").ZodAny;
279264
+ }, "strip", import("zod").ZodTypeAny, {
279265
+ message: string;
279266
+ error?: any;
279267
+ }, {
279268
+ message: string;
279269
+ error?: any;
279270
+ }>;
279271
+ 422: import("zod").ZodObject<{
279272
+ message: import("zod").ZodString;
279273
+ error: import("zod").ZodAny;
279274
+ }, "strip", import("zod").ZodTypeAny, {
279275
+ message: string;
279276
+ error?: any;
279277
+ }, {
279278
+ message: string;
279279
+ error?: any;
279280
+ }>;
279281
+ 500: import("zod").ZodObject<{
279282
+ message: import("zod").ZodString;
279283
+ error: import("zod").ZodAny;
279284
+ }, "strip", import("zod").ZodTypeAny, {
279285
+ message: string;
279286
+ error?: any;
279287
+ }, {
279288
+ message: string;
279289
+ error?: any;
279290
+ }>;
279291
+ };
279292
+ path: "api/v1/message/line/send";
279293
+ };
279294
+ getAllTags: {
279295
+ method: "GET";
279296
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
279297
+ group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>>>;
279298
+ keyword: import("zod").ZodOptional<import("zod").ZodString>;
279299
+ }, "strip", import("zod").ZodTypeAny, {
279300
+ group?: "general" | "contact" | undefined;
279301
+ keyword?: string | undefined;
279302
+ }, {
279303
+ group?: "general" | "contact" | undefined;
279304
+ keyword?: string | undefined;
279305
+ }>>;
279306
+ responses: {
279307
+ 200: import("zod").ZodObject<{
279308
+ requestId: import("zod").ZodString;
279309
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
279310
+ id: import("zod").ZodString;
279311
+ createdAt: import("zod").ZodDate;
279312
+ updatedAt: import("zod").ZodDate;
279313
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279314
+ name: import("zod").ZodString;
279315
+ }, "strip", import("zod").ZodTypeAny, {
279316
+ name: string;
279317
+ id: string;
279318
+ createdAt: Date;
279319
+ updatedAt: Date;
279320
+ deletedAt: Date | null;
279321
+ }, {
279322
+ name: string;
279323
+ id: string;
279324
+ createdAt: Date;
279325
+ updatedAt: Date;
279326
+ deletedAt: Date | null;
279327
+ }>, "many">;
279328
+ }, "strip", import("zod").ZodTypeAny, {
279329
+ requestId: string;
279330
+ tags: {
279331
+ name: string;
279332
+ id: string;
279333
+ createdAt: Date;
279334
+ updatedAt: Date;
279335
+ deletedAt: Date | null;
279336
+ }[];
279337
+ }, {
279338
+ requestId: string;
279339
+ tags: {
279340
+ name: string;
279341
+ id: string;
279342
+ createdAt: Date;
279343
+ updatedAt: Date;
279344
+ deletedAt: Date | null;
279345
+ }[];
279346
+ }>;
279347
+ 400: import("zod").ZodObject<{
279348
+ message: import("zod").ZodString;
279349
+ }, "strip", import("zod").ZodTypeAny, {
279350
+ message: string;
279351
+ }, {
279352
+ message: string;
279353
+ }>;
279354
+ 409: import("zod").ZodObject<{
279355
+ message: import("zod").ZodString;
279356
+ }, "strip", import("zod").ZodTypeAny, {
279357
+ message: string;
279358
+ }, {
279359
+ message: string;
279360
+ }>;
279361
+ 401: import("zod").ZodObject<{
279362
+ message: import("zod").ZodString;
279363
+ error: import("zod").ZodAny;
279364
+ }, "strip", import("zod").ZodTypeAny, {
279365
+ message: string;
279366
+ error?: any;
279367
+ }, {
279368
+ message: string;
279369
+ error?: any;
279370
+ }>;
279371
+ 404: import("zod").ZodObject<{
279372
+ message: import("zod").ZodString;
279373
+ error: import("zod").ZodAny;
279374
+ }, "strip", import("zod").ZodTypeAny, {
279375
+ message: string;
279376
+ error?: any;
279377
+ }, {
279378
+ message: string;
279379
+ error?: any;
279380
+ }>;
279381
+ 422: import("zod").ZodObject<{
279382
+ message: import("zod").ZodString;
279383
+ error: import("zod").ZodAny;
279384
+ }, "strip", import("zod").ZodTypeAny, {
279385
+ message: string;
279386
+ error?: any;
279387
+ }, {
279388
+ message: string;
279389
+ error?: any;
279390
+ }>;
279391
+ 500: import("zod").ZodObject<{
279392
+ message: import("zod").ZodString;
279393
+ error: import("zod").ZodAny;
279394
+ }, "strip", import("zod").ZodTypeAny, {
279395
+ message: string;
279396
+ error?: any;
279397
+ }, {
279398
+ message: string;
279399
+ error?: any;
279400
+ }>;
279401
+ };
279402
+ path: "api/v1/tags";
279403
+ };
279404
+ getAllChannel: {
279405
+ method: "GET";
279406
+ query: import("zod").ZodObject<{
279407
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
279408
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
279409
+ keyword: import("zod").ZodOptional<import("zod").ZodString>;
279410
+ }, "strip", import("zod").ZodTypeAny, {
279411
+ page: number;
279412
+ pageSize: number;
279413
+ keyword?: string | undefined;
279414
+ }, {
279415
+ page?: number | undefined;
279416
+ pageSize?: number | undefined;
279417
+ keyword?: string | undefined;
279418
+ }>;
279419
+ responses: {
279420
+ 200: import("zod").ZodObject<{
279421
+ requestId: import("zod").ZodString;
279422
+ page: import("zod").ZodNumber;
279423
+ pageSize: import("zod").ZodNumber;
279424
+ total: import("zod").ZodNumber;
279425
+ lastPage: import("zod").ZodNumber;
279426
+ data: import("zod").ZodAny;
279427
+ }, "strip", import("zod").ZodTypeAny, {
279428
+ total: number;
279429
+ page: number;
279430
+ pageSize: number;
279431
+ lastPage: number;
279432
+ requestId: string;
279433
+ data?: any;
279434
+ }, {
279435
+ total: number;
279436
+ page: number;
279437
+ pageSize: number;
279438
+ lastPage: number;
279439
+ requestId: string;
279440
+ data?: any;
279441
+ }>;
279442
+ 400: import("zod").ZodObject<{
279443
+ message: import("zod").ZodString;
279444
+ }, "strip", import("zod").ZodTypeAny, {
279445
+ message: string;
279446
+ }, {
279447
+ message: string;
279448
+ }>;
279449
+ 409: import("zod").ZodObject<{
279450
+ message: import("zod").ZodString;
279451
+ }, "strip", import("zod").ZodTypeAny, {
279452
+ message: string;
279453
+ }, {
279454
+ message: string;
279455
+ }>;
279456
+ 401: import("zod").ZodObject<{
279457
+ message: import("zod").ZodString;
279458
+ error: import("zod").ZodAny;
279459
+ }, "strip", import("zod").ZodTypeAny, {
279460
+ message: string;
279461
+ error?: any;
279462
+ }, {
279463
+ message: string;
279464
+ error?: any;
279465
+ }>;
279466
+ 404: import("zod").ZodObject<{
279467
+ message: import("zod").ZodString;
279468
+ error: import("zod").ZodAny;
279469
+ }, "strip", import("zod").ZodTypeAny, {
279470
+ message: string;
279471
+ error?: any;
279472
+ }, {
279473
+ message: string;
279474
+ error?: any;
279475
+ }>;
279476
+ 422: import("zod").ZodObject<{
279477
+ message: import("zod").ZodString;
279478
+ error: import("zod").ZodAny;
279479
+ }, "strip", import("zod").ZodTypeAny, {
279480
+ message: string;
279481
+ error?: any;
279482
+ }, {
279483
+ message: string;
279484
+ error?: any;
279485
+ }>;
279486
+ 500: import("zod").ZodObject<{
279487
+ message: import("zod").ZodString;
279488
+ error: import("zod").ZodAny;
279489
+ }, "strip", import("zod").ZodTypeAny, {
279490
+ message: string;
279491
+ error?: any;
279492
+ }, {
279493
+ message: string;
279494
+ error?: any;
279495
+ }>;
279496
+ };
279497
+ path: "api/v1/channels";
279498
+ };
279204
279499
  createContact: {
279205
279500
  body: import("zod").ZodObject<{
279206
279501
  name: import("zod").ZodString;
@@ -280058,306 +280353,101 @@ export declare const publicApiContract: {
280058
280353
  data: {
280059
280354
  name: string;
280060
280355
  id: string;
280061
- channel: string | null;
280062
- address: string | null;
280063
- createdAt: Date;
280064
- updatedAt: Date;
280065
- deletedAt: Date | null;
280066
- customFields: {
280067
- id: string;
280068
- createdAt: Date;
280069
- updatedAt: Date;
280070
- deletedAt: Date | null;
280071
- attribute: {
280072
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280073
- id: string;
280074
- position: number;
280075
- createdAt: Date;
280076
- updatedAt: Date;
280077
- deletedAt: Date | null;
280078
- systemName: string;
280079
- displayName: string;
280080
- isDefault: boolean;
280081
- isArchived: boolean;
280082
- isRequired: boolean;
280083
- isUnique: boolean;
280084
- };
280085
- textValue: string | null;
280086
- booleanValue: boolean | null;
280087
- numberValue: number | null;
280088
- dateValue: Date | null;
280089
- uploads: {
280090
- id: string;
280091
- status: string | null;
280092
- createdAt: Date;
280093
- updatedAt: Date;
280094
- deletedAt: Date | null;
280095
- fileName: string;
280096
- fileKey: string;
280097
- bucketName: string;
280098
- fileSize: number;
280099
- fileUrl: string | null;
280100
- }[];
280101
- }[];
280102
- company: {
280103
- id: string;
280104
- createdAt: Date;
280105
- updatedAt: Date;
280106
- deletedAt: Date | null;
280107
- name?: string | undefined;
280108
- address?: string | null | undefined;
280109
- phone?: string | null | undefined;
280110
- industry?: string | null | undefined;
280111
- } | null;
280112
- notes: string | null;
280113
- contactProfile: string | null;
280114
- socialProfileUrl: string | null;
280115
- tags: {
280116
- name: string;
280117
- id: string;
280118
- createdAt: Date;
280119
- updatedAt: Date;
280120
- deletedAt: Date | null;
280121
- }[];
280122
- contactEmails: {
280123
- id: string;
280124
- isPrimary: boolean;
280125
- email: string;
280126
- createdAt: Date;
280127
- updatedAt: Date;
280128
- deletedAt: Date | null;
280129
- }[];
280130
- contactPhones: {
280131
- id: string;
280132
- isPrimary: boolean;
280133
- createdAt: Date;
280134
- updatedAt: Date;
280135
- deletedAt: Date | null;
280136
- phone: string;
280137
- }[];
280138
- activityLogs?: {
280139
- id: string;
280140
- description: string;
280141
- createdAt: Date;
280142
- updatedAt: Date;
280143
- deletedAt: Date | null;
280144
- entityId: string;
280145
- entityType: {
280146
- id: string;
280147
- description: string | null;
280148
- createdAt: Date;
280149
- updatedAt: Date;
280150
- deletedAt: Date | null;
280151
- entity: string;
280152
- };
280153
- }[] | undefined;
280154
- };
280155
- requestId: string;
280156
- }>;
280157
- 400: import("zod").ZodObject<{
280158
- message: import("zod").ZodString;
280159
- }, "strip", import("zod").ZodTypeAny, {
280160
- message: string;
280161
- }, {
280162
- message: string;
280163
- }>;
280164
- 409: import("zod").ZodObject<{
280165
- message: import("zod").ZodString;
280166
- }, "strip", import("zod").ZodTypeAny, {
280167
- message: string;
280168
- }, {
280169
- message: string;
280170
- }>;
280171
- 401: import("zod").ZodObject<{
280172
- message: import("zod").ZodString;
280173
- error: import("zod").ZodAny;
280174
- }, "strip", import("zod").ZodTypeAny, {
280175
- message: string;
280176
- error?: any;
280177
- }, {
280178
- message: string;
280179
- error?: any;
280180
- }>;
280181
- 404: import("zod").ZodObject<{
280182
- message: import("zod").ZodString;
280183
- error: import("zod").ZodAny;
280184
- }, "strip", import("zod").ZodTypeAny, {
280185
- message: string;
280186
- error?: any;
280187
- }, {
280188
- message: string;
280189
- error?: any;
280190
- }>;
280191
- 422: import("zod").ZodObject<{
280192
- message: import("zod").ZodString;
280193
- error: import("zod").ZodAny;
280194
- }, "strip", import("zod").ZodTypeAny, {
280195
- message: string;
280196
- error?: any;
280197
- }, {
280198
- message: string;
280199
- error?: any;
280200
- }>;
280201
- 500: import("zod").ZodObject<{
280202
- message: import("zod").ZodString;
280203
- error: import("zod").ZodAny;
280204
- }, "strip", import("zod").ZodTypeAny, {
280205
- message: string;
280206
- error?: any;
280207
- }, {
280208
- message: string;
280209
- error?: any;
280210
- }>;
280211
- };
280212
- path: "api/v1/contacts";
280213
- };
280214
- getAllTags: {
280215
- method: "GET";
280216
- query: import("zod").ZodOptional<import("zod").ZodObject<{
280217
- group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>>>;
280218
- keyword: import("zod").ZodOptional<import("zod").ZodString>;
280219
- }, "strip", import("zod").ZodTypeAny, {
280220
- group?: "general" | "contact" | undefined;
280221
- keyword?: string | undefined;
280222
- }, {
280223
- group?: "general" | "contact" | undefined;
280224
- keyword?: string | undefined;
280225
- }>>;
280226
- responses: {
280227
- 200: import("zod").ZodObject<{
280228
- requestId: import("zod").ZodString;
280229
- tags: import("zod").ZodArray<import("zod").ZodObject<{
280230
- id: import("zod").ZodString;
280231
- createdAt: import("zod").ZodDate;
280232
- updatedAt: import("zod").ZodDate;
280233
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
280234
- name: import("zod").ZodString;
280235
- }, "strip", import("zod").ZodTypeAny, {
280236
- name: string;
280237
- id: string;
280238
- createdAt: Date;
280239
- updatedAt: Date;
280240
- deletedAt: Date | null;
280241
- }, {
280242
- name: string;
280243
- id: string;
280244
- createdAt: Date;
280245
- updatedAt: Date;
280246
- deletedAt: Date | null;
280247
- }>, "many">;
280248
- }, "strip", import("zod").ZodTypeAny, {
280249
- requestId: string;
280250
- tags: {
280251
- name: string;
280252
- id: string;
280253
- createdAt: Date;
280254
- updatedAt: Date;
280255
- deletedAt: Date | null;
280256
- }[];
280257
- }, {
280258
- requestId: string;
280259
- tags: {
280260
- name: string;
280261
- id: string;
280356
+ channel: string | null;
280357
+ address: string | null;
280262
280358
  createdAt: Date;
280263
280359
  updatedAt: Date;
280264
280360
  deletedAt: Date | null;
280265
- }[];
280266
- }>;
280267
- 400: import("zod").ZodObject<{
280268
- message: import("zod").ZodString;
280269
- }, "strip", import("zod").ZodTypeAny, {
280270
- message: string;
280271
- }, {
280272
- message: string;
280273
- }>;
280274
- 409: import("zod").ZodObject<{
280275
- message: import("zod").ZodString;
280276
- }, "strip", import("zod").ZodTypeAny, {
280277
- message: string;
280278
- }, {
280279
- message: string;
280280
- }>;
280281
- 401: import("zod").ZodObject<{
280282
- message: import("zod").ZodString;
280283
- error: import("zod").ZodAny;
280284
- }, "strip", import("zod").ZodTypeAny, {
280285
- message: string;
280286
- error?: any;
280287
- }, {
280288
- message: string;
280289
- error?: any;
280290
- }>;
280291
- 404: import("zod").ZodObject<{
280292
- message: import("zod").ZodString;
280293
- error: import("zod").ZodAny;
280294
- }, "strip", import("zod").ZodTypeAny, {
280295
- message: string;
280296
- error?: any;
280297
- }, {
280298
- message: string;
280299
- error?: any;
280300
- }>;
280301
- 422: import("zod").ZodObject<{
280302
- message: import("zod").ZodString;
280303
- error: import("zod").ZodAny;
280304
- }, "strip", import("zod").ZodTypeAny, {
280305
- message: string;
280306
- error?: any;
280307
- }, {
280308
- message: string;
280309
- error?: any;
280310
- }>;
280311
- 500: import("zod").ZodObject<{
280312
- message: import("zod").ZodString;
280313
- error: import("zod").ZodAny;
280314
- }, "strip", import("zod").ZodTypeAny, {
280315
- message: string;
280316
- error?: any;
280317
- }, {
280318
- message: string;
280319
- error?: any;
280320
- }>;
280321
- };
280322
- path: "api/v1/tags";
280323
- };
280324
- getAllChannel: {
280325
- method: "GET";
280326
- query: import("zod").ZodObject<{
280327
- page: import("zod").ZodDefault<import("zod").ZodNumber>;
280328
- pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
280329
- keyword: import("zod").ZodOptional<import("zod").ZodString>;
280330
- }, "strip", import("zod").ZodTypeAny, {
280331
- page: number;
280332
- pageSize: number;
280333
- keyword?: string | undefined;
280334
- }, {
280335
- page?: number | undefined;
280336
- pageSize?: number | undefined;
280337
- keyword?: string | undefined;
280338
- }>;
280339
- responses: {
280340
- 200: import("zod").ZodObject<{
280341
- requestId: import("zod").ZodString;
280342
- page: import("zod").ZodNumber;
280343
- pageSize: import("zod").ZodNumber;
280344
- total: import("zod").ZodNumber;
280345
- lastPage: import("zod").ZodNumber;
280346
- data: import("zod").ZodAny;
280347
- }, "strip", import("zod").ZodTypeAny, {
280348
- total: number;
280349
- page: number;
280350
- pageSize: number;
280351
- lastPage: number;
280352
- requestId: string;
280353
- data?: any;
280354
- }, {
280355
- total: number;
280356
- page: number;
280357
- pageSize: number;
280358
- lastPage: number;
280361
+ customFields: {
280362
+ id: string;
280363
+ createdAt: Date;
280364
+ updatedAt: Date;
280365
+ deletedAt: Date | null;
280366
+ attribute: {
280367
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280368
+ id: string;
280369
+ position: number;
280370
+ createdAt: Date;
280371
+ updatedAt: Date;
280372
+ deletedAt: Date | null;
280373
+ systemName: string;
280374
+ displayName: string;
280375
+ isDefault: boolean;
280376
+ isArchived: boolean;
280377
+ isRequired: boolean;
280378
+ isUnique: boolean;
280379
+ };
280380
+ textValue: string | null;
280381
+ booleanValue: boolean | null;
280382
+ numberValue: number | null;
280383
+ dateValue: Date | null;
280384
+ uploads: {
280385
+ id: string;
280386
+ status: string | null;
280387
+ createdAt: Date;
280388
+ updatedAt: Date;
280389
+ deletedAt: Date | null;
280390
+ fileName: string;
280391
+ fileKey: string;
280392
+ bucketName: string;
280393
+ fileSize: number;
280394
+ fileUrl: string | null;
280395
+ }[];
280396
+ }[];
280397
+ company: {
280398
+ id: string;
280399
+ createdAt: Date;
280400
+ updatedAt: Date;
280401
+ deletedAt: Date | null;
280402
+ name?: string | undefined;
280403
+ address?: string | null | undefined;
280404
+ phone?: string | null | undefined;
280405
+ industry?: string | null | undefined;
280406
+ } | null;
280407
+ notes: string | null;
280408
+ contactProfile: string | null;
280409
+ socialProfileUrl: string | null;
280410
+ tags: {
280411
+ name: string;
280412
+ id: string;
280413
+ createdAt: Date;
280414
+ updatedAt: Date;
280415
+ deletedAt: Date | null;
280416
+ }[];
280417
+ contactEmails: {
280418
+ id: string;
280419
+ isPrimary: boolean;
280420
+ email: string;
280421
+ createdAt: Date;
280422
+ updatedAt: Date;
280423
+ deletedAt: Date | null;
280424
+ }[];
280425
+ contactPhones: {
280426
+ id: string;
280427
+ isPrimary: boolean;
280428
+ createdAt: Date;
280429
+ updatedAt: Date;
280430
+ deletedAt: Date | null;
280431
+ phone: string;
280432
+ }[];
280433
+ activityLogs?: {
280434
+ id: string;
280435
+ description: string;
280436
+ createdAt: Date;
280437
+ updatedAt: Date;
280438
+ deletedAt: Date | null;
280439
+ entityId: string;
280440
+ entityType: {
280441
+ id: string;
280442
+ description: string | null;
280443
+ createdAt: Date;
280444
+ updatedAt: Date;
280445
+ deletedAt: Date | null;
280446
+ entity: string;
280447
+ };
280448
+ }[] | undefined;
280449
+ };
280359
280450
  requestId: string;
280360
- data?: any;
280361
280451
  }>;
280362
280452
  400: import("zod").ZodObject<{
280363
280453
  message: import("zod").ZodString;
@@ -280414,7 +280504,7 @@ export declare const publicApiContract: {
280414
280504
  error?: any;
280415
280505
  }>;
280416
280506
  };
280417
- path: "api/v1/channels";
280507
+ path: "api/v1/contacts";
280418
280508
  };
280419
280509
  getAllContact: {
280420
280510
  summary: "Get all contacts";
@@ -281445,10 +281535,13 @@ export declare const publicApiContract: {
281445
281535
  method: "GET";
281446
281536
  query: import("zod").ZodObject<{
281447
281537
  socialPlatformId: import("zod").ZodString;
281538
+ channelType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"whatsapp">, import("zod").ZodLiteral<"messenger">, import("zod").ZodLiteral<"telegram">, import("zod").ZodLiteral<"instagram">, import("zod").ZodLiteral<"line">, import("zod").ZodLiteral<"viber">, import("zod").ZodLiteral<"kakao">, import("zod").ZodLiteral<"shopee">, import("zod").ZodLiteral<"lazada">, import("zod").ZodLiteral<"webchat">, import("zod").ZodLiteral<"facebook_feed">, import("zod").ZodLiteral<"sms_vonage">]>>;
281448
281539
  }, "strip", import("zod").ZodTypeAny, {
281449
281540
  socialPlatformId: string;
281541
+ channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
281450
281542
  }, {
281451
281543
  socialPlatformId: string;
281544
+ channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
281452
281545
  }>;
281453
281546
  responses: {
281454
281547
  200: import("zod").ZodObject<{
@@ -282755,74 +282848,13 @@ export declare const publicApiContract: {
282755
282848
  }, {
282756
282849
  message: string;
282757
282850
  error?: any;
282758
- }>;
282759
- };
282760
- path: "api/v1/contacts/fields";
282761
- };
282762
- updateContact: {
282763
- body: import("zod").ZodObject<{
282764
- name: import("zod").ZodOptional<import("zod").ZodString>;
282765
- email: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
282766
- email: import("zod").ZodString;
282767
- isPrimary: import("zod").ZodBoolean;
282768
- }, "strip", import("zod").ZodTypeAny, {
282769
- isPrimary: boolean;
282770
- email: string;
282771
- }, {
282772
- isPrimary: boolean;
282773
- email: string;
282774
- }>, "many">>>;
282775
- channel: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
282776
- address: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
282777
- phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
282778
- phone: import("zod").ZodString;
282779
- isPrimary: import("zod").ZodBoolean;
282780
- }, "strip", import("zod").ZodTypeAny, {
282781
- isPrimary: boolean;
282782
- phone: string;
282783
- }, {
282784
- isPrimary: boolean;
282785
- phone: string;
282786
- }>, "many">>>;
282787
- notes: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
282788
- tags: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
282789
- company: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
282790
- customFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
282791
- }, "strip", import("zod").ZodTypeAny, {
282792
- name?: string | undefined;
282793
- email?: {
282794
- isPrimary: boolean;
282795
- email: string;
282796
- }[] | undefined;
282797
- channel?: string | undefined;
282798
- address?: string | undefined;
282799
- phone?: {
282800
- isPrimary: boolean;
282801
- phone: string;
282802
- }[] | undefined;
282803
- notes?: string | undefined;
282804
- tags?: string[] | undefined;
282805
- company?: string | undefined;
282806
- customFields?: Record<string, string> | undefined;
282807
- }, {
282808
- name?: string | undefined;
282809
- email?: {
282810
- isPrimary: boolean;
282811
- email: string;
282812
- }[] | undefined;
282813
- channel?: string | undefined;
282814
- address?: string | undefined;
282815
- phone?: {
282816
- isPrimary: boolean;
282817
- phone: string;
282818
- }[] | undefined;
282819
- notes?: string | undefined;
282820
- tags?: string[] | undefined;
282821
- company?: string | undefined;
282822
- customFields?: Record<string, string> | undefined;
282823
- }>;
282824
- summary: "Update a contact";
282825
- method: "PATCH";
282851
+ }>;
282852
+ };
282853
+ path: "api/v1/contacts/fields";
282854
+ };
282855
+ getContactById: {
282856
+ summary: "Get a contact by id";
282857
+ method: "GET";
282826
282858
  pathParams: import("zod").ZodObject<{
282827
282859
  id: import("zod").ZodString;
282828
282860
  }, "strip", import("zod").ZodTypeAny, {
@@ -283238,273 +283270,66 @@ export declare const publicApiContract: {
283238
283270
  createdAt: Date;
283239
283271
  updatedAt: Date;
283240
283272
  deletedAt: Date | null;
283241
- }, {
283242
- id: string;
283243
- isPrimary: boolean;
283244
- email: string;
283245
- createdAt: Date;
283246
- updatedAt: Date;
283247
- deletedAt: Date | null;
283248
- }>, "many">;
283249
- contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
283250
- id: import("zod").ZodString;
283251
- createdAt: import("zod").ZodDate;
283252
- updatedAt: import("zod").ZodDate;
283253
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283254
- phone: import("zod").ZodString;
283255
- isPrimary: import("zod").ZodBoolean;
283256
- }, "strip", import("zod").ZodTypeAny, {
283257
- id: string;
283258
- isPrimary: boolean;
283259
- createdAt: Date;
283260
- updatedAt: Date;
283261
- deletedAt: Date | null;
283262
- phone: string;
283263
- }, {
283264
- id: string;
283265
- isPrimary: boolean;
283266
- createdAt: Date;
283267
- updatedAt: Date;
283268
- deletedAt: Date | null;
283269
- phone: string;
283270
- }>, "many">;
283271
- activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283272
- id: import("zod").ZodString;
283273
- createdAt: import("zod").ZodDate;
283274
- updatedAt: import("zod").ZodDate;
283275
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283276
- entityId: import("zod").ZodString;
283277
- description: import("zod").ZodString;
283278
- entityType: import("zod").ZodObject<{
283279
- id: import("zod").ZodString;
283280
- createdAt: import("zod").ZodDate;
283281
- updatedAt: import("zod").ZodDate;
283282
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283283
- entity: import("zod").ZodString;
283284
- description: import("zod").ZodNullable<import("zod").ZodString>;
283285
- }, "strip", import("zod").ZodTypeAny, {
283286
- id: string;
283287
- description: string | null;
283288
- createdAt: Date;
283289
- updatedAt: Date;
283290
- deletedAt: Date | null;
283291
- entity: string;
283292
- }, {
283293
- id: string;
283294
- description: string | null;
283295
- createdAt: Date;
283296
- updatedAt: Date;
283297
- deletedAt: Date | null;
283298
- entity: string;
283299
- }>;
283300
- }, "strip", import("zod").ZodTypeAny, {
283301
- id: string;
283302
- description: string;
283303
- createdAt: Date;
283304
- updatedAt: Date;
283305
- deletedAt: Date | null;
283306
- entityId: string;
283307
- entityType: {
283308
- id: string;
283309
- description: string | null;
283310
- createdAt: Date;
283311
- updatedAt: Date;
283312
- deletedAt: Date | null;
283313
- entity: string;
283314
- };
283315
- }, {
283316
- id: string;
283317
- description: string;
283318
- createdAt: Date;
283319
- updatedAt: Date;
283320
- deletedAt: Date | null;
283321
- entityId: string;
283322
- entityType: {
283323
- id: string;
283324
- description: string | null;
283325
- createdAt: Date;
283326
- updatedAt: Date;
283327
- deletedAt: Date | null;
283328
- entity: string;
283329
- };
283330
- }>, "many">>;
283331
- }, "strip", import("zod").ZodTypeAny, {
283332
- name: string;
283333
- id: string;
283334
- channel: string | null;
283335
- address: string | null;
283336
- createdAt: Date;
283337
- updatedAt: Date;
283338
- deletedAt: Date | null;
283339
- customFields: {
283340
- id: string;
283341
- createdAt: Date;
283342
- updatedAt: Date;
283343
- deletedAt: Date | null;
283344
- attribute: {
283345
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283346
- id: string;
283347
- position: number;
283348
- createdAt: Date;
283349
- updatedAt: Date;
283350
- deletedAt: Date | null;
283351
- systemName: string;
283352
- displayName: string;
283353
- isDefault: boolean;
283354
- isArchived: boolean;
283355
- isRequired: boolean;
283356
- isUnique: boolean;
283357
- };
283358
- textValue: string | null;
283359
- booleanValue: boolean | null;
283360
- numberValue: number | null;
283361
- dateValue: Date | null;
283362
- uploads: {
283363
- id: string;
283364
- status: string | null;
283365
- createdAt: Date;
283366
- updatedAt: Date;
283367
- deletedAt: Date | null;
283368
- fileName: string;
283369
- fileKey: string;
283370
- bucketName: string;
283371
- fileSize: number;
283372
- fileUrl: string | null;
283373
- }[];
283374
- }[];
283375
- company: {
283376
- id: string;
283377
- createdAt: Date;
283378
- updatedAt: Date;
283379
- deletedAt: Date | null;
283380
- name?: string | undefined;
283381
- address?: string | null | undefined;
283382
- phone?: string | null | undefined;
283383
- industry?: string | null | undefined;
283384
- } | null;
283385
- notes: string | null;
283386
- contactProfile: string | null;
283387
- socialProfileUrl: string | null;
283388
- tags: {
283389
- name: string;
283390
- id: string;
283391
- createdAt: Date;
283392
- updatedAt: Date;
283393
- deletedAt: Date | null;
283394
- }[];
283395
- contactEmails: {
283396
- id: string;
283397
- isPrimary: boolean;
283398
- email: string;
283399
- createdAt: Date;
283400
- updatedAt: Date;
283401
- deletedAt: Date | null;
283402
- }[];
283403
- contactPhones: {
283404
- id: string;
283405
- isPrimary: boolean;
283406
- createdAt: Date;
283407
- updatedAt: Date;
283408
- deletedAt: Date | null;
283409
- phone: string;
283410
- }[];
283411
- activityLogs?: {
283412
- id: string;
283413
- description: string;
283414
- createdAt: Date;
283415
- updatedAt: Date;
283416
- deletedAt: Date | null;
283417
- entityId: string;
283418
- entityType: {
283419
- id: string;
283420
- description: string | null;
283421
- createdAt: Date;
283422
- updatedAt: Date;
283423
- deletedAt: Date | null;
283424
- entity: string;
283425
- };
283426
- }[] | undefined;
283427
- }, {
283428
- name: string;
283429
- id: string;
283430
- channel: string | null;
283431
- address: string | null;
283432
- createdAt: Date;
283433
- updatedAt: Date;
283434
- deletedAt: Date | null;
283435
- customFields: {
283436
- id: string;
283437
- createdAt: Date;
283438
- updatedAt: Date;
283439
- deletedAt: Date | null;
283440
- attribute: {
283441
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283442
- id: string;
283443
- position: number;
283444
- createdAt: Date;
283445
- updatedAt: Date;
283446
- deletedAt: Date | null;
283447
- systemName: string;
283448
- displayName: string;
283449
- isDefault: boolean;
283450
- isArchived: boolean;
283451
- isRequired: boolean;
283452
- isUnique: boolean;
283453
- };
283454
- textValue: string | null;
283455
- booleanValue: boolean | null;
283456
- numberValue: number | null;
283457
- dateValue: Date | null;
283458
- uploads: {
283459
- id: string;
283460
- status: string | null;
283461
- createdAt: Date;
283462
- updatedAt: Date;
283463
- deletedAt: Date | null;
283464
- fileName: string;
283465
- fileKey: string;
283466
- bucketName: string;
283467
- fileSize: number;
283468
- fileUrl: string | null;
283469
- }[];
283470
- }[];
283471
- company: {
283472
- id: string;
283473
- createdAt: Date;
283474
- updatedAt: Date;
283475
- deletedAt: Date | null;
283476
- name?: string | undefined;
283477
- address?: string | null | undefined;
283478
- phone?: string | null | undefined;
283479
- industry?: string | null | undefined;
283480
- } | null;
283481
- notes: string | null;
283482
- contactProfile: string | null;
283483
- socialProfileUrl: string | null;
283484
- tags: {
283485
- name: string;
283486
- id: string;
283487
- createdAt: Date;
283488
- updatedAt: Date;
283489
- deletedAt: Date | null;
283490
- }[];
283491
- contactEmails: {
283273
+ }, {
283492
283274
  id: string;
283493
283275
  isPrimary: boolean;
283494
283276
  email: string;
283495
283277
  createdAt: Date;
283496
283278
  updatedAt: Date;
283497
283279
  deletedAt: Date | null;
283498
- }[];
283499
- contactPhones: {
283280
+ }>, "many">;
283281
+ contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
283282
+ id: import("zod").ZodString;
283283
+ createdAt: import("zod").ZodDate;
283284
+ updatedAt: import("zod").ZodDate;
283285
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283286
+ phone: import("zod").ZodString;
283287
+ isPrimary: import("zod").ZodBoolean;
283288
+ }, "strip", import("zod").ZodTypeAny, {
283500
283289
  id: string;
283501
283290
  isPrimary: boolean;
283502
283291
  createdAt: Date;
283503
283292
  updatedAt: Date;
283504
283293
  deletedAt: Date | null;
283505
283294
  phone: string;
283506
- }[];
283507
- activityLogs?: {
283295
+ }, {
283296
+ id: string;
283297
+ isPrimary: boolean;
283298
+ createdAt: Date;
283299
+ updatedAt: Date;
283300
+ deletedAt: Date | null;
283301
+ phone: string;
283302
+ }>, "many">;
283303
+ activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283304
+ id: import("zod").ZodString;
283305
+ createdAt: import("zod").ZodDate;
283306
+ updatedAt: import("zod").ZodDate;
283307
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283308
+ entityId: import("zod").ZodString;
283309
+ description: import("zod").ZodString;
283310
+ entityType: import("zod").ZodObject<{
283311
+ id: import("zod").ZodString;
283312
+ createdAt: import("zod").ZodDate;
283313
+ updatedAt: import("zod").ZodDate;
283314
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283315
+ entity: import("zod").ZodString;
283316
+ description: import("zod").ZodNullable<import("zod").ZodString>;
283317
+ }, "strip", import("zod").ZodTypeAny, {
283318
+ id: string;
283319
+ description: string | null;
283320
+ createdAt: Date;
283321
+ updatedAt: Date;
283322
+ deletedAt: Date | null;
283323
+ entity: string;
283324
+ }, {
283325
+ id: string;
283326
+ description: string | null;
283327
+ createdAt: Date;
283328
+ updatedAt: Date;
283329
+ deletedAt: Date | null;
283330
+ entity: string;
283331
+ }>;
283332
+ }, "strip", import("zod").ZodTypeAny, {
283508
283333
  id: string;
283509
283334
  description: string;
283510
283335
  createdAt: Date;
@@ -283519,11 +283344,23 @@ export declare const publicApiContract: {
283519
283344
  deletedAt: Date | null;
283520
283345
  entity: string;
283521
283346
  };
283522
- }[] | undefined;
283523
- }>;
283524
- requestId: import("zod").ZodString;
283525
- }, "strip", import("zod").ZodTypeAny, {
283526
- data: {
283347
+ }, {
283348
+ id: string;
283349
+ description: string;
283350
+ createdAt: Date;
283351
+ updatedAt: Date;
283352
+ deletedAt: Date | null;
283353
+ entityId: string;
283354
+ entityType: {
283355
+ id: string;
283356
+ description: string | null;
283357
+ createdAt: Date;
283358
+ updatedAt: Date;
283359
+ deletedAt: Date | null;
283360
+ entity: string;
283361
+ };
283362
+ }>, "many">>;
283363
+ }, "strip", import("zod").ZodTypeAny, {
283527
283364
  name: string;
283528
283365
  id: string;
283529
283366
  channel: string | null;
@@ -283619,12 +283456,7 @@ export declare const publicApiContract: {
283619
283456
  entity: string;
283620
283457
  };
283621
283458
  }[] | undefined;
283622
- };
283623
- message: string;
283624
- status: string;
283625
- requestId: string;
283626
- }, {
283627
- data: {
283459
+ }, {
283628
283460
  name: string;
283629
283461
  id: string;
283630
283462
  channel: string | null;
@@ -283687,420 +283519,242 @@ export declare const publicApiContract: {
283687
283519
  createdAt: Date;
283688
283520
  updatedAt: Date;
283689
283521
  deletedAt: Date | null;
283690
- }[];
283691
- contactEmails: {
283692
- id: string;
283693
- isPrimary: boolean;
283694
- email: string;
283695
- createdAt: Date;
283696
- updatedAt: Date;
283697
- deletedAt: Date | null;
283698
- }[];
283699
- contactPhones: {
283700
- id: string;
283701
- isPrimary: boolean;
283702
- createdAt: Date;
283703
- updatedAt: Date;
283704
- deletedAt: Date | null;
283705
- phone: string;
283706
- }[];
283707
- activityLogs?: {
283708
- id: string;
283709
- description: string;
283710
- createdAt: Date;
283711
- updatedAt: Date;
283712
- deletedAt: Date | null;
283713
- entityId: string;
283714
- entityType: {
283715
- id: string;
283716
- description: string | null;
283717
- createdAt: Date;
283718
- updatedAt: Date;
283719
- deletedAt: Date | null;
283720
- entity: string;
283721
- };
283722
- }[] | undefined;
283723
- };
283724
- message: string;
283725
- status: string;
283726
- requestId: string;
283727
- }>;
283728
- 400: import("zod").ZodObject<{
283729
- message: import("zod").ZodString;
283730
- }, "strip", import("zod").ZodTypeAny, {
283731
- message: string;
283732
- }, {
283733
- message: string;
283734
- }>;
283735
- 409: import("zod").ZodObject<{
283736
- message: import("zod").ZodString;
283737
- }, "strip", import("zod").ZodTypeAny, {
283738
- message: string;
283739
- }, {
283740
- message: string;
283741
- }>;
283742
- 401: import("zod").ZodObject<{
283743
- message: import("zod").ZodString;
283744
- error: import("zod").ZodAny;
283745
- }, "strip", import("zod").ZodTypeAny, {
283746
- message: string;
283747
- error?: any;
283748
- }, {
283749
- message: string;
283750
- error?: any;
283751
- }>;
283752
- 404: import("zod").ZodObject<{
283753
- message: import("zod").ZodString;
283754
- error: import("zod").ZodAny;
283755
- }, "strip", import("zod").ZodTypeAny, {
283756
- message: string;
283757
- error?: any;
283758
- }, {
283759
- message: string;
283760
- error?: any;
283761
- }>;
283762
- 422: import("zod").ZodObject<{
283763
- message: import("zod").ZodString;
283764
- error: import("zod").ZodAny;
283765
- }, "strip", import("zod").ZodTypeAny, {
283766
- message: string;
283767
- error?: any;
283768
- }, {
283769
- message: string;
283770
- error?: any;
283771
- }>;
283772
- 500: import("zod").ZodObject<{
283773
- message: import("zod").ZodString;
283774
- error: import("zod").ZodAny;
283775
- }, "strip", import("zod").ZodTypeAny, {
283776
- message: string;
283777
- error?: any;
283778
- }, {
283779
- message: string;
283780
- error?: any;
283781
- }>;
283782
- };
283783
- path: "api/v1/contacts/:id";
283784
- };
283785
- createContactAttachmentRecords: {
283786
- body: import("zod").ZodObject<{
283787
- contactId: import("zod").ZodString;
283788
- attributeId: import("zod").ZodString;
283789
- contactAttachmentRecords: import("zod").ZodArray<import("zod").ZodObject<{
283790
- bucketName: import("zod").ZodString;
283791
- fileKey: import("zod").ZodString;
283792
- fileName: import("zod").ZodString;
283793
- fileSize: import("zod").ZodNumber;
283794
- url: import("zod").ZodString;
283795
- }, "strip", import("zod").ZodTypeAny, {
283796
- url: string;
283797
- fileName: string;
283798
- fileKey: string;
283799
- bucketName: string;
283800
- fileSize: number;
283801
- }, {
283802
- url: string;
283803
- fileName: string;
283804
- fileKey: string;
283805
- bucketName: string;
283806
- fileSize: number;
283807
- }>, "many">;
283808
- }, "strip", import("zod").ZodTypeAny, {
283809
- attributeId: string;
283810
- contactId: string;
283811
- contactAttachmentRecords: {
283812
- url: string;
283813
- fileName: string;
283814
- fileKey: string;
283815
- bucketName: string;
283816
- fileSize: number;
283817
- }[];
283818
- }, {
283819
- attributeId: string;
283820
- contactId: string;
283821
- contactAttachmentRecords: {
283822
- url: string;
283823
- fileName: string;
283824
- fileKey: string;
283825
- bucketName: string;
283826
- fileSize: number;
283827
- }[];
283828
- }>;
283829
- summary: "Create a new contact attachment";
283830
- method: "POST";
283831
- responses: {
283832
- 201: import("zod").ZodObject<{
283833
- requestId: import("zod").ZodString;
283834
- message: import("zod").ZodObject<{
283835
- id: import("zod").ZodString;
283836
- createdAt: import("zod").ZodDate;
283837
- updatedAt: import("zod").ZodDate;
283838
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283839
- textValue: import("zod").ZodNullable<import("zod").ZodString>;
283840
- booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
283841
- numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
283842
- dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
283843
- attribute: import("zod").ZodObject<Omit<{
283844
- id: import("zod").ZodString;
283845
- createdAt: import("zod").ZodDate;
283846
- updatedAt: import("zod").ZodDate;
283847
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283848
- systemName: import("zod").ZodString;
283849
- displayName: import("zod").ZodString;
283850
- type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
283851
- position: import("zod").ZodNumber;
283852
- isDefault: import("zod").ZodBoolean;
283853
- isArchived: import("zod").ZodBoolean;
283854
- isRequired: import("zod").ZodBoolean;
283855
- isUnique: import("zod").ZodBoolean;
283856
- options: import("zod").ZodArray<import("zod").ZodObject<{
283857
- position: import("zod").ZodNumber;
283858
- value: import("zod").ZodString;
283859
- label: import("zod").ZodString;
283860
- isDefault: import("zod").ZodBoolean;
283861
- id: import("zod").ZodString;
283862
- }, "strip", import("zod").ZodTypeAny, {
283522
+ }[];
283523
+ contactEmails: {
283524
+ id: string;
283525
+ isPrimary: boolean;
283526
+ email: string;
283527
+ createdAt: Date;
283528
+ updatedAt: Date;
283529
+ deletedAt: Date | null;
283530
+ }[];
283531
+ contactPhones: {
283532
+ id: string;
283533
+ isPrimary: boolean;
283534
+ createdAt: Date;
283535
+ updatedAt: Date;
283536
+ deletedAt: Date | null;
283537
+ phone: string;
283538
+ }[];
283539
+ activityLogs?: {
283540
+ id: string;
283541
+ description: string;
283542
+ createdAt: Date;
283543
+ updatedAt: Date;
283544
+ deletedAt: Date | null;
283545
+ entityId: string;
283546
+ entityType: {
283863
283547
  id: string;
283864
- position: number;
283865
- value: string;
283866
- label: string;
283867
- isDefault: boolean;
283868
- }, {
283548
+ description: string | null;
283549
+ createdAt: Date;
283550
+ updatedAt: Date;
283551
+ deletedAt: Date | null;
283552
+ entity: string;
283553
+ };
283554
+ }[] | undefined;
283555
+ }>;
283556
+ requestId: import("zod").ZodString;
283557
+ }, "strip", import("zod").ZodTypeAny, {
283558
+ data: {
283559
+ name: string;
283560
+ id: string;
283561
+ channel: string | null;
283562
+ address: string | null;
283563
+ createdAt: Date;
283564
+ updatedAt: Date;
283565
+ deletedAt: Date | null;
283566
+ customFields: {
283567
+ id: string;
283568
+ createdAt: Date;
283569
+ updatedAt: Date;
283570
+ deletedAt: Date | null;
283571
+ attribute: {
283572
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283869
283573
  id: string;
283870
283574
  position: number;
283871
- value: string;
283872
- label: string;
283873
- isDefault: boolean;
283874
- }>, "many">;
283875
- group: import("zod").ZodObject<{
283876
- id: import("zod").ZodString;
283877
- createdAt: import("zod").ZodDate;
283878
- updatedAt: import("zod").ZodDate;
283879
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283880
- systemName: import("zod").ZodString;
283881
- displayName: import("zod").ZodString;
283882
- }, "strip", import("zod").ZodTypeAny, {
283883
- id: string;
283884
283575
  createdAt: Date;
283885
283576
  updatedAt: Date;
283886
283577
  deletedAt: Date | null;
283887
283578
  systemName: string;
283888
283579
  displayName: string;
283889
- }, {
283580
+ isDefault: boolean;
283581
+ isArchived: boolean;
283582
+ isRequired: boolean;
283583
+ isUnique: boolean;
283584
+ };
283585
+ textValue: string | null;
283586
+ booleanValue: boolean | null;
283587
+ numberValue: number | null;
283588
+ dateValue: Date | null;
283589
+ uploads: {
283890
283590
  id: string;
283591
+ status: string | null;
283891
283592
  createdAt: Date;
283892
283593
  updatedAt: Date;
283893
283594
  deletedAt: Date | null;
283894
- systemName: string;
283895
- displayName: string;
283896
- }>;
283897
- }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
283898
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283899
- id: string;
283900
- position: number;
283901
- createdAt: Date;
283902
- updatedAt: Date;
283903
- deletedAt: Date | null;
283904
- systemName: string;
283905
- displayName: string;
283906
- isDefault: boolean;
283907
- isArchived: boolean;
283908
- isRequired: boolean;
283909
- isUnique: boolean;
283910
- }, {
283911
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283595
+ fileName: string;
283596
+ fileKey: string;
283597
+ bucketName: string;
283598
+ fileSize: number;
283599
+ fileUrl: string | null;
283600
+ }[];
283601
+ }[];
283602
+ company: {
283912
283603
  id: string;
283913
- position: number;
283914
283604
  createdAt: Date;
283915
283605
  updatedAt: Date;
283916
283606
  deletedAt: Date | null;
283917
- systemName: string;
283918
- displayName: string;
283919
- isDefault: boolean;
283920
- isArchived: boolean;
283921
- isRequired: boolean;
283922
- isUnique: boolean;
283923
- }>;
283924
- uploads: import("zod").ZodArray<import("zod").ZodObject<{
283925
- id: import("zod").ZodString;
283926
- createdAt: import("zod").ZodDate;
283927
- updatedAt: import("zod").ZodDate;
283928
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283929
- bucketName: import("zod").ZodString;
283930
- fileName: import("zod").ZodString;
283931
- fileSize: import("zod").ZodNumber;
283932
- fileKey: import("zod").ZodString;
283933
- fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
283934
- status: import("zod").ZodNullable<import("zod").ZodString>;
283935
- }, "strip", import("zod").ZodTypeAny, {
283607
+ name?: string | undefined;
283608
+ address?: string | null | undefined;
283609
+ phone?: string | null | undefined;
283610
+ industry?: string | null | undefined;
283611
+ } | null;
283612
+ notes: string | null;
283613
+ contactProfile: string | null;
283614
+ socialProfileUrl: string | null;
283615
+ tags: {
283616
+ name: string;
283936
283617
  id: string;
283937
- status: string | null;
283938
283618
  createdAt: Date;
283939
283619
  updatedAt: Date;
283940
283620
  deletedAt: Date | null;
283941
- fileName: string;
283942
- fileKey: string;
283943
- bucketName: string;
283944
- fileSize: number;
283945
- fileUrl: string | null;
283946
- }, {
283621
+ }[];
283622
+ contactEmails: {
283947
283623
  id: string;
283948
- status: string | null;
283624
+ isPrimary: boolean;
283625
+ email: string;
283949
283626
  createdAt: Date;
283950
283627
  updatedAt: Date;
283951
283628
  deletedAt: Date | null;
283952
- fileName: string;
283953
- fileKey: string;
283954
- bucketName: string;
283955
- fileSize: number;
283956
- fileUrl: string | null;
283957
- }>, "many">;
283958
- }, "strip", import("zod").ZodTypeAny, {
283959
- id: string;
283960
- createdAt: Date;
283961
- updatedAt: Date;
283962
- deletedAt: Date | null;
283963
- attribute: {
283964
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283629
+ }[];
283630
+ contactPhones: {
283965
283631
  id: string;
283966
- position: number;
283632
+ isPrimary: boolean;
283967
283633
  createdAt: Date;
283968
283634
  updatedAt: Date;
283969
283635
  deletedAt: Date | null;
283970
- systemName: string;
283971
- displayName: string;
283972
- isDefault: boolean;
283973
- isArchived: boolean;
283974
- isRequired: boolean;
283975
- isUnique: boolean;
283976
- };
283977
- textValue: string | null;
283978
- booleanValue: boolean | null;
283979
- numberValue: number | null;
283980
- dateValue: Date | null;
283981
- uploads: {
283636
+ phone: string;
283637
+ }[];
283638
+ activityLogs?: {
283982
283639
  id: string;
283983
- status: string | null;
283640
+ description: string;
283984
283641
  createdAt: Date;
283985
283642
  updatedAt: Date;
283986
283643
  deletedAt: Date | null;
283987
- fileName: string;
283988
- fileKey: string;
283989
- bucketName: string;
283990
- fileSize: number;
283991
- fileUrl: string | null;
283992
- }[];
283993
- }, {
283644
+ entityId: string;
283645
+ entityType: {
283646
+ id: string;
283647
+ description: string | null;
283648
+ createdAt: Date;
283649
+ updatedAt: Date;
283650
+ deletedAt: Date | null;
283651
+ entity: string;
283652
+ };
283653
+ }[] | undefined;
283654
+ };
283655
+ message: string;
283656
+ status: string;
283657
+ requestId: string;
283658
+ }, {
283659
+ data: {
283660
+ name: string;
283994
283661
  id: string;
283662
+ channel: string | null;
283663
+ address: string | null;
283995
283664
  createdAt: Date;
283996
283665
  updatedAt: Date;
283997
283666
  deletedAt: Date | null;
283998
- attribute: {
283999
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283667
+ customFields: {
284000
283668
  id: string;
284001
- position: number;
284002
283669
  createdAt: Date;
284003
283670
  updatedAt: Date;
284004
283671
  deletedAt: Date | null;
284005
- systemName: string;
284006
- displayName: string;
284007
- isDefault: boolean;
284008
- isArchived: boolean;
284009
- isRequired: boolean;
284010
- isUnique: boolean;
284011
- };
284012
- textValue: string | null;
284013
- booleanValue: boolean | null;
284014
- numberValue: number | null;
284015
- dateValue: Date | null;
284016
- uploads: {
283672
+ attribute: {
283673
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283674
+ id: string;
283675
+ position: number;
283676
+ createdAt: Date;
283677
+ updatedAt: Date;
283678
+ deletedAt: Date | null;
283679
+ systemName: string;
283680
+ displayName: string;
283681
+ isDefault: boolean;
283682
+ isArchived: boolean;
283683
+ isRequired: boolean;
283684
+ isUnique: boolean;
283685
+ };
283686
+ textValue: string | null;
283687
+ booleanValue: boolean | null;
283688
+ numberValue: number | null;
283689
+ dateValue: Date | null;
283690
+ uploads: {
283691
+ id: string;
283692
+ status: string | null;
283693
+ createdAt: Date;
283694
+ updatedAt: Date;
283695
+ deletedAt: Date | null;
283696
+ fileName: string;
283697
+ fileKey: string;
283698
+ bucketName: string;
283699
+ fileSize: number;
283700
+ fileUrl: string | null;
283701
+ }[];
283702
+ }[];
283703
+ company: {
284017
283704
  id: string;
284018
- status: string | null;
284019
283705
  createdAt: Date;
284020
283706
  updatedAt: Date;
284021
283707
  deletedAt: Date | null;
284022
- fileName: string;
284023
- fileKey: string;
284024
- bucketName: string;
284025
- fileSize: number;
284026
- fileUrl: string | null;
284027
- }[];
284028
- }>;
284029
- }, "strip", import("zod").ZodTypeAny, {
284030
- message: {
284031
- id: string;
284032
- createdAt: Date;
284033
- updatedAt: Date;
284034
- deletedAt: Date | null;
284035
- attribute: {
284036
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283708
+ name?: string | undefined;
283709
+ address?: string | null | undefined;
283710
+ phone?: string | null | undefined;
283711
+ industry?: string | null | undefined;
283712
+ } | null;
283713
+ notes: string | null;
283714
+ contactProfile: string | null;
283715
+ socialProfileUrl: string | null;
283716
+ tags: {
283717
+ name: string;
284037
283718
  id: string;
284038
- position: number;
284039
283719
  createdAt: Date;
284040
283720
  updatedAt: Date;
284041
283721
  deletedAt: Date | null;
284042
- systemName: string;
284043
- displayName: string;
284044
- isDefault: boolean;
284045
- isArchived: boolean;
284046
- isRequired: boolean;
284047
- isUnique: boolean;
284048
- };
284049
- textValue: string | null;
284050
- booleanValue: boolean | null;
284051
- numberValue: number | null;
284052
- dateValue: Date | null;
284053
- uploads: {
283722
+ }[];
283723
+ contactEmails: {
284054
283724
  id: string;
284055
- status: string | null;
283725
+ isPrimary: boolean;
283726
+ email: string;
284056
283727
  createdAt: Date;
284057
283728
  updatedAt: Date;
284058
283729
  deletedAt: Date | null;
284059
- fileName: string;
284060
- fileKey: string;
284061
- bucketName: string;
284062
- fileSize: number;
284063
- fileUrl: string | null;
284064
283730
  }[];
284065
- };
284066
- requestId: string;
284067
- }, {
284068
- message: {
284069
- id: string;
284070
- createdAt: Date;
284071
- updatedAt: Date;
284072
- deletedAt: Date | null;
284073
- attribute: {
284074
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283731
+ contactPhones: {
284075
283732
  id: string;
284076
- position: number;
283733
+ isPrimary: boolean;
284077
283734
  createdAt: Date;
284078
283735
  updatedAt: Date;
284079
283736
  deletedAt: Date | null;
284080
- systemName: string;
284081
- displayName: string;
284082
- isDefault: boolean;
284083
- isArchived: boolean;
284084
- isRequired: boolean;
284085
- isUnique: boolean;
284086
- };
284087
- textValue: string | null;
284088
- booleanValue: boolean | null;
284089
- numberValue: number | null;
284090
- dateValue: Date | null;
284091
- uploads: {
283737
+ phone: string;
283738
+ }[];
283739
+ activityLogs?: {
284092
283740
  id: string;
284093
- status: string | null;
283741
+ description: string;
284094
283742
  createdAt: Date;
284095
283743
  updatedAt: Date;
284096
283744
  deletedAt: Date | null;
284097
- fileName: string;
284098
- fileKey: string;
284099
- bucketName: string;
284100
- fileSize: number;
284101
- fileUrl: string | null;
284102
- }[];
283745
+ entityId: string;
283746
+ entityType: {
283747
+ id: string;
283748
+ description: string | null;
283749
+ createdAt: Date;
283750
+ updatedAt: Date;
283751
+ deletedAt: Date | null;
283752
+ entity: string;
283753
+ };
283754
+ }[] | undefined;
284103
283755
  };
283756
+ message: string;
283757
+ status: string;
284104
283758
  requestId: string;
284105
283759
  }>;
284106
283760
  400: import("zod").ZodObject<{
@@ -284158,11 +283812,72 @@ export declare const publicApiContract: {
284158
283812
  error?: any;
284159
283813
  }>;
284160
283814
  };
284161
- path: "api/v1/contacts/attachments";
283815
+ path: "api/v1/contacts/:id";
284162
283816
  };
284163
- getContactById: {
284164
- summary: "Get a contact by id";
284165
- method: "GET";
283817
+ updateContact: {
283818
+ body: import("zod").ZodObject<{
283819
+ name: import("zod").ZodOptional<import("zod").ZodString>;
283820
+ email: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283821
+ email: import("zod").ZodString;
283822
+ isPrimary: import("zod").ZodBoolean;
283823
+ }, "strip", import("zod").ZodTypeAny, {
283824
+ isPrimary: boolean;
283825
+ email: string;
283826
+ }, {
283827
+ isPrimary: boolean;
283828
+ email: string;
283829
+ }>, "many">>>;
283830
+ channel: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283831
+ address: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283832
+ phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283833
+ phone: import("zod").ZodString;
283834
+ isPrimary: import("zod").ZodBoolean;
283835
+ }, "strip", import("zod").ZodTypeAny, {
283836
+ isPrimary: boolean;
283837
+ phone: string;
283838
+ }, {
283839
+ isPrimary: boolean;
283840
+ phone: string;
283841
+ }>, "many">>>;
283842
+ notes: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283843
+ tags: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
283844
+ company: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283845
+ customFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
283846
+ }, "strip", import("zod").ZodTypeAny, {
283847
+ name?: string | undefined;
283848
+ email?: {
283849
+ isPrimary: boolean;
283850
+ email: string;
283851
+ }[] | undefined;
283852
+ channel?: string | undefined;
283853
+ address?: string | undefined;
283854
+ phone?: {
283855
+ isPrimary: boolean;
283856
+ phone: string;
283857
+ }[] | undefined;
283858
+ notes?: string | undefined;
283859
+ tags?: string[] | undefined;
283860
+ company?: string | undefined;
283861
+ customFields?: Record<string, string> | undefined;
283862
+ }, {
283863
+ name?: string | undefined;
283864
+ email?: {
283865
+ isPrimary: boolean;
283866
+ email: string;
283867
+ }[] | undefined;
283868
+ channel?: string | undefined;
283869
+ address?: string | undefined;
283870
+ phone?: {
283871
+ isPrimary: boolean;
283872
+ phone: string;
283873
+ }[] | undefined;
283874
+ notes?: string | undefined;
283875
+ tags?: string[] | undefined;
283876
+ company?: string | undefined;
283877
+ customFields?: Record<string, string> | undefined;
283878
+ }>;
283879
+ summary: "Update a contact";
283880
+ method: "PATCH";
284166
283881
  pathParams: import("zod").ZodObject<{
284167
283882
  id: import("zod").ZodString;
284168
283883
  }, "strip", import("zod").ZodTypeAny, {
@@ -284667,8 +284382,104 @@ export declare const publicApiContract: {
284667
284382
  deletedAt: Date | null;
284668
284383
  entity: string;
284669
284384
  };
284670
- }>, "many">>;
284671
- }, "strip", import("zod").ZodTypeAny, {
284385
+ }>, "many">>;
284386
+ }, "strip", import("zod").ZodTypeAny, {
284387
+ name: string;
284388
+ id: string;
284389
+ channel: string | null;
284390
+ address: string | null;
284391
+ createdAt: Date;
284392
+ updatedAt: Date;
284393
+ deletedAt: Date | null;
284394
+ customFields: {
284395
+ id: string;
284396
+ createdAt: Date;
284397
+ updatedAt: Date;
284398
+ deletedAt: Date | null;
284399
+ attribute: {
284400
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284401
+ id: string;
284402
+ position: number;
284403
+ createdAt: Date;
284404
+ updatedAt: Date;
284405
+ deletedAt: Date | null;
284406
+ systemName: string;
284407
+ displayName: string;
284408
+ isDefault: boolean;
284409
+ isArchived: boolean;
284410
+ isRequired: boolean;
284411
+ isUnique: boolean;
284412
+ };
284413
+ textValue: string | null;
284414
+ booleanValue: boolean | null;
284415
+ numberValue: number | null;
284416
+ dateValue: Date | null;
284417
+ uploads: {
284418
+ id: string;
284419
+ status: string | null;
284420
+ createdAt: Date;
284421
+ updatedAt: Date;
284422
+ deletedAt: Date | null;
284423
+ fileName: string;
284424
+ fileKey: string;
284425
+ bucketName: string;
284426
+ fileSize: number;
284427
+ fileUrl: string | null;
284428
+ }[];
284429
+ }[];
284430
+ company: {
284431
+ id: string;
284432
+ createdAt: Date;
284433
+ updatedAt: Date;
284434
+ deletedAt: Date | null;
284435
+ name?: string | undefined;
284436
+ address?: string | null | undefined;
284437
+ phone?: string | null | undefined;
284438
+ industry?: string | null | undefined;
284439
+ } | null;
284440
+ notes: string | null;
284441
+ contactProfile: string | null;
284442
+ socialProfileUrl: string | null;
284443
+ tags: {
284444
+ name: string;
284445
+ id: string;
284446
+ createdAt: Date;
284447
+ updatedAt: Date;
284448
+ deletedAt: Date | null;
284449
+ }[];
284450
+ contactEmails: {
284451
+ id: string;
284452
+ isPrimary: boolean;
284453
+ email: string;
284454
+ createdAt: Date;
284455
+ updatedAt: Date;
284456
+ deletedAt: Date | null;
284457
+ }[];
284458
+ contactPhones: {
284459
+ id: string;
284460
+ isPrimary: boolean;
284461
+ createdAt: Date;
284462
+ updatedAt: Date;
284463
+ deletedAt: Date | null;
284464
+ phone: string;
284465
+ }[];
284466
+ activityLogs?: {
284467
+ id: string;
284468
+ description: string;
284469
+ createdAt: Date;
284470
+ updatedAt: Date;
284471
+ deletedAt: Date | null;
284472
+ entityId: string;
284473
+ entityType: {
284474
+ id: string;
284475
+ description: string | null;
284476
+ createdAt: Date;
284477
+ updatedAt: Date;
284478
+ deletedAt: Date | null;
284479
+ entity: string;
284480
+ };
284481
+ }[] | undefined;
284482
+ }, {
284672
284483
  name: string;
284673
284484
  id: string;
284674
284485
  channel: string | null;
@@ -284764,7 +284575,10 @@ export declare const publicApiContract: {
284764
284575
  entity: string;
284765
284576
  };
284766
284577
  }[] | undefined;
284767
- }, {
284578
+ }>;
284579
+ requestId: import("zod").ZodString;
284580
+ }, "strip", import("zod").ZodTypeAny, {
284581
+ data: {
284768
284582
  name: string;
284769
284583
  id: string;
284770
284584
  channel: string | null;
@@ -284860,9 +284674,11 @@ export declare const publicApiContract: {
284860
284674
  entity: string;
284861
284675
  };
284862
284676
  }[] | undefined;
284863
- }>;
284864
- requestId: import("zod").ZodString;
284865
- }, "strip", import("zod").ZodTypeAny, {
284677
+ };
284678
+ message: string;
284679
+ status: string;
284680
+ requestId: string;
284681
+ }, {
284866
284682
  data: {
284867
284683
  name: string;
284868
284684
  id: string;
@@ -284912,157 +284728,434 @@ export declare const publicApiContract: {
284912
284728
  createdAt: Date;
284913
284729
  updatedAt: Date;
284914
284730
  deletedAt: Date | null;
284915
- name?: string | undefined;
284916
- address?: string | null | undefined;
284917
- phone?: string | null | undefined;
284918
- industry?: string | null | undefined;
284919
- } | null;
284920
- notes: string | null;
284921
- contactProfile: string | null;
284922
- socialProfileUrl: string | null;
284923
- tags: {
284924
- name: string;
284731
+ name?: string | undefined;
284732
+ address?: string | null | undefined;
284733
+ phone?: string | null | undefined;
284734
+ industry?: string | null | undefined;
284735
+ } | null;
284736
+ notes: string | null;
284737
+ contactProfile: string | null;
284738
+ socialProfileUrl: string | null;
284739
+ tags: {
284740
+ name: string;
284741
+ id: string;
284742
+ createdAt: Date;
284743
+ updatedAt: Date;
284744
+ deletedAt: Date | null;
284745
+ }[];
284746
+ contactEmails: {
284747
+ id: string;
284748
+ isPrimary: boolean;
284749
+ email: string;
284750
+ createdAt: Date;
284751
+ updatedAt: Date;
284752
+ deletedAt: Date | null;
284753
+ }[];
284754
+ contactPhones: {
284755
+ id: string;
284756
+ isPrimary: boolean;
284757
+ createdAt: Date;
284758
+ updatedAt: Date;
284759
+ deletedAt: Date | null;
284760
+ phone: string;
284761
+ }[];
284762
+ activityLogs?: {
284763
+ id: string;
284764
+ description: string;
284765
+ createdAt: Date;
284766
+ updatedAt: Date;
284767
+ deletedAt: Date | null;
284768
+ entityId: string;
284769
+ entityType: {
284770
+ id: string;
284771
+ description: string | null;
284772
+ createdAt: Date;
284773
+ updatedAt: Date;
284774
+ deletedAt: Date | null;
284775
+ entity: string;
284776
+ };
284777
+ }[] | undefined;
284778
+ };
284779
+ message: string;
284780
+ status: string;
284781
+ requestId: string;
284782
+ }>;
284783
+ 400: import("zod").ZodObject<{
284784
+ message: import("zod").ZodString;
284785
+ }, "strip", import("zod").ZodTypeAny, {
284786
+ message: string;
284787
+ }, {
284788
+ message: string;
284789
+ }>;
284790
+ 409: import("zod").ZodObject<{
284791
+ message: import("zod").ZodString;
284792
+ }, "strip", import("zod").ZodTypeAny, {
284793
+ message: string;
284794
+ }, {
284795
+ message: string;
284796
+ }>;
284797
+ 401: import("zod").ZodObject<{
284798
+ message: import("zod").ZodString;
284799
+ error: import("zod").ZodAny;
284800
+ }, "strip", import("zod").ZodTypeAny, {
284801
+ message: string;
284802
+ error?: any;
284803
+ }, {
284804
+ message: string;
284805
+ error?: any;
284806
+ }>;
284807
+ 404: import("zod").ZodObject<{
284808
+ message: import("zod").ZodString;
284809
+ error: import("zod").ZodAny;
284810
+ }, "strip", import("zod").ZodTypeAny, {
284811
+ message: string;
284812
+ error?: any;
284813
+ }, {
284814
+ message: string;
284815
+ error?: any;
284816
+ }>;
284817
+ 422: import("zod").ZodObject<{
284818
+ message: import("zod").ZodString;
284819
+ error: import("zod").ZodAny;
284820
+ }, "strip", import("zod").ZodTypeAny, {
284821
+ message: string;
284822
+ error?: any;
284823
+ }, {
284824
+ message: string;
284825
+ error?: any;
284826
+ }>;
284827
+ 500: import("zod").ZodObject<{
284828
+ message: import("zod").ZodString;
284829
+ error: import("zod").ZodAny;
284830
+ }, "strip", import("zod").ZodTypeAny, {
284831
+ message: string;
284832
+ error?: any;
284833
+ }, {
284834
+ message: string;
284835
+ error?: any;
284836
+ }>;
284837
+ };
284838
+ path: "api/v1/contacts/:id";
284839
+ };
284840
+ createContactAttachmentRecords: {
284841
+ body: import("zod").ZodObject<{
284842
+ contactId: import("zod").ZodString;
284843
+ attributeId: import("zod").ZodString;
284844
+ contactAttachmentRecords: import("zod").ZodArray<import("zod").ZodObject<{
284845
+ bucketName: import("zod").ZodString;
284846
+ fileKey: import("zod").ZodString;
284847
+ fileName: import("zod").ZodString;
284848
+ fileSize: import("zod").ZodNumber;
284849
+ url: import("zod").ZodString;
284850
+ }, "strip", import("zod").ZodTypeAny, {
284851
+ url: string;
284852
+ fileName: string;
284853
+ fileKey: string;
284854
+ bucketName: string;
284855
+ fileSize: number;
284856
+ }, {
284857
+ url: string;
284858
+ fileName: string;
284859
+ fileKey: string;
284860
+ bucketName: string;
284861
+ fileSize: number;
284862
+ }>, "many">;
284863
+ }, "strip", import("zod").ZodTypeAny, {
284864
+ attributeId: string;
284865
+ contactId: string;
284866
+ contactAttachmentRecords: {
284867
+ url: string;
284868
+ fileName: string;
284869
+ fileKey: string;
284870
+ bucketName: string;
284871
+ fileSize: number;
284872
+ }[];
284873
+ }, {
284874
+ attributeId: string;
284875
+ contactId: string;
284876
+ contactAttachmentRecords: {
284877
+ url: string;
284878
+ fileName: string;
284879
+ fileKey: string;
284880
+ bucketName: string;
284881
+ fileSize: number;
284882
+ }[];
284883
+ }>;
284884
+ summary: "Create a new contact attachment";
284885
+ method: "POST";
284886
+ responses: {
284887
+ 201: import("zod").ZodObject<{
284888
+ requestId: import("zod").ZodString;
284889
+ message: import("zod").ZodObject<{
284890
+ id: import("zod").ZodString;
284891
+ createdAt: import("zod").ZodDate;
284892
+ updatedAt: import("zod").ZodDate;
284893
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284894
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
284895
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
284896
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
284897
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
284898
+ attribute: import("zod").ZodObject<Omit<{
284899
+ id: import("zod").ZodString;
284900
+ createdAt: import("zod").ZodDate;
284901
+ updatedAt: import("zod").ZodDate;
284902
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284903
+ systemName: import("zod").ZodString;
284904
+ displayName: import("zod").ZodString;
284905
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
284906
+ position: import("zod").ZodNumber;
284907
+ isDefault: import("zod").ZodBoolean;
284908
+ isArchived: import("zod").ZodBoolean;
284909
+ isRequired: import("zod").ZodBoolean;
284910
+ isUnique: import("zod").ZodBoolean;
284911
+ options: import("zod").ZodArray<import("zod").ZodObject<{
284912
+ position: import("zod").ZodNumber;
284913
+ value: import("zod").ZodString;
284914
+ label: import("zod").ZodString;
284915
+ isDefault: import("zod").ZodBoolean;
284916
+ id: import("zod").ZodString;
284917
+ }, "strip", import("zod").ZodTypeAny, {
284918
+ id: string;
284919
+ position: number;
284920
+ value: string;
284921
+ label: string;
284922
+ isDefault: boolean;
284923
+ }, {
284924
+ id: string;
284925
+ position: number;
284926
+ value: string;
284927
+ label: string;
284928
+ isDefault: boolean;
284929
+ }>, "many">;
284930
+ group: import("zod").ZodObject<{
284931
+ id: import("zod").ZodString;
284932
+ createdAt: import("zod").ZodDate;
284933
+ updatedAt: import("zod").ZodDate;
284934
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284935
+ systemName: import("zod").ZodString;
284936
+ displayName: import("zod").ZodString;
284937
+ }, "strip", import("zod").ZodTypeAny, {
284938
+ id: string;
284939
+ createdAt: Date;
284940
+ updatedAt: Date;
284941
+ deletedAt: Date | null;
284942
+ systemName: string;
284943
+ displayName: string;
284944
+ }, {
284945
+ id: string;
284946
+ createdAt: Date;
284947
+ updatedAt: Date;
284948
+ deletedAt: Date | null;
284949
+ systemName: string;
284950
+ displayName: string;
284951
+ }>;
284952
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
284953
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284954
+ id: string;
284955
+ position: number;
284956
+ createdAt: Date;
284957
+ updatedAt: Date;
284958
+ deletedAt: Date | null;
284959
+ systemName: string;
284960
+ displayName: string;
284961
+ isDefault: boolean;
284962
+ isArchived: boolean;
284963
+ isRequired: boolean;
284964
+ isUnique: boolean;
284965
+ }, {
284966
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284967
+ id: string;
284968
+ position: number;
284969
+ createdAt: Date;
284970
+ updatedAt: Date;
284971
+ deletedAt: Date | null;
284972
+ systemName: string;
284973
+ displayName: string;
284974
+ isDefault: boolean;
284975
+ isArchived: boolean;
284976
+ isRequired: boolean;
284977
+ isUnique: boolean;
284978
+ }>;
284979
+ uploads: import("zod").ZodArray<import("zod").ZodObject<{
284980
+ id: import("zod").ZodString;
284981
+ createdAt: import("zod").ZodDate;
284982
+ updatedAt: import("zod").ZodDate;
284983
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284984
+ bucketName: import("zod").ZodString;
284985
+ fileName: import("zod").ZodString;
284986
+ fileSize: import("zod").ZodNumber;
284987
+ fileKey: import("zod").ZodString;
284988
+ fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
284989
+ status: import("zod").ZodNullable<import("zod").ZodString>;
284990
+ }, "strip", import("zod").ZodTypeAny, {
284925
284991
  id: string;
284992
+ status: string | null;
284926
284993
  createdAt: Date;
284927
284994
  updatedAt: Date;
284928
284995
  deletedAt: Date | null;
284929
- }[];
284930
- contactEmails: {
284996
+ fileName: string;
284997
+ fileKey: string;
284998
+ bucketName: string;
284999
+ fileSize: number;
285000
+ fileUrl: string | null;
285001
+ }, {
284931
285002
  id: string;
284932
- isPrimary: boolean;
284933
- email: string;
285003
+ status: string | null;
284934
285004
  createdAt: Date;
284935
285005
  updatedAt: Date;
284936
285006
  deletedAt: Date | null;
284937
- }[];
284938
- contactPhones: {
285007
+ fileName: string;
285008
+ fileKey: string;
285009
+ bucketName: string;
285010
+ fileSize: number;
285011
+ fileUrl: string | null;
285012
+ }>, "many">;
285013
+ }, "strip", import("zod").ZodTypeAny, {
285014
+ id: string;
285015
+ createdAt: Date;
285016
+ updatedAt: Date;
285017
+ deletedAt: Date | null;
285018
+ attribute: {
285019
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284939
285020
  id: string;
284940
- isPrimary: boolean;
285021
+ position: number;
284941
285022
  createdAt: Date;
284942
285023
  updatedAt: Date;
284943
285024
  deletedAt: Date | null;
284944
- phone: string;
284945
- }[];
284946
- activityLogs?: {
285025
+ systemName: string;
285026
+ displayName: string;
285027
+ isDefault: boolean;
285028
+ isArchived: boolean;
285029
+ isRequired: boolean;
285030
+ isUnique: boolean;
285031
+ };
285032
+ textValue: string | null;
285033
+ booleanValue: boolean | null;
285034
+ numberValue: number | null;
285035
+ dateValue: Date | null;
285036
+ uploads: {
284947
285037
  id: string;
284948
- description: string;
285038
+ status: string | null;
284949
285039
  createdAt: Date;
284950
285040
  updatedAt: Date;
284951
285041
  deletedAt: Date | null;
284952
- entityId: string;
284953
- entityType: {
284954
- id: string;
284955
- description: string | null;
284956
- createdAt: Date;
284957
- updatedAt: Date;
284958
- deletedAt: Date | null;
284959
- entity: string;
284960
- };
284961
- }[] | undefined;
284962
- };
284963
- message: string;
284964
- status: string;
284965
- requestId: string;
284966
- }, {
284967
- data: {
284968
- name: string;
285042
+ fileName: string;
285043
+ fileKey: string;
285044
+ bucketName: string;
285045
+ fileSize: number;
285046
+ fileUrl: string | null;
285047
+ }[];
285048
+ }, {
284969
285049
  id: string;
284970
- channel: string | null;
284971
- address: string | null;
284972
285050
  createdAt: Date;
284973
285051
  updatedAt: Date;
284974
285052
  deletedAt: Date | null;
284975
- customFields: {
285053
+ attribute: {
285054
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284976
285055
  id: string;
285056
+ position: number;
284977
285057
  createdAt: Date;
284978
285058
  updatedAt: Date;
284979
285059
  deletedAt: Date | null;
284980
- attribute: {
284981
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284982
- id: string;
284983
- position: number;
284984
- createdAt: Date;
284985
- updatedAt: Date;
284986
- deletedAt: Date | null;
284987
- systemName: string;
284988
- displayName: string;
284989
- isDefault: boolean;
284990
- isArchived: boolean;
284991
- isRequired: boolean;
284992
- isUnique: boolean;
284993
- };
284994
- textValue: string | null;
284995
- booleanValue: boolean | null;
284996
- numberValue: number | null;
284997
- dateValue: Date | null;
284998
- uploads: {
284999
- id: string;
285000
- status: string | null;
285001
- createdAt: Date;
285002
- updatedAt: Date;
285003
- deletedAt: Date | null;
285004
- fileName: string;
285005
- fileKey: string;
285006
- bucketName: string;
285007
- fileSize: number;
285008
- fileUrl: string | null;
285009
- }[];
285010
- }[];
285011
- company: {
285060
+ systemName: string;
285061
+ displayName: string;
285062
+ isDefault: boolean;
285063
+ isArchived: boolean;
285064
+ isRequired: boolean;
285065
+ isUnique: boolean;
285066
+ };
285067
+ textValue: string | null;
285068
+ booleanValue: boolean | null;
285069
+ numberValue: number | null;
285070
+ dateValue: Date | null;
285071
+ uploads: {
285012
285072
  id: string;
285073
+ status: string | null;
285013
285074
  createdAt: Date;
285014
285075
  updatedAt: Date;
285015
285076
  deletedAt: Date | null;
285016
- name?: string | undefined;
285017
- address?: string | null | undefined;
285018
- phone?: string | null | undefined;
285019
- industry?: string | null | undefined;
285020
- } | null;
285021
- notes: string | null;
285022
- contactProfile: string | null;
285023
- socialProfileUrl: string | null;
285024
- tags: {
285025
- name: string;
285077
+ fileName: string;
285078
+ fileKey: string;
285079
+ bucketName: string;
285080
+ fileSize: number;
285081
+ fileUrl: string | null;
285082
+ }[];
285083
+ }>;
285084
+ }, "strip", import("zod").ZodTypeAny, {
285085
+ message: {
285086
+ id: string;
285087
+ createdAt: Date;
285088
+ updatedAt: Date;
285089
+ deletedAt: Date | null;
285090
+ attribute: {
285091
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
285026
285092
  id: string;
285093
+ position: number;
285027
285094
  createdAt: Date;
285028
285095
  updatedAt: Date;
285029
285096
  deletedAt: Date | null;
285030
- }[];
285031
- contactEmails: {
285097
+ systemName: string;
285098
+ displayName: string;
285099
+ isDefault: boolean;
285100
+ isArchived: boolean;
285101
+ isRequired: boolean;
285102
+ isUnique: boolean;
285103
+ };
285104
+ textValue: string | null;
285105
+ booleanValue: boolean | null;
285106
+ numberValue: number | null;
285107
+ dateValue: Date | null;
285108
+ uploads: {
285032
285109
  id: string;
285033
- isPrimary: boolean;
285034
- email: string;
285110
+ status: string | null;
285035
285111
  createdAt: Date;
285036
285112
  updatedAt: Date;
285037
285113
  deletedAt: Date | null;
285114
+ fileName: string;
285115
+ fileKey: string;
285116
+ bucketName: string;
285117
+ fileSize: number;
285118
+ fileUrl: string | null;
285038
285119
  }[];
285039
- contactPhones: {
285120
+ };
285121
+ requestId: string;
285122
+ }, {
285123
+ message: {
285124
+ id: string;
285125
+ createdAt: Date;
285126
+ updatedAt: Date;
285127
+ deletedAt: Date | null;
285128
+ attribute: {
285129
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
285040
285130
  id: string;
285041
- isPrimary: boolean;
285131
+ position: number;
285042
285132
  createdAt: Date;
285043
285133
  updatedAt: Date;
285044
285134
  deletedAt: Date | null;
285045
- phone: string;
285046
- }[];
285047
- activityLogs?: {
285135
+ systemName: string;
285136
+ displayName: string;
285137
+ isDefault: boolean;
285138
+ isArchived: boolean;
285139
+ isRequired: boolean;
285140
+ isUnique: boolean;
285141
+ };
285142
+ textValue: string | null;
285143
+ booleanValue: boolean | null;
285144
+ numberValue: number | null;
285145
+ dateValue: Date | null;
285146
+ uploads: {
285048
285147
  id: string;
285049
- description: string;
285148
+ status: string | null;
285050
285149
  createdAt: Date;
285051
285150
  updatedAt: Date;
285052
285151
  deletedAt: Date | null;
285053
- entityId: string;
285054
- entityType: {
285055
- id: string;
285056
- description: string | null;
285057
- createdAt: Date;
285058
- updatedAt: Date;
285059
- deletedAt: Date | null;
285060
- entity: string;
285061
- };
285062
- }[] | undefined;
285152
+ fileName: string;
285153
+ fileKey: string;
285154
+ bucketName: string;
285155
+ fileSize: number;
285156
+ fileUrl: string | null;
285157
+ }[];
285063
285158
  };
285064
- message: string;
285065
- status: string;
285066
285159
  requestId: string;
285067
285160
  }>;
285068
285161
  400: import("zod").ZodObject<{
@@ -285120,7 +285213,7 @@ export declare const publicApiContract: {
285120
285213
  error?: any;
285121
285214
  }>;
285122
285215
  };
285123
- path: "api/v1/contacts/:id";
285216
+ path: "api/v1/contacts/attachments";
285124
285217
  };
285125
285218
  deleteContact: {
285126
285219
  body: null;