@kl1/contracts 1.1.16-uat → 1.1.18-uat
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/index.js +337 -179
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -179
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +3 -0
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +3 -0
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +731 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/snippet/index.d.ts +740 -0
- package/dist/src/snippet/index.d.ts.map +1 -0
- package/dist/src/snippet/schema.d.ts +131 -0
- package/dist/src/snippet/schema.d.ts.map +1 -0
- package/dist/src/snippet/validation.d.ts +80 -0
- package/dist/src/snippet/validation.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// src/contract.ts
|
2
|
-
import { initContract as
|
2
|
+
import { initContract as initContract40 } from "@ts-rest/core";
|
3
3
|
|
4
4
|
// src/activity-log/index.ts
|
5
5
|
import { initContract } from "@ts-rest/core";
|
@@ -1368,7 +1368,8 @@ var GetRoomsSchema = z29.object({
|
|
1368
1368
|
notes: z29.string().optional(),
|
1369
1369
|
tab: z29.string().optional(),
|
1370
1370
|
type: z29.string().optional(),
|
1371
|
-
sorting: z29.string().optional().default("desc")
|
1371
|
+
sorting: z29.string().optional().default("desc"),
|
1372
|
+
caseId: z29.string().optional()
|
1372
1373
|
});
|
1373
1374
|
var UpdateRoomTagsAndNotesSchema = z29.object({
|
1374
1375
|
note: z29.string().optional(),
|
@@ -6863,170 +6864,324 @@ var userNotificationContract = initContract37().router(
|
|
6863
6864
|
}
|
6864
6865
|
);
|
6865
6866
|
|
6866
|
-
// src/
|
6867
|
+
// src/snippet/index.ts
|
6867
6868
|
import { initContract as initContract38 } from "@ts-rest/core";
|
6868
|
-
import z101 from "zod";
|
6869
|
-
|
6870
|
-
// src/public-api/validation.ts
|
6871
|
-
import z100 from "zod";
|
6869
|
+
import { z as z101 } from "zod";
|
6872
6870
|
|
6873
|
-
// src/
|
6871
|
+
// src/snippet/schema.ts
|
6874
6872
|
import z99 from "zod";
|
6875
|
-
var
|
6873
|
+
var SnippetGroupSchema = DefaultEntitySchema.extend({
|
6874
|
+
name: z99.string(),
|
6875
|
+
platformType: z99.string()
|
6876
|
+
});
|
6877
|
+
var SnippetSchema = DefaultEntitySchema.extend({
|
6878
|
+
shortcutName: z99.string(),
|
6879
|
+
contentType: z99.string(),
|
6880
|
+
contentValue: z99.string().nullable(),
|
6881
|
+
uploadId: z99.string().nullable(),
|
6882
|
+
order: z99.number().optional(),
|
6883
|
+
snippetGroupId: z99.string(),
|
6884
|
+
snippetGroup: SnippetGroupSchema
|
6885
|
+
});
|
6886
|
+
var SnippetGroupListItemSchema = z99.object({
|
6876
6887
|
id: z99.string().uuid(),
|
6877
|
-
|
6878
|
-
updatedAt: z99.date(),
|
6879
|
-
deletedAt: z99.date().nullable(),
|
6880
|
-
phone: z99.string(),
|
6881
|
-
isPrimary: z99.boolean()
|
6888
|
+
name: z99.string()
|
6882
6889
|
});
|
6883
|
-
var
|
6890
|
+
var SnippetListItemSchema = z99.object({
|
6884
6891
|
id: z99.string().uuid(),
|
6885
|
-
|
6886
|
-
|
6887
|
-
|
6888
|
-
|
6889
|
-
isPrimary: z99.boolean()
|
6892
|
+
shortCutName: z99.string(),
|
6893
|
+
contentType: z99.string(),
|
6894
|
+
contentValue: z99.string().nullable(),
|
6895
|
+
snippetGroupId: z99.string()
|
6890
6896
|
});
|
6891
|
-
|
6892
|
-
|
6893
|
-
|
6894
|
-
|
6895
|
-
|
6896
|
-
|
6897
|
-
booleanValue: z99.boolean().nullable(),
|
6898
|
-
numberValue: z99.number().nullable(),
|
6899
|
-
dateValue: z99.date().nullable(),
|
6900
|
-
attribute: AttributeSchema.omit({ options: true, group: true }),
|
6901
|
-
uploads: z99.array(UploadSchema)
|
6897
|
+
|
6898
|
+
// src/snippet/validation.ts
|
6899
|
+
import { z as z100 } from "zod";
|
6900
|
+
var CreateSnippetGroupSchema = z100.object({
|
6901
|
+
name: z100.string(),
|
6902
|
+
platformType: z100.string()
|
6902
6903
|
});
|
6903
|
-
var
|
6904
|
-
|
6905
|
-
|
6906
|
-
updatedAt: z99.date(),
|
6907
|
-
deletedAt: z99.date().nullable(),
|
6908
|
-
entity: z99.string(),
|
6909
|
-
description: z99.string().nullable()
|
6904
|
+
var UpdateSnippetGroupSchema = z100.object({
|
6905
|
+
name: z100.string().optional(),
|
6906
|
+
paltformType: z100.string().optional()
|
6910
6907
|
});
|
6911
|
-
var
|
6912
|
-
id:
|
6913
|
-
|
6914
|
-
|
6915
|
-
|
6916
|
-
|
6917
|
-
|
6908
|
+
var DeleteSnippetGroupSchema = z100.object({
|
6909
|
+
id: z100.string()
|
6910
|
+
});
|
6911
|
+
var CreateSnippetSchema = z100.object({
|
6912
|
+
shortcutName: z100.string(),
|
6913
|
+
contentType: z100.string(),
|
6914
|
+
contentValue: z100.string().optional(),
|
6915
|
+
snippetGroupId: z100.string(),
|
6916
|
+
platformType: z100.string()
|
6917
|
+
});
|
6918
|
+
var UpdateSnippetSchema = CreateSnippetSchema.extend({
|
6919
|
+
snippetId: z100.string()
|
6920
|
+
});
|
6921
|
+
var DeleteSnippetSchema = z100.object({
|
6922
|
+
snippetId: z100.string()
|
6923
|
+
});
|
6924
|
+
|
6925
|
+
// src/snippet/index.ts
|
6926
|
+
var snippetContract = initContract38().router(
|
6927
|
+
{
|
6928
|
+
createSnippetGroup: {
|
6929
|
+
method: "POST",
|
6930
|
+
path: "/groups",
|
6931
|
+
body: CreateSnippetGroupSchema,
|
6932
|
+
responses: {
|
6933
|
+
201: DefaultSuccessResponseSchema.extend({
|
6934
|
+
snippetgroup: SnippetGroupSchema
|
6935
|
+
}),
|
6936
|
+
500: DefaultErrorResponseSchema
|
6937
|
+
}
|
6938
|
+
},
|
6939
|
+
getSnippetGroups: {
|
6940
|
+
method: "GET",
|
6941
|
+
path: "/groups",
|
6942
|
+
query: null,
|
6943
|
+
responses: {
|
6944
|
+
200: DefaultSuccessResponseSchema.extend({
|
6945
|
+
snippetgroups: z101.array(SnippetGroupSchema)
|
6946
|
+
}),
|
6947
|
+
500: DefaultErrorResponseSchema
|
6948
|
+
}
|
6949
|
+
},
|
6950
|
+
updateSnippetGroup: {
|
6951
|
+
method: "PATCH",
|
6952
|
+
path: "/groups/:id",
|
6953
|
+
pathParams: z101.object({ id: z101.string() }),
|
6954
|
+
body: UpdateSnippetGroupSchema,
|
6955
|
+
responses: {
|
6956
|
+
200: DefaultSuccessResponseSchema.extend({
|
6957
|
+
snippetgroup: SnippetGroupSchema
|
6958
|
+
}),
|
6959
|
+
500: DefaultErrorResponseSchema
|
6960
|
+
}
|
6961
|
+
},
|
6962
|
+
deleteSnippetGroup: {
|
6963
|
+
method: "DELETE",
|
6964
|
+
path: "/groups/:id",
|
6965
|
+
pathParams: z101.object({ id: z101.string() }),
|
6966
|
+
body: null,
|
6967
|
+
responses: {
|
6968
|
+
200: DefaultSuccessResponseSchema,
|
6969
|
+
500: DefaultErrorResponseSchema
|
6970
|
+
}
|
6971
|
+
},
|
6972
|
+
getSnippets: {
|
6973
|
+
method: "GET",
|
6974
|
+
path: "",
|
6975
|
+
responses: {
|
6976
|
+
200: DefaultSuccessResponseSchema.extend({
|
6977
|
+
snippets: z101.array(SnippetSchema)
|
6978
|
+
}),
|
6979
|
+
500: DefaultErrorResponseSchema
|
6980
|
+
}
|
6981
|
+
},
|
6982
|
+
createSnippet: {
|
6983
|
+
method: "POST",
|
6984
|
+
path: "",
|
6985
|
+
body: CreateSnippetSchema,
|
6986
|
+
responses: {
|
6987
|
+
201: DefaultSuccessResponseSchema.extend({
|
6988
|
+
snippet: SnippetSchema
|
6989
|
+
}),
|
6990
|
+
500: DefaultErrorResponseSchema
|
6991
|
+
}
|
6992
|
+
},
|
6993
|
+
updateSnippet: {
|
6994
|
+
method: "PATCH",
|
6995
|
+
path: "/:id",
|
6996
|
+
pathParams: z101.object({ id: z101.string() }),
|
6997
|
+
body: UpdateSnippetSchema,
|
6998
|
+
responses: {
|
6999
|
+
200: DefaultSuccessResponseSchema.extend({
|
7000
|
+
snippet: SnippetSchema
|
7001
|
+
}),
|
7002
|
+
500: DefaultErrorResponseSchema
|
7003
|
+
}
|
7004
|
+
},
|
7005
|
+
deleteSnippet: {
|
7006
|
+
method: "DELETE",
|
7007
|
+
path: "/:id",
|
7008
|
+
pathParams: z101.object({ id: z101.string() }),
|
7009
|
+
body: null,
|
7010
|
+
responses: {
|
7011
|
+
200: DefaultSuccessResponseSchema,
|
7012
|
+
500: DefaultErrorResponseSchema
|
7013
|
+
}
|
7014
|
+
}
|
7015
|
+
},
|
7016
|
+
{
|
7017
|
+
pathPrefix: "snippets"
|
7018
|
+
}
|
7019
|
+
);
|
7020
|
+
|
7021
|
+
// src/public-api/index.ts
|
7022
|
+
import { initContract as initContract39 } from "@ts-rest/core";
|
7023
|
+
import z104 from "zod";
|
7024
|
+
|
7025
|
+
// src/public-api/validation.ts
|
7026
|
+
import z103 from "zod";
|
7027
|
+
|
7028
|
+
// src/public-api/schema.ts
|
7029
|
+
import z102 from "zod";
|
7030
|
+
var ContactPhonesSchema2 = z102.object({
|
7031
|
+
id: z102.string().uuid(),
|
7032
|
+
createdAt: z102.date(),
|
7033
|
+
updatedAt: z102.date(),
|
7034
|
+
deletedAt: z102.date().nullable(),
|
7035
|
+
phone: z102.string(),
|
7036
|
+
isPrimary: z102.boolean()
|
7037
|
+
});
|
7038
|
+
var ContactEmailsSchema2 = z102.object({
|
7039
|
+
id: z102.string().uuid(),
|
7040
|
+
createdAt: z102.date(),
|
7041
|
+
updatedAt: z102.date(),
|
7042
|
+
deletedAt: z102.date().nullable(),
|
7043
|
+
email: z102.string(),
|
7044
|
+
isPrimary: z102.boolean()
|
7045
|
+
});
|
7046
|
+
var ContactCustomFieldSchema2 = z102.object({
|
7047
|
+
id: z102.string().uuid(),
|
7048
|
+
createdAt: z102.date(),
|
7049
|
+
updatedAt: z102.date(),
|
7050
|
+
deletedAt: z102.date().nullable(),
|
7051
|
+
textValue: z102.string().nullable(),
|
7052
|
+
booleanValue: z102.boolean().nullable(),
|
7053
|
+
numberValue: z102.number().nullable(),
|
7054
|
+
dateValue: z102.date().nullable(),
|
7055
|
+
attribute: AttributeSchema.omit({ options: true, group: true }),
|
7056
|
+
uploads: z102.array(UploadSchema)
|
7057
|
+
});
|
7058
|
+
var ContactEntityTypesSchema2 = z102.object({
|
7059
|
+
id: z102.string().uuid(),
|
7060
|
+
createdAt: z102.date(),
|
7061
|
+
updatedAt: z102.date(),
|
7062
|
+
deletedAt: z102.date().nullable(),
|
7063
|
+
entity: z102.string(),
|
7064
|
+
description: z102.string().nullable()
|
7065
|
+
});
|
7066
|
+
var ContactActivitySchema2 = z102.object({
|
7067
|
+
id: z102.string().uuid(),
|
7068
|
+
createdAt: z102.date(),
|
7069
|
+
updatedAt: z102.date(),
|
7070
|
+
deletedAt: z102.date().nullable(),
|
7071
|
+
entityId: z102.string(),
|
7072
|
+
description: z102.string(),
|
6918
7073
|
entityType: ContactEntityTypesSchema2
|
6919
7074
|
});
|
6920
|
-
var ContactSchema2 =
|
6921
|
-
id:
|
6922
|
-
createdAt:
|
6923
|
-
updatedAt:
|
6924
|
-
deletedAt:
|
6925
|
-
name:
|
6926
|
-
address:
|
6927
|
-
channel:
|
6928
|
-
notes:
|
6929
|
-
contactProfile:
|
6930
|
-
socialProfileUrl:
|
6931
|
-
tags:
|
7075
|
+
var ContactSchema2 = z102.object({
|
7076
|
+
id: z102.string().uuid(),
|
7077
|
+
createdAt: z102.date(),
|
7078
|
+
updatedAt: z102.date(),
|
7079
|
+
deletedAt: z102.date().nullable(),
|
7080
|
+
name: z102.string(),
|
7081
|
+
address: z102.string().nullable(),
|
7082
|
+
channel: z102.string().nullable(),
|
7083
|
+
notes: z102.string().nullable(),
|
7084
|
+
contactProfile: z102.string().nullable(),
|
7085
|
+
socialProfileUrl: z102.string().nullable(),
|
7086
|
+
tags: z102.array(TagSchema),
|
6932
7087
|
company: CompanySchema.omit({ customFields: true }).nullable(),
|
6933
|
-
customFields:
|
6934
|
-
contactEmails:
|
6935
|
-
contactPhones:
|
6936
|
-
activityLogs:
|
7088
|
+
customFields: z102.array(ContactCustomFieldSchema2),
|
7089
|
+
contactEmails: z102.array(ContactEmailsSchema2),
|
7090
|
+
contactPhones: z102.array(ContactPhonesSchema2),
|
7091
|
+
activityLogs: z102.array(ContactActivitySchema2).optional()
|
6937
7092
|
});
|
6938
7093
|
|
6939
7094
|
// src/public-api/validation.ts
|
6940
7095
|
var ContactContractValidationSchema2 = {
|
6941
7096
|
create: {
|
6942
|
-
request:
|
6943
|
-
name:
|
6944
|
-
email:
|
6945
|
-
|
6946
|
-
email:
|
6947
|
-
isPrimary:
|
7097
|
+
request: z103.object({
|
7098
|
+
name: z103.string(),
|
7099
|
+
email: z103.array(
|
7100
|
+
z103.object({
|
7101
|
+
email: z103.string().email(),
|
7102
|
+
isPrimary: z103.boolean()
|
6948
7103
|
})
|
6949
7104
|
).optional(),
|
6950
|
-
channel:
|
6951
|
-
address:
|
6952
|
-
phone:
|
6953
|
-
|
6954
|
-
phone:
|
6955
|
-
isPrimary:
|
7105
|
+
channel: z103.string().optional(),
|
7106
|
+
address: z103.string().optional(),
|
7107
|
+
phone: z103.array(
|
7108
|
+
z103.object({
|
7109
|
+
phone: z103.string(),
|
7110
|
+
isPrimary: z103.boolean()
|
6956
7111
|
})
|
6957
7112
|
).optional(),
|
6958
|
-
notes:
|
6959
|
-
tags:
|
6960
|
-
company:
|
6961
|
-
customFields:
|
7113
|
+
notes: z103.string().optional(),
|
7114
|
+
tags: z103.array(z103.string()).optional(),
|
7115
|
+
company: z103.string().optional(),
|
7116
|
+
customFields: z103.record(z103.string())
|
6962
7117
|
// Dynamic keys with string values
|
6963
7118
|
}),
|
6964
7119
|
response: ContactSchema2
|
6965
7120
|
},
|
6966
7121
|
getById: {
|
6967
|
-
request:
|
6968
|
-
id:
|
7122
|
+
request: z103.object({
|
7123
|
+
id: z103.string().uuid()
|
6969
7124
|
})
|
6970
7125
|
},
|
6971
7126
|
delete: {
|
6972
|
-
request:
|
6973
|
-
id:
|
7127
|
+
request: z103.object({
|
7128
|
+
id: z103.string().uuid()
|
6974
7129
|
})
|
6975
7130
|
},
|
6976
7131
|
getAll: {
|
6977
|
-
request:
|
6978
|
-
page:
|
6979
|
-
pageSize:
|
6980
|
-
keyword:
|
6981
|
-
company:
|
6982
|
-
name:
|
6983
|
-
address:
|
6984
|
-
channel:
|
6985
|
-
selectedDate:
|
6986
|
-
customFields:
|
6987
|
-
|
6988
|
-
attributeId:
|
6989
|
-
type:
|
6990
|
-
value:
|
7132
|
+
request: z103.object({
|
7133
|
+
page: z103.coerce.number().default(1),
|
7134
|
+
pageSize: z103.coerce.number().default(10),
|
7135
|
+
keyword: z103.string().optional(),
|
7136
|
+
company: z103.array(z103.string().uuid()),
|
7137
|
+
name: z103.string(),
|
7138
|
+
address: z103.string(),
|
7139
|
+
channel: z103.array(z103.string()),
|
7140
|
+
selectedDate: z103.string(),
|
7141
|
+
customFields: z103.array(
|
7142
|
+
z103.object({
|
7143
|
+
attributeId: z103.string().uuid(),
|
7144
|
+
type: z103.string(),
|
7145
|
+
value: z103.union([z103.string(), z103.array(z103.string())])
|
6991
7146
|
})
|
6992
7147
|
),
|
6993
|
-
tags:
|
6994
|
-
phone:
|
6995
|
-
email:
|
6996
|
-
notes:
|
7148
|
+
tags: z103.array(z103.string().uuid()),
|
7149
|
+
phone: z103.string(),
|
7150
|
+
email: z103.string(),
|
7151
|
+
notes: z103.string()
|
6997
7152
|
}).partial(),
|
6998
7153
|
response: {
|
6999
|
-
page:
|
7000
|
-
pageSize:
|
7001
|
-
total:
|
7002
|
-
lastPage:
|
7003
|
-
data:
|
7154
|
+
page: z103.number(),
|
7155
|
+
pageSize: z103.number(),
|
7156
|
+
total: z103.number(),
|
7157
|
+
lastPage: z103.number(),
|
7158
|
+
data: z103.array(ContactSchema2)
|
7004
7159
|
}
|
7005
7160
|
},
|
7006
7161
|
getContactFields: {
|
7007
|
-
request:
|
7008
|
-
page:
|
7009
|
-
pageSize:
|
7162
|
+
request: z103.object({
|
7163
|
+
page: z103.coerce.number().default(1),
|
7164
|
+
pageSize: z103.coerce.number().default(10)
|
7010
7165
|
}).partial(),
|
7011
7166
|
response: {
|
7012
|
-
page:
|
7013
|
-
pageSize:
|
7014
|
-
total:
|
7015
|
-
lastPage:
|
7016
|
-
data:
|
7167
|
+
page: z103.number(),
|
7168
|
+
pageSize: z103.number(),
|
7169
|
+
total: z103.number(),
|
7170
|
+
lastPage: z103.number(),
|
7171
|
+
data: z103.array(ContactCustomFieldSchema2)
|
7017
7172
|
}
|
7018
7173
|
},
|
7019
7174
|
addAttachments: {
|
7020
|
-
request:
|
7021
|
-
contactId:
|
7022
|
-
attributeId:
|
7023
|
-
contactAttachmentRecords:
|
7024
|
-
|
7025
|
-
bucketName:
|
7026
|
-
fileKey:
|
7027
|
-
fileName:
|
7028
|
-
fileSize:
|
7029
|
-
url:
|
7175
|
+
request: z103.object({
|
7176
|
+
contactId: z103.string(),
|
7177
|
+
attributeId: z103.string().uuid(),
|
7178
|
+
contactAttachmentRecords: z103.array(
|
7179
|
+
z103.object({
|
7180
|
+
bucketName: z103.string(),
|
7181
|
+
fileKey: z103.string(),
|
7182
|
+
fileName: z103.string(),
|
7183
|
+
fileSize: z103.coerce.number(),
|
7184
|
+
url: z103.string()
|
7030
7185
|
})
|
7031
7186
|
)
|
7032
7187
|
}),
|
@@ -7035,7 +7190,7 @@ var ContactContractValidationSchema2 = {
|
|
7035
7190
|
};
|
7036
7191
|
|
7037
7192
|
// src/public-api/index.ts
|
7038
|
-
var publicApiContract =
|
7193
|
+
var publicApiContract = initContract39().router(
|
7039
7194
|
{
|
7040
7195
|
createContact: {
|
7041
7196
|
method: "POST",
|
@@ -7045,11 +7200,11 @@ var publicApiContract = initContract38().router(
|
|
7045
7200
|
201: DefaultSuccessResponseSchema.extend({
|
7046
7201
|
data: ContactSchema2
|
7047
7202
|
}),
|
7048
|
-
400:
|
7049
|
-
message:
|
7203
|
+
400: z104.object({
|
7204
|
+
message: z104.string()
|
7050
7205
|
}),
|
7051
|
-
409:
|
7052
|
-
message:
|
7206
|
+
409: z104.object({
|
7207
|
+
message: z104.string()
|
7053
7208
|
}),
|
7054
7209
|
401: DefaultUnauthorizedSchema,
|
7055
7210
|
404: DefaultNotFoundSchema,
|
@@ -7064,13 +7219,13 @@ var publicApiContract = initContract38().router(
|
|
7064
7219
|
query: GetTagsSchema,
|
7065
7220
|
responses: {
|
7066
7221
|
200: DefaultSuccessResponseSchema.extend({
|
7067
|
-
tags:
|
7222
|
+
tags: z104.array(TagSchema)
|
7068
7223
|
}),
|
7069
|
-
400:
|
7070
|
-
message:
|
7224
|
+
400: z104.object({
|
7225
|
+
message: z104.string()
|
7071
7226
|
}),
|
7072
|
-
409:
|
7073
|
-
message:
|
7227
|
+
409: z104.object({
|
7228
|
+
message: z104.string()
|
7074
7229
|
}),
|
7075
7230
|
401: DefaultUnauthorizedSchema,
|
7076
7231
|
404: DefaultNotFoundSchema,
|
@@ -7086,11 +7241,11 @@ var publicApiContract = initContract38().router(
|
|
7086
7241
|
200: DefaultSuccessResponseSchema.extend(
|
7087
7242
|
ContactContractValidationSchema2.getAll.response
|
7088
7243
|
),
|
7089
|
-
400:
|
7090
|
-
message:
|
7244
|
+
400: z104.object({
|
7245
|
+
message: z104.string()
|
7091
7246
|
}),
|
7092
|
-
409:
|
7093
|
-
message:
|
7247
|
+
409: z104.object({
|
7248
|
+
message: z104.string()
|
7094
7249
|
}),
|
7095
7250
|
401: DefaultUnauthorizedSchema,
|
7096
7251
|
404: DefaultNotFoundSchema,
|
@@ -7107,11 +7262,11 @@ var publicApiContract = initContract38().router(
|
|
7107
7262
|
200: DefaultSuccessResponseSchema.extend(
|
7108
7263
|
ContactContractValidationSchema2.getContactFields.response
|
7109
7264
|
),
|
7110
|
-
400:
|
7111
|
-
message:
|
7265
|
+
400: z104.object({
|
7266
|
+
message: z104.string()
|
7112
7267
|
}),
|
7113
|
-
409:
|
7114
|
-
message:
|
7268
|
+
409: z104.object({
|
7269
|
+
message: z104.string()
|
7115
7270
|
}),
|
7116
7271
|
401: DefaultUnauthorizedSchema,
|
7117
7272
|
404: DefaultNotFoundSchema,
|
@@ -7125,17 +7280,17 @@ var publicApiContract = initContract38().router(
|
|
7125
7280
|
path: "/contacts/:id",
|
7126
7281
|
pathParams: ContactContractValidationSchema2.getById.request,
|
7127
7282
|
responses: {
|
7128
|
-
200:
|
7129
|
-
status:
|
7130
|
-
message:
|
7283
|
+
200: z104.object({
|
7284
|
+
status: z104.string(),
|
7285
|
+
message: z104.string(),
|
7131
7286
|
data: ContactSchema2,
|
7132
|
-
requestId:
|
7287
|
+
requestId: z104.string()
|
7133
7288
|
}),
|
7134
|
-
400:
|
7135
|
-
message:
|
7289
|
+
400: z104.object({
|
7290
|
+
message: z104.string()
|
7136
7291
|
}),
|
7137
|
-
409:
|
7138
|
-
message:
|
7292
|
+
409: z104.object({
|
7293
|
+
message: z104.string()
|
7139
7294
|
}),
|
7140
7295
|
401: DefaultUnauthorizedSchema,
|
7141
7296
|
404: DefaultNotFoundSchema,
|
@@ -7153,11 +7308,11 @@ var publicApiContract = initContract38().router(
|
|
7153
7308
|
201: DefaultSuccessResponseSchema.extend({
|
7154
7309
|
message: ContactCustomFieldSchema2
|
7155
7310
|
}),
|
7156
|
-
400:
|
7157
|
-
message:
|
7311
|
+
400: z104.object({
|
7312
|
+
message: z104.string()
|
7158
7313
|
}),
|
7159
|
-
409:
|
7160
|
-
message:
|
7314
|
+
409: z104.object({
|
7315
|
+
message: z104.string()
|
7161
7316
|
}),
|
7162
7317
|
401: DefaultUnauthorizedSchema,
|
7163
7318
|
404: DefaultNotFoundSchema,
|
@@ -7171,17 +7326,17 @@ var publicApiContract = initContract38().router(
|
|
7171
7326
|
path: "/contacts/:id",
|
7172
7327
|
pathParams: ContactContractValidationSchema2.getById.request,
|
7173
7328
|
responses: {
|
7174
|
-
200:
|
7175
|
-
status:
|
7176
|
-
message:
|
7329
|
+
200: z104.object({
|
7330
|
+
status: z104.string(),
|
7331
|
+
message: z104.string(),
|
7177
7332
|
data: ContactSchema2,
|
7178
|
-
requestId:
|
7333
|
+
requestId: z104.string()
|
7179
7334
|
}),
|
7180
|
-
400:
|
7181
|
-
message:
|
7335
|
+
400: z104.object({
|
7336
|
+
message: z104.string()
|
7182
7337
|
}),
|
7183
|
-
409:
|
7184
|
-
message:
|
7338
|
+
409: z104.object({
|
7339
|
+
message: z104.string()
|
7185
7340
|
}),
|
7186
7341
|
401: DefaultUnauthorizedSchema,
|
7187
7342
|
404: DefaultNotFoundSchema,
|
@@ -7195,17 +7350,17 @@ var publicApiContract = initContract38().router(
|
|
7195
7350
|
path: "/contacts/:id",
|
7196
7351
|
pathParams: ContactContractValidationSchema2.delete.request,
|
7197
7352
|
responses: {
|
7198
|
-
200:
|
7199
|
-
status:
|
7200
|
-
message:
|
7353
|
+
200: z104.object({
|
7354
|
+
status: z104.string(),
|
7355
|
+
message: z104.string(),
|
7201
7356
|
data: ContactSchema2,
|
7202
|
-
requestId:
|
7357
|
+
requestId: z104.string()
|
7203
7358
|
}),
|
7204
|
-
400:
|
7205
|
-
message:
|
7359
|
+
400: z104.object({
|
7360
|
+
message: z104.string()
|
7206
7361
|
}),
|
7207
|
-
409:
|
7208
|
-
message:
|
7362
|
+
409: z104.object({
|
7363
|
+
message: z104.string()
|
7209
7364
|
}),
|
7210
7365
|
401: DefaultUnauthorizedSchema,
|
7211
7366
|
404: DefaultNotFoundSchema,
|
@@ -7222,7 +7377,7 @@ var publicApiContract = initContract38().router(
|
|
7222
7377
|
);
|
7223
7378
|
|
7224
7379
|
// src/contract.ts
|
7225
|
-
var apiContract =
|
7380
|
+
var apiContract = initContract40().router({
|
7226
7381
|
auth: authContract,
|
7227
7382
|
mail: mailContract,
|
7228
7383
|
cxLog: cxLogContract,
|
@@ -7243,37 +7398,38 @@ var apiContract = initContract39().router({
|
|
7243
7398
|
userPresenceStatusLog: userPresenceStatusLogContract,
|
7244
7399
|
company: companyContract,
|
7245
7400
|
evaluateForm: evaluateFormContract,
|
7246
|
-
upload: uploadContract
|
7401
|
+
upload: uploadContract,
|
7402
|
+
snippet: snippetContract
|
7247
7403
|
});
|
7248
|
-
var contactContract2 =
|
7404
|
+
var contactContract2 = initContract40().router({
|
7249
7405
|
contact: contactContract
|
7250
7406
|
});
|
7251
|
-
var ticketContract2 =
|
7407
|
+
var ticketContract2 = initContract40().router({
|
7252
7408
|
ticket: ticketContract
|
7253
7409
|
});
|
7254
|
-
var extensionContract2 =
|
7410
|
+
var extensionContract2 = initContract40().router({
|
7255
7411
|
extension: extensionContract
|
7256
7412
|
});
|
7257
|
-
var commentActivityContract =
|
7413
|
+
var commentActivityContract = initContract40().router({
|
7258
7414
|
comment: commentContract,
|
7259
7415
|
activityLog: activityLogContract
|
7260
7416
|
});
|
7261
|
-
var platformContract =
|
7417
|
+
var platformContract = initContract40().router({
|
7262
7418
|
line: lineContract,
|
7263
7419
|
messenger: messengerContract,
|
7264
7420
|
instagram: instagramContract,
|
7265
7421
|
viber: viberContract
|
7266
7422
|
});
|
7267
|
-
var chatContract =
|
7423
|
+
var chatContract = initContract40().router({
|
7268
7424
|
main: mainChatContract
|
7269
7425
|
});
|
7270
|
-
var telephonyContract =
|
7426
|
+
var telephonyContract = initContract40().router({
|
7271
7427
|
telephonyCdr: telephonyCdrContract
|
7272
7428
|
});
|
7273
|
-
var notificationContract =
|
7429
|
+
var notificationContract = initContract40().router({
|
7274
7430
|
notification: userNotificationContract
|
7275
7431
|
});
|
7276
|
-
var publicApiContract2 =
|
7432
|
+
var publicApiContract2 = initContract40().router({
|
7277
7433
|
publicApi: publicApiContract
|
7278
7434
|
});
|
7279
7435
|
export {
|
@@ -7298,6 +7454,7 @@ export {
|
|
7298
7454
|
platformContract,
|
7299
7455
|
publicApiContract2 as publicApiContract,
|
7300
7456
|
receiveMessageContract,
|
7457
|
+
snippetContract,
|
7301
7458
|
tagContract,
|
7302
7459
|
telephonyCdrContract,
|
7303
7460
|
telephonyContract,
|