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