repzo 1.0.37 → 1.0.38
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/lib/index.d.ts +38 -0
- package/lib/index.js +80 -0
- package/lib/types/index.d.ts +142 -1
- package/package.json +1 -1
- package/src/index.ts +109 -0
- package/src/types/index.ts +146 -1
package/lib/index.d.ts
CHANGED
|
@@ -340,6 +340,44 @@ export default class Repzo {
|
|
|
340
340
|
id: Service.Channel.Remove.ID
|
|
341
341
|
) => Promise<Service.Channel.Remove.Result>;
|
|
342
342
|
};
|
|
343
|
+
speciality: {
|
|
344
|
+
_path: string;
|
|
345
|
+
find: (
|
|
346
|
+
params?: Service.Speciality.Find.Params
|
|
347
|
+
) => Promise<Service.Speciality.Find.Result>;
|
|
348
|
+
get: (
|
|
349
|
+
id: Service.Speciality.Get.ID
|
|
350
|
+
) => Promise<Service.Speciality.Get.Result>;
|
|
351
|
+
create: (
|
|
352
|
+
body: Service.Speciality.Create.Body
|
|
353
|
+
) => Promise<Service.Speciality.Create.Result>;
|
|
354
|
+
update: (
|
|
355
|
+
id: Service.Speciality.Update.ID,
|
|
356
|
+
body: Service.Speciality.Update.Body
|
|
357
|
+
) => Promise<Service.Speciality.Update.Result>;
|
|
358
|
+
remove: (
|
|
359
|
+
id: Service.Speciality.Remove.ID
|
|
360
|
+
) => Promise<Service.Speciality.Remove.Result>;
|
|
361
|
+
};
|
|
362
|
+
clientContact: {
|
|
363
|
+
_path: string;
|
|
364
|
+
find: (
|
|
365
|
+
params?: Service.ClientContact.Find.Params
|
|
366
|
+
) => Promise<Service.ClientContact.Find.Result>;
|
|
367
|
+
get: (
|
|
368
|
+
id: Service.ClientContact.Get.ID
|
|
369
|
+
) => Promise<Service.ClientContact.Get.Result>;
|
|
370
|
+
create: (
|
|
371
|
+
body: Service.ClientContact.Create.Body
|
|
372
|
+
) => Promise<Service.ClientContact.Create.Result>;
|
|
373
|
+
update: (
|
|
374
|
+
id: Service.ClientContact.Update.ID,
|
|
375
|
+
body: Service.ClientContact.Update.Body
|
|
376
|
+
) => Promise<Service.ClientContact.Update.Result>;
|
|
377
|
+
remove: (
|
|
378
|
+
id: Service.ClientContact.Remove.ID
|
|
379
|
+
) => Promise<Service.ClientContact.Remove.Result>;
|
|
380
|
+
};
|
|
343
381
|
paymentTerm: {
|
|
344
382
|
_path: string;
|
|
345
383
|
find: (
|
package/lib/index.js
CHANGED
|
@@ -693,6 +693,86 @@ export default class Repzo {
|
|
|
693
693
|
return res;
|
|
694
694
|
},
|
|
695
695
|
};
|
|
696
|
+
this.speciality = {
|
|
697
|
+
_path: "/speciality",
|
|
698
|
+
find: async (params) => {
|
|
699
|
+
let res = await this._fetch(
|
|
700
|
+
this.svAPIEndpoint,
|
|
701
|
+
this.speciality._path,
|
|
702
|
+
params
|
|
703
|
+
);
|
|
704
|
+
return res;
|
|
705
|
+
},
|
|
706
|
+
get: async (id) => {
|
|
707
|
+
return await this._fetch(
|
|
708
|
+
this.svAPIEndpoint,
|
|
709
|
+
this.speciality._path + `/${id}`
|
|
710
|
+
);
|
|
711
|
+
},
|
|
712
|
+
create: async (body) => {
|
|
713
|
+
let res = await this._create(
|
|
714
|
+
this.svAPIEndpoint,
|
|
715
|
+
this.speciality._path,
|
|
716
|
+
body
|
|
717
|
+
);
|
|
718
|
+
return res;
|
|
719
|
+
},
|
|
720
|
+
update: async (id, body) => {
|
|
721
|
+
let res = await this._update(
|
|
722
|
+
this.svAPIEndpoint,
|
|
723
|
+
this.speciality._path + `/${id}`,
|
|
724
|
+
body
|
|
725
|
+
);
|
|
726
|
+
return res;
|
|
727
|
+
},
|
|
728
|
+
remove: async (id) => {
|
|
729
|
+
let res = await this._delete(
|
|
730
|
+
this.svAPIEndpoint,
|
|
731
|
+
this.speciality._path + `/${id}`
|
|
732
|
+
);
|
|
733
|
+
return res;
|
|
734
|
+
},
|
|
735
|
+
};
|
|
736
|
+
this.clientContact = {
|
|
737
|
+
_path: "/client-contact",
|
|
738
|
+
find: async (params) => {
|
|
739
|
+
let res = await this._fetch(
|
|
740
|
+
this.svAPIEndpoint,
|
|
741
|
+
this.clientContact._path,
|
|
742
|
+
params
|
|
743
|
+
);
|
|
744
|
+
return res;
|
|
745
|
+
},
|
|
746
|
+
get: async (id) => {
|
|
747
|
+
return await this._fetch(
|
|
748
|
+
this.svAPIEndpoint,
|
|
749
|
+
this.clientContact._path + `/${id}`
|
|
750
|
+
);
|
|
751
|
+
},
|
|
752
|
+
create: async (body) => {
|
|
753
|
+
let res = await this._create(
|
|
754
|
+
this.svAPIEndpoint,
|
|
755
|
+
this.clientContact._path,
|
|
756
|
+
body
|
|
757
|
+
);
|
|
758
|
+
return res;
|
|
759
|
+
},
|
|
760
|
+
update: async (id, body) => {
|
|
761
|
+
let res = await this._update(
|
|
762
|
+
this.svAPIEndpoint,
|
|
763
|
+
this.clientContact._path + `/${id}`,
|
|
764
|
+
body
|
|
765
|
+
);
|
|
766
|
+
return res;
|
|
767
|
+
},
|
|
768
|
+
remove: async (id) => {
|
|
769
|
+
let res = await this._delete(
|
|
770
|
+
this.svAPIEndpoint,
|
|
771
|
+
this.clientContact._path + `/${id}`
|
|
772
|
+
);
|
|
773
|
+
return res;
|
|
774
|
+
},
|
|
775
|
+
};
|
|
696
776
|
this.paymentTerm = {
|
|
697
777
|
_path: "/paymentterms",
|
|
698
778
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -400,6 +400,7 @@ export declare namespace Service {
|
|
|
400
400
|
client_code?: string;
|
|
401
401
|
contact_name?: string;
|
|
402
402
|
contact_title?: string;
|
|
403
|
+
contacts?: string[];
|
|
403
404
|
country?: string;
|
|
404
405
|
disabled?: boolean;
|
|
405
406
|
formatted_address?: string;
|
|
@@ -465,6 +466,7 @@ export declare namespace Service {
|
|
|
465
466
|
client_code?: string;
|
|
466
467
|
contact_name?: string;
|
|
467
468
|
contact_title?: string;
|
|
469
|
+
contacts?: string[];
|
|
468
470
|
country?: string;
|
|
469
471
|
disabled?: boolean;
|
|
470
472
|
formatted_address?: string;
|
|
@@ -531,7 +533,8 @@ export declare namespace Service {
|
|
|
531
533
|
| "assigned_products"
|
|
532
534
|
| "assigned_product_groups"
|
|
533
535
|
| "speciality"
|
|
534
|
-
| "teams"
|
|
536
|
+
| "teams"
|
|
537
|
+
| "contacts";
|
|
535
538
|
type ClientSchemaWithPopulatedKeys = ClientSchema & {
|
|
536
539
|
assigned_products?:
|
|
537
540
|
| string[]
|
|
@@ -540,6 +543,8 @@ export declare namespace Service {
|
|
|
540
543
|
| string
|
|
541
544
|
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
542
545
|
teams?: string[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
546
|
+
contacts?: string[] | ClientContact.ClientContactSchema;
|
|
547
|
+
speciality?: string[] | Speciality.SpecialitySchema;
|
|
543
548
|
assigned_to?: string[] | Pick<Rep.RepSchema, "_id" | "name">[];
|
|
544
549
|
tags?: string[] | Tag.TagSchema[];
|
|
545
550
|
price_tag?: string | Tag.TagSchema;
|
|
@@ -2107,6 +2112,142 @@ export declare namespace Service {
|
|
|
2107
2112
|
type Result = ChannelSchema;
|
|
2108
2113
|
}
|
|
2109
2114
|
}
|
|
2115
|
+
namespace Speciality {
|
|
2116
|
+
interface SpecialitySchema {
|
|
2117
|
+
_id: string;
|
|
2118
|
+
name: string;
|
|
2119
|
+
local_name?: string;
|
|
2120
|
+
disabled?: boolean;
|
|
2121
|
+
icon?: string;
|
|
2122
|
+
icon_media?: string;
|
|
2123
|
+
company_namespace: string[];
|
|
2124
|
+
createdAt: string;
|
|
2125
|
+
updatedAt: string;
|
|
2126
|
+
__v: number;
|
|
2127
|
+
}
|
|
2128
|
+
interface SpecialityBody {
|
|
2129
|
+
name?: string;
|
|
2130
|
+
local_name?: string;
|
|
2131
|
+
disabled?: boolean;
|
|
2132
|
+
icon?: string;
|
|
2133
|
+
icon_media?: string;
|
|
2134
|
+
company_namespace?: string[];
|
|
2135
|
+
}
|
|
2136
|
+
namespace Find {
|
|
2137
|
+
type Params = DefaultPaginationQueryParams & {
|
|
2138
|
+
_id?: string[] | string;
|
|
2139
|
+
search?: string;
|
|
2140
|
+
name?: string[] | string;
|
|
2141
|
+
local_name?: string[] | string;
|
|
2142
|
+
from_updatedAt?: number;
|
|
2143
|
+
};
|
|
2144
|
+
interface Result extends DefaultPaginationResult {
|
|
2145
|
+
data: SpecialitySchema[];
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
namespace Get {
|
|
2149
|
+
type ID = string;
|
|
2150
|
+
type Result = SpecialitySchema;
|
|
2151
|
+
}
|
|
2152
|
+
namespace Create {
|
|
2153
|
+
interface Body extends SpecialitySchema {
|
|
2154
|
+
name: string;
|
|
2155
|
+
}
|
|
2156
|
+
type Result = SpecialitySchema;
|
|
2157
|
+
}
|
|
2158
|
+
namespace Update {
|
|
2159
|
+
type ID = string;
|
|
2160
|
+
interface Body extends SpecialityBody {
|
|
2161
|
+
_id?: string;
|
|
2162
|
+
createdAt?: string;
|
|
2163
|
+
updatedAt?: string;
|
|
2164
|
+
__v?: number;
|
|
2165
|
+
}
|
|
2166
|
+
type Result = SpecialitySchema;
|
|
2167
|
+
}
|
|
2168
|
+
namespace Remove {
|
|
2169
|
+
type ID = string;
|
|
2170
|
+
type Result = SpecialitySchema;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
namespace ClientContact {
|
|
2174
|
+
interface ClientContactSchema {
|
|
2175
|
+
_id: string;
|
|
2176
|
+
creator: AdminCreator | RepCreator | ClientCreator;
|
|
2177
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
2178
|
+
name: string;
|
|
2179
|
+
local_name?: string;
|
|
2180
|
+
phone1?: string;
|
|
2181
|
+
phone2?: string;
|
|
2182
|
+
email?: string;
|
|
2183
|
+
title?: string;
|
|
2184
|
+
extra_info?: string;
|
|
2185
|
+
disabled?: boolean;
|
|
2186
|
+
media?: string[];
|
|
2187
|
+
cover_photo?: string;
|
|
2188
|
+
integration_meta?: {
|
|
2189
|
+
[key: string]: any;
|
|
2190
|
+
};
|
|
2191
|
+
company_namespace: string[];
|
|
2192
|
+
createdAt: string;
|
|
2193
|
+
updatedAt: string;
|
|
2194
|
+
__v: number;
|
|
2195
|
+
}
|
|
2196
|
+
interface ClientContactBody {
|
|
2197
|
+
name?: string;
|
|
2198
|
+
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
2199
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
2200
|
+
local_name?: string;
|
|
2201
|
+
phone1?: string;
|
|
2202
|
+
phone2?: string;
|
|
2203
|
+
email?: string;
|
|
2204
|
+
title?: string;
|
|
2205
|
+
extra_info?: string;
|
|
2206
|
+
disabled?: boolean;
|
|
2207
|
+
media?: string[];
|
|
2208
|
+
cover_photo?: string;
|
|
2209
|
+
integration_meta?: {
|
|
2210
|
+
[key: string]: any;
|
|
2211
|
+
};
|
|
2212
|
+
company_namespace?: string[];
|
|
2213
|
+
}
|
|
2214
|
+
namespace Find {
|
|
2215
|
+
type Params = DefaultPaginationQueryParams & {
|
|
2216
|
+
_id?: string[] | string;
|
|
2217
|
+
search?: string;
|
|
2218
|
+
name?: string[] | string;
|
|
2219
|
+
from_updatedAt?: number;
|
|
2220
|
+
to_updatedAt?: number;
|
|
2221
|
+
};
|
|
2222
|
+
interface Result extends DefaultPaginationResult {
|
|
2223
|
+
data: ClientContactSchema[];
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
namespace Get {
|
|
2227
|
+
type ID = string;
|
|
2228
|
+
type Result = ClientContactSchema;
|
|
2229
|
+
}
|
|
2230
|
+
namespace Create {
|
|
2231
|
+
interface Body extends ClientContactBody {
|
|
2232
|
+
name: string;
|
|
2233
|
+
}
|
|
2234
|
+
type Result = ClientContactSchema;
|
|
2235
|
+
}
|
|
2236
|
+
namespace Update {
|
|
2237
|
+
type ID = string;
|
|
2238
|
+
interface Body extends ClientContactBody {
|
|
2239
|
+
_id?: string;
|
|
2240
|
+
createdAt?: string;
|
|
2241
|
+
updatedAt?: string;
|
|
2242
|
+
__v?: number;
|
|
2243
|
+
}
|
|
2244
|
+
type Result = ClientContactSchema;
|
|
2245
|
+
}
|
|
2246
|
+
namespace Remove {
|
|
2247
|
+
type ID = string;
|
|
2248
|
+
type Result = ClientContactSchema;
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2110
2251
|
namespace PaymentTerm {
|
|
2111
2252
|
interface PaymentTermSchema {
|
|
2112
2253
|
_id: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1041,7 +1041,116 @@ export default class Repzo {
|
|
|
1041
1041
|
return res;
|
|
1042
1042
|
},
|
|
1043
1043
|
};
|
|
1044
|
+
speciality = {
|
|
1045
|
+
_path: "/speciality",
|
|
1046
|
+
find: async (
|
|
1047
|
+
params?: Service.Speciality.Find.Params
|
|
1048
|
+
): Promise<Service.Speciality.Find.Result> => {
|
|
1049
|
+
let res: Service.Speciality.Find.Result = await this._fetch(
|
|
1050
|
+
this.svAPIEndpoint,
|
|
1051
|
+
this.speciality._path,
|
|
1052
|
+
params
|
|
1053
|
+
);
|
|
1054
|
+
return res;
|
|
1055
|
+
},
|
|
1056
|
+
|
|
1057
|
+
get: async (
|
|
1058
|
+
id: Service.Speciality.Get.ID
|
|
1059
|
+
): Promise<Service.Speciality.Get.Result> => {
|
|
1060
|
+
return await this._fetch(
|
|
1061
|
+
this.svAPIEndpoint,
|
|
1062
|
+
this.speciality._path + `/${id}`
|
|
1063
|
+
);
|
|
1064
|
+
},
|
|
1065
|
+
|
|
1066
|
+
create: async (
|
|
1067
|
+
body: Service.Speciality.Create.Body
|
|
1068
|
+
): Promise<Service.Speciality.Create.Result> => {
|
|
1069
|
+
let res = await this._create(
|
|
1070
|
+
this.svAPIEndpoint,
|
|
1071
|
+
this.speciality._path,
|
|
1072
|
+
body
|
|
1073
|
+
);
|
|
1074
|
+
return res;
|
|
1075
|
+
},
|
|
1044
1076
|
|
|
1077
|
+
update: async (
|
|
1078
|
+
id: Service.Speciality.Update.ID,
|
|
1079
|
+
body: Service.Speciality.Update.Body
|
|
1080
|
+
): Promise<Service.Speciality.Update.Result> => {
|
|
1081
|
+
let res: Service.Speciality.Update.Result = await this._update(
|
|
1082
|
+
this.svAPIEndpoint,
|
|
1083
|
+
this.speciality._path + `/${id}`,
|
|
1084
|
+
body
|
|
1085
|
+
);
|
|
1086
|
+
return res;
|
|
1087
|
+
},
|
|
1088
|
+
|
|
1089
|
+
remove: async (
|
|
1090
|
+
id: Service.Speciality.Remove.ID
|
|
1091
|
+
): Promise<Service.Speciality.Remove.Result> => {
|
|
1092
|
+
let res: Service.Speciality.Remove.Result = await this._delete(
|
|
1093
|
+
this.svAPIEndpoint,
|
|
1094
|
+
this.speciality._path + `/${id}`
|
|
1095
|
+
);
|
|
1096
|
+
return res;
|
|
1097
|
+
},
|
|
1098
|
+
};
|
|
1099
|
+
clientContact = {
|
|
1100
|
+
_path: "/client-contact",
|
|
1101
|
+
find: async (
|
|
1102
|
+
params?: Service.ClientContact.Find.Params
|
|
1103
|
+
): Promise<Service.ClientContact.Find.Result> => {
|
|
1104
|
+
let res: Service.ClientContact.Find.Result = await this._fetch(
|
|
1105
|
+
this.svAPIEndpoint,
|
|
1106
|
+
this.clientContact._path,
|
|
1107
|
+
params
|
|
1108
|
+
);
|
|
1109
|
+
return res;
|
|
1110
|
+
},
|
|
1111
|
+
|
|
1112
|
+
get: async (
|
|
1113
|
+
id: Service.ClientContact.Get.ID
|
|
1114
|
+
): Promise<Service.ClientContact.Get.Result> => {
|
|
1115
|
+
return await this._fetch(
|
|
1116
|
+
this.svAPIEndpoint,
|
|
1117
|
+
this.clientContact._path + `/${id}`
|
|
1118
|
+
);
|
|
1119
|
+
},
|
|
1120
|
+
|
|
1121
|
+
create: async (
|
|
1122
|
+
body: Service.ClientContact.Create.Body
|
|
1123
|
+
): Promise<Service.ClientContact.Create.Result> => {
|
|
1124
|
+
let res = await this._create(
|
|
1125
|
+
this.svAPIEndpoint,
|
|
1126
|
+
this.clientContact._path,
|
|
1127
|
+
body
|
|
1128
|
+
);
|
|
1129
|
+
return res;
|
|
1130
|
+
},
|
|
1131
|
+
|
|
1132
|
+
update: async (
|
|
1133
|
+
id: Service.ClientContact.Update.ID,
|
|
1134
|
+
body: Service.ClientContact.Update.Body
|
|
1135
|
+
): Promise<Service.ClientContact.Update.Result> => {
|
|
1136
|
+
let res: Service.ClientContact.Update.Result = await this._update(
|
|
1137
|
+
this.svAPIEndpoint,
|
|
1138
|
+
this.clientContact._path + `/${id}`,
|
|
1139
|
+
body
|
|
1140
|
+
);
|
|
1141
|
+
return res;
|
|
1142
|
+
},
|
|
1143
|
+
|
|
1144
|
+
remove: async (
|
|
1145
|
+
id: Service.ClientContact.Remove.ID
|
|
1146
|
+
): Promise<Service.ClientContact.Remove.Result> => {
|
|
1147
|
+
let res: Service.ClientContact.Remove.Result = await this._delete(
|
|
1148
|
+
this.svAPIEndpoint,
|
|
1149
|
+
this.clientContact._path + `/${id}`
|
|
1150
|
+
);
|
|
1151
|
+
return res;
|
|
1152
|
+
},
|
|
1153
|
+
};
|
|
1045
1154
|
paymentTerm = {
|
|
1046
1155
|
_path: "/paymentterms",
|
|
1047
1156
|
find: async (
|
package/src/types/index.ts
CHANGED
|
@@ -404,6 +404,7 @@ export namespace Service {
|
|
|
404
404
|
client_code?: string;
|
|
405
405
|
contact_name?: string;
|
|
406
406
|
contact_title?: string;
|
|
407
|
+
contacts?: string[];
|
|
407
408
|
country?: string;
|
|
408
409
|
disabled?: boolean;
|
|
409
410
|
formatted_address?: string;
|
|
@@ -465,6 +466,7 @@ export namespace Service {
|
|
|
465
466
|
client_code?: string;
|
|
466
467
|
contact_name?: string;
|
|
467
468
|
contact_title?: string;
|
|
469
|
+
contacts?: string[];
|
|
468
470
|
country?: string;
|
|
469
471
|
disabled?: boolean;
|
|
470
472
|
formatted_address?: string;
|
|
@@ -527,7 +529,8 @@ export namespace Service {
|
|
|
527
529
|
| "assigned_products"
|
|
528
530
|
| "assigned_product_groups"
|
|
529
531
|
| "speciality"
|
|
530
|
-
| "teams"
|
|
532
|
+
| "teams"
|
|
533
|
+
| "contacts";
|
|
531
534
|
|
|
532
535
|
type ClientSchemaWithPopulatedKeys = ClientSchema & {
|
|
533
536
|
assigned_products?:
|
|
@@ -537,6 +540,8 @@ export namespace Service {
|
|
|
537
540
|
| string
|
|
538
541
|
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
539
542
|
teams?: string[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
543
|
+
contacts?: string[] | ClientContact.ClientContactSchema;
|
|
544
|
+
speciality?: string[] | Speciality.SpecialitySchema;
|
|
540
545
|
assigned_to?: string[] | Pick<Rep.RepSchema, "_id" | "name">[];
|
|
541
546
|
tags?: string[] | Tag.TagSchema[];
|
|
542
547
|
price_tag?: string | Tag.TagSchema;
|
|
@@ -2150,7 +2155,147 @@ export namespace Service {
|
|
|
2150
2155
|
export type Result = ChannelSchema;
|
|
2151
2156
|
}
|
|
2152
2157
|
}
|
|
2158
|
+
export namespace Speciality {
|
|
2159
|
+
export interface SpecialitySchema {
|
|
2160
|
+
_id: string;
|
|
2161
|
+
name: string;
|
|
2162
|
+
local_name?: string;
|
|
2163
|
+
disabled?: boolean;
|
|
2164
|
+
icon?: string;
|
|
2165
|
+
icon_media?: string;
|
|
2166
|
+
company_namespace: string[];
|
|
2167
|
+
createdAt: string;
|
|
2168
|
+
updatedAt: string;
|
|
2169
|
+
__v: number;
|
|
2170
|
+
}
|
|
2171
|
+
export interface SpecialityBody {
|
|
2172
|
+
name?: string;
|
|
2173
|
+
local_name?: string;
|
|
2174
|
+
disabled?: boolean;
|
|
2175
|
+
icon?: string;
|
|
2176
|
+
icon_media?: string;
|
|
2177
|
+
company_namespace?: string[];
|
|
2178
|
+
}
|
|
2179
|
+
export namespace Find {
|
|
2180
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
2181
|
+
_id?: string[] | string;
|
|
2182
|
+
search?: string;
|
|
2183
|
+
name?: string[] | string;
|
|
2184
|
+
local_name?: string[] | string;
|
|
2185
|
+
from_updatedAt?: number;
|
|
2186
|
+
};
|
|
2187
|
+
export interface Result extends DefaultPaginationResult {
|
|
2188
|
+
data: SpecialitySchema[];
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
export namespace Get {
|
|
2193
|
+
export type ID = string;
|
|
2194
|
+
export type Result = SpecialitySchema;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
export namespace Create {
|
|
2198
|
+
export interface Body extends SpecialitySchema {
|
|
2199
|
+
name: string;
|
|
2200
|
+
}
|
|
2201
|
+
export type Result = SpecialitySchema;
|
|
2202
|
+
}
|
|
2153
2203
|
|
|
2204
|
+
export namespace Update {
|
|
2205
|
+
export type ID = string;
|
|
2206
|
+
export interface Body extends SpecialityBody {
|
|
2207
|
+
_id?: string;
|
|
2208
|
+
createdAt?: string;
|
|
2209
|
+
updatedAt?: string;
|
|
2210
|
+
__v?: number;
|
|
2211
|
+
}
|
|
2212
|
+
export type Result = SpecialitySchema;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
export namespace Remove {
|
|
2216
|
+
export type ID = string;
|
|
2217
|
+
export type Result = SpecialitySchema;
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
export namespace ClientContact {
|
|
2221
|
+
export interface ClientContactSchema {
|
|
2222
|
+
_id: string;
|
|
2223
|
+
creator: AdminCreator | RepCreator | ClientCreator;
|
|
2224
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
2225
|
+
name: string;
|
|
2226
|
+
local_name?: string;
|
|
2227
|
+
phone1?: string;
|
|
2228
|
+
phone2?: string;
|
|
2229
|
+
email?: string;
|
|
2230
|
+
title?: string;
|
|
2231
|
+
extra_info?: string;
|
|
2232
|
+
disabled?: boolean;
|
|
2233
|
+
media?: string[];
|
|
2234
|
+
cover_photo?: string;
|
|
2235
|
+
integration_meta?: { [key: string]: any };
|
|
2236
|
+
company_namespace: string[];
|
|
2237
|
+
createdAt: string;
|
|
2238
|
+
updatedAt: string;
|
|
2239
|
+
__v: number;
|
|
2240
|
+
}
|
|
2241
|
+
export interface ClientContactBody {
|
|
2242
|
+
name?: string;
|
|
2243
|
+
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
2244
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
2245
|
+
local_name?: string;
|
|
2246
|
+
phone1?: string;
|
|
2247
|
+
phone2?: string;
|
|
2248
|
+
email?: string;
|
|
2249
|
+
title?: string;
|
|
2250
|
+
extra_info?: string;
|
|
2251
|
+
disabled?: boolean;
|
|
2252
|
+
media?: string[];
|
|
2253
|
+
cover_photo?: string;
|
|
2254
|
+
integration_meta?: { [key: string]: any };
|
|
2255
|
+
company_namespace?: string[];
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
export namespace Find {
|
|
2259
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
2260
|
+
_id?: string[] | string;
|
|
2261
|
+
search?: string;
|
|
2262
|
+
name?: string[] | string;
|
|
2263
|
+
from_updatedAt?: number;
|
|
2264
|
+
to_updatedAt?: number;
|
|
2265
|
+
};
|
|
2266
|
+
export interface Result extends DefaultPaginationResult {
|
|
2267
|
+
data: ClientContactSchema[];
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
export namespace Get {
|
|
2272
|
+
export type ID = string;
|
|
2273
|
+
export type Result = ClientContactSchema;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
export namespace Create {
|
|
2277
|
+
export interface Body extends ClientContactBody {
|
|
2278
|
+
name: string;
|
|
2279
|
+
}
|
|
2280
|
+
export type Result = ClientContactSchema;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
export namespace Update {
|
|
2284
|
+
export type ID = string;
|
|
2285
|
+
export interface Body extends ClientContactBody {
|
|
2286
|
+
_id?: string;
|
|
2287
|
+
createdAt?: string;
|
|
2288
|
+
updatedAt?: string;
|
|
2289
|
+
__v?: number;
|
|
2290
|
+
}
|
|
2291
|
+
export type Result = ClientContactSchema;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
export namespace Remove {
|
|
2295
|
+
export type ID = string;
|
|
2296
|
+
export type Result = ClientContactSchema;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2154
2299
|
export namespace PaymentTerm {
|
|
2155
2300
|
export interface PaymentTermSchema {
|
|
2156
2301
|
_id: string;
|