repzo 1.0.278 → 1.0.280
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/changelog.md +2 -0
- package/lib/index.d.ts +42 -2
- package/lib/index.js +97 -0
- package/lib/types/index.d.ts +460 -1
- package/package.json +1 -1
- package/src/index.ts +223 -0
- package/src/oas/calendar.yaml +329 -0
- package/src/oas/line-target.yaml +208 -0
- package/src/oas/plan.yaml +258 -0
- package/src/oas/target-rule.yaml +256 -0
- package/src/types/index.ts +619 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -15794,6 +15794,9 @@ export declare namespace Service {
|
|
|
15794
15794
|
multiply_factor?: number;
|
|
15795
15795
|
none_zero?: boolean;
|
|
15796
15796
|
is_timestamp?: boolean;
|
|
15797
|
+
unique?: boolean;
|
|
15798
|
+
ignore_disabled_in_unique?: boolean;
|
|
15799
|
+
allow_unique?: boolean;
|
|
15797
15800
|
}
|
|
15798
15801
|
export interface ReferenceValidation {
|
|
15799
15802
|
data_type?: "reference";
|
|
@@ -15814,6 +15817,9 @@ export declare namespace Service {
|
|
|
15814
15817
|
min?: number;
|
|
15815
15818
|
max?: number;
|
|
15816
15819
|
enum?: string[];
|
|
15820
|
+
unique?: boolean;
|
|
15821
|
+
ignore_disabled_in_unique?: boolean;
|
|
15822
|
+
allow_unique?: boolean;
|
|
15817
15823
|
}
|
|
15818
15824
|
interface BasicData {
|
|
15819
15825
|
creator: AdminCreator;
|
|
@@ -15903,7 +15909,7 @@ export declare namespace Service {
|
|
|
15903
15909
|
export {};
|
|
15904
15910
|
}
|
|
15905
15911
|
namespace NotificationsCenter {
|
|
15906
|
-
export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields" | "update-speciality" | "update-clm-presentation" | "update-clm-sequence" | "update-clm-slide" | "update-promotions";
|
|
15912
|
+
export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields" | "update-speciality" | "update-clm-presentation" | "update-clm-sequence" | "update-clm-slide" | "update-promotions" | "ai-chat-navigate" | "ai-chat-api-call" | "ai-chat-message-update" | "ai-chat-message-amend" | "update-delivery-note" | "update-item-status-type";
|
|
15907
15913
|
export interface Data {
|
|
15908
15914
|
_id: StringId;
|
|
15909
15915
|
command: Command;
|
|
@@ -19100,6 +19106,459 @@ export declare namespace Service {
|
|
|
19100
19106
|
type Result = Data;
|
|
19101
19107
|
}
|
|
19102
19108
|
}
|
|
19109
|
+
namespace TargetRule {
|
|
19110
|
+
type RuleType = "rep-visit" | "time-clock" | "rep-photo" | "rep-invoice" | "rep-proforma" | "item-status" | "rep-payment";
|
|
19111
|
+
type Period = "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
19112
|
+
interface Point {
|
|
19113
|
+
ratio: number;
|
|
19114
|
+
points: number;
|
|
19115
|
+
}
|
|
19116
|
+
interface RepVisitFilter {
|
|
19117
|
+
filter: "chain" | "channel" | "country" | "city" | "state" | "client" | "photoTag" | "clientTag" | "areaTag" | "from_total_time" | "to_total_time" | "from_call_total_time" | "to_call_total_time" | "feedback" | "activity" | "speciality";
|
|
19118
|
+
value: any[];
|
|
19119
|
+
photoCount?: number;
|
|
19120
|
+
}
|
|
19121
|
+
interface RepVisitDetails {
|
|
19122
|
+
type?: "rep-visit";
|
|
19123
|
+
filter: RepVisitFilter[];
|
|
19124
|
+
limit?: number;
|
|
19125
|
+
aggregation_key: "count" | "count-distinct" | "duration";
|
|
19126
|
+
period: Period;
|
|
19127
|
+
required_target: {
|
|
19128
|
+
type: "absolute" | "assigned_to";
|
|
19129
|
+
value: number;
|
|
19130
|
+
};
|
|
19131
|
+
}
|
|
19132
|
+
interface TimeClockFilter {
|
|
19133
|
+
filter: "from_startTime" | "to_startTime" | "from_endTime" | "to_endTime" | "from_timeOnDuty" | "to_timeOnDuty" | "from_breaksTime" | "to_breaksTime" | "from_timeInVisits" | "to_timeInVisits" | "from_totalTravelTime" | "to_totalTravelTime" | "from_travelTimeBetweenVisists" | "to_travelTimeBetweenVisists" | "from_scheduled" | "to_scheduled" | "from_unscheduled" | "to_unscheduled" | "from_missed" | "to_missed" | "closed_by_system";
|
|
19134
|
+
value: any;
|
|
19135
|
+
}
|
|
19136
|
+
interface TimeClockDetails {
|
|
19137
|
+
type?: "time-clock";
|
|
19138
|
+
filter: TimeClockFilter[];
|
|
19139
|
+
aggregation_key: "count" | "timeOnDuty" | "breaksTime" | "timeInVisits" | "totalTravelTime" | "travelTimeBetweenVisists" | "scheduled" | "unscheduled" | "missed";
|
|
19140
|
+
period: Period;
|
|
19141
|
+
limit?: number;
|
|
19142
|
+
required_target: {
|
|
19143
|
+
type: "absolute";
|
|
19144
|
+
value: number;
|
|
19145
|
+
};
|
|
19146
|
+
}
|
|
19147
|
+
interface RepPhotoFilter {
|
|
19148
|
+
filter: "chain" | "channel" | "country" | "city" | "state" | "client" | "photoTag" | "clientTag" | "areaTag" | "speciality";
|
|
19149
|
+
value: any[];
|
|
19150
|
+
}
|
|
19151
|
+
interface RepPhotoDetails {
|
|
19152
|
+
type?: "rep-photo";
|
|
19153
|
+
filter: RepPhotoFilter[];
|
|
19154
|
+
limit?: number;
|
|
19155
|
+
aggregation_key: "count" | "count-distinct";
|
|
19156
|
+
period: Period;
|
|
19157
|
+
required_target: {
|
|
19158
|
+
type: "absolute" | "assigned_to";
|
|
19159
|
+
value: number;
|
|
19160
|
+
};
|
|
19161
|
+
}
|
|
19162
|
+
interface ItemStatusFilter {
|
|
19163
|
+
filter: "teams" | "route" | "client" | "chain" | "channel" | "country" | "city" | "state" | "clientTag" | "areaTag" | "speciality" | "product" | "category" | "sub_category" | "brand" | "product_group" | "status" | "previous_status" | "item_status_type";
|
|
19164
|
+
value: any[];
|
|
19165
|
+
}
|
|
19166
|
+
interface ItemStatusDetails {
|
|
19167
|
+
type?: "item-status";
|
|
19168
|
+
filter: ItemStatusFilter[];
|
|
19169
|
+
limit?: number;
|
|
19170
|
+
aggregation_key: "count" | "prescriptions";
|
|
19171
|
+
period: Period;
|
|
19172
|
+
required_target: {
|
|
19173
|
+
type: "absolute";
|
|
19174
|
+
value: number;
|
|
19175
|
+
};
|
|
19176
|
+
}
|
|
19177
|
+
interface RepPaymentFilter {
|
|
19178
|
+
filter: "route" | "payment_type" | "status" | "client" | "chain" | "channel" | "country" | "city" | "clientTag" | "areaTag" | "teams" | "from_amount" | "to_amount" | "speciality" | "custom_status";
|
|
19179
|
+
value: any[];
|
|
19180
|
+
}
|
|
19181
|
+
interface RepPaymentDetails {
|
|
19182
|
+
type?: "rep-payment";
|
|
19183
|
+
filter: RepPaymentFilter[];
|
|
19184
|
+
limit?: number;
|
|
19185
|
+
aggregation_key: "count" | "count-distinct" | "amount";
|
|
19186
|
+
period: Period;
|
|
19187
|
+
required_target: {
|
|
19188
|
+
type: "absolute";
|
|
19189
|
+
value: number;
|
|
19190
|
+
};
|
|
19191
|
+
}
|
|
19192
|
+
interface RepInvoiceFilter {
|
|
19193
|
+
filter: "client" | "chain" | "channel" | "country" | "city" | "state" | "clientTag" | "areaTag" | "teams" | "product" | "variant" | "category" | "sub_category" | "brand" | "product_group" | "status" | "speciality" | "custom_status" | "from_base_unit_qty" | "to_base_unit_qty";
|
|
19194
|
+
value: any[];
|
|
19195
|
+
}
|
|
19196
|
+
interface RepInvoiceDetails {
|
|
19197
|
+
type?: "rep-invoice";
|
|
19198
|
+
filter: RepInvoiceFilter[];
|
|
19199
|
+
limit?: number;
|
|
19200
|
+
aggregation_key: "count" | "total" | "pre_total" | "return_total" | "count-distinct" | "qty";
|
|
19201
|
+
period: Period;
|
|
19202
|
+
required_target: {
|
|
19203
|
+
type: "absolute";
|
|
19204
|
+
value: number;
|
|
19205
|
+
};
|
|
19206
|
+
}
|
|
19207
|
+
interface RepProformaDetails {
|
|
19208
|
+
type?: "rep-proforma";
|
|
19209
|
+
filter: RepInvoiceFilter[];
|
|
19210
|
+
limit?: number;
|
|
19211
|
+
aggregation_key: "count" | "total" | "pre_total" | "return_total" | "count-distinct" | "qty";
|
|
19212
|
+
period: Period;
|
|
19213
|
+
required_target: {
|
|
19214
|
+
type: "absolute";
|
|
19215
|
+
value: number;
|
|
19216
|
+
};
|
|
19217
|
+
}
|
|
19218
|
+
type Details = RepVisitDetails | TimeClockDetails | RepPhotoDetails | ItemStatusDetails | RepPaymentDetails | RepInvoiceDetails | RepProformaDetails;
|
|
19219
|
+
interface Data {
|
|
19220
|
+
_id: StringId;
|
|
19221
|
+
name: string;
|
|
19222
|
+
points: Point[];
|
|
19223
|
+
allowOverOne?: boolean;
|
|
19224
|
+
type: RuleType;
|
|
19225
|
+
disabled: boolean;
|
|
19226
|
+
targets_group?: StringId;
|
|
19227
|
+
company_namespace: string[];
|
|
19228
|
+
details: Details;
|
|
19229
|
+
cycle?: any;
|
|
19230
|
+
createdAt: string;
|
|
19231
|
+
updatedAt: string;
|
|
19232
|
+
__v?: number;
|
|
19233
|
+
}
|
|
19234
|
+
interface CreateBody {
|
|
19235
|
+
company_namespace?: string[];
|
|
19236
|
+
name: string;
|
|
19237
|
+
type: RuleType;
|
|
19238
|
+
details: Details;
|
|
19239
|
+
points?: Point[];
|
|
19240
|
+
allowOverOne?: boolean;
|
|
19241
|
+
targets_group?: StringId;
|
|
19242
|
+
disabled?: boolean;
|
|
19243
|
+
}
|
|
19244
|
+
type UpdateBody = Partial<CreateBody>;
|
|
19245
|
+
namespace Find {
|
|
19246
|
+
type Params = DefaultPaginationQueryParams & {
|
|
19247
|
+
_id?: StringId | StringId[];
|
|
19248
|
+
search?: string;
|
|
19249
|
+
name?: string | string[];
|
|
19250
|
+
type?: RuleType | RuleType[];
|
|
19251
|
+
targets_group?: StringId | StringId[];
|
|
19252
|
+
"details.period"?: Period | Period[];
|
|
19253
|
+
disabled?: boolean;
|
|
19254
|
+
from_updatedAt?: number;
|
|
19255
|
+
to_updatedAt?: number;
|
|
19256
|
+
from_createdAt?: number;
|
|
19257
|
+
to_createdAt?: number;
|
|
19258
|
+
};
|
|
19259
|
+
interface Result extends DefaultPaginationResult {
|
|
19260
|
+
data: Data[];
|
|
19261
|
+
}
|
|
19262
|
+
}
|
|
19263
|
+
namespace Get {
|
|
19264
|
+
type ID = StringId;
|
|
19265
|
+
type Result = Data;
|
|
19266
|
+
}
|
|
19267
|
+
namespace Create {
|
|
19268
|
+
type Body = CreateBody;
|
|
19269
|
+
type Result = Data;
|
|
19270
|
+
}
|
|
19271
|
+
namespace Update {
|
|
19272
|
+
type ID = StringId;
|
|
19273
|
+
type Body = UpdateBody;
|
|
19274
|
+
type Result = Data;
|
|
19275
|
+
}
|
|
19276
|
+
namespace Remove {
|
|
19277
|
+
type ID = StringId;
|
|
19278
|
+
type Result = Data;
|
|
19279
|
+
}
|
|
19280
|
+
}
|
|
19281
|
+
namespace Plan {
|
|
19282
|
+
interface Editor {
|
|
19283
|
+
_id: StringId;
|
|
19284
|
+
type: "admin" | "rep";
|
|
19285
|
+
rep?: StringId;
|
|
19286
|
+
admin?: StringId;
|
|
19287
|
+
name?: string;
|
|
19288
|
+
}
|
|
19289
|
+
interface BuildListItem {
|
|
19290
|
+
calendar?: StringId;
|
|
19291
|
+
route?: StringId;
|
|
19292
|
+
client?: StringId;
|
|
19293
|
+
note?: string;
|
|
19294
|
+
from?: string;
|
|
19295
|
+
to?: string;
|
|
19296
|
+
visit_reason?: StringId;
|
|
19297
|
+
visit_note?: string;
|
|
19298
|
+
}
|
|
19299
|
+
interface BuildEntry {
|
|
19300
|
+
day: string;
|
|
19301
|
+
list: BuildListItem[];
|
|
19302
|
+
}
|
|
19303
|
+
interface Data {
|
|
19304
|
+
_id: StringId;
|
|
19305
|
+
name: string;
|
|
19306
|
+
editor?: Editor;
|
|
19307
|
+
startsAt?: string;
|
|
19308
|
+
endsAt?: string;
|
|
19309
|
+
build: BuildEntry[];
|
|
19310
|
+
sync_id: string;
|
|
19311
|
+
calendars?: StringId[];
|
|
19312
|
+
disabled: boolean;
|
|
19313
|
+
builtAt: number;
|
|
19314
|
+
company_namespace: string[];
|
|
19315
|
+
createdAt: string;
|
|
19316
|
+
updatedAt: string;
|
|
19317
|
+
__v?: number;
|
|
19318
|
+
}
|
|
19319
|
+
interface CreateBody {
|
|
19320
|
+
company_namespace?: string[];
|
|
19321
|
+
name: string;
|
|
19322
|
+
startsAt?: string;
|
|
19323
|
+
endsAt?: string;
|
|
19324
|
+
build?: BuildEntry[];
|
|
19325
|
+
sync_id: string;
|
|
19326
|
+
calendars?: StringId[];
|
|
19327
|
+
disabled?: boolean;
|
|
19328
|
+
builtAt?: number;
|
|
19329
|
+
}
|
|
19330
|
+
type UpdateBody = Partial<CreateBody>;
|
|
19331
|
+
namespace Find {
|
|
19332
|
+
type Params = DefaultPaginationQueryParams & {
|
|
19333
|
+
_id?: StringId | StringId[];
|
|
19334
|
+
search?: string;
|
|
19335
|
+
name?: string | string[];
|
|
19336
|
+
disabled?: boolean;
|
|
19337
|
+
myDailyPlan?: boolean;
|
|
19338
|
+
timezone?: string;
|
|
19339
|
+
from_updatedAt?: number;
|
|
19340
|
+
to_updatedAt?: number;
|
|
19341
|
+
from_createdAt?: number;
|
|
19342
|
+
to_createdAt?: number;
|
|
19343
|
+
populatedKeys?: string | string[];
|
|
19344
|
+
};
|
|
19345
|
+
interface Result extends DefaultPaginationResult {
|
|
19346
|
+
data: Data[];
|
|
19347
|
+
}
|
|
19348
|
+
}
|
|
19349
|
+
namespace Get {
|
|
19350
|
+
type ID = StringId;
|
|
19351
|
+
type Params = {
|
|
19352
|
+
populatedKeys?: string | string[];
|
|
19353
|
+
};
|
|
19354
|
+
type Result = Data;
|
|
19355
|
+
}
|
|
19356
|
+
namespace Create {
|
|
19357
|
+
type Body = CreateBody;
|
|
19358
|
+
type Result = Data;
|
|
19359
|
+
}
|
|
19360
|
+
namespace Update {
|
|
19361
|
+
type ID = StringId;
|
|
19362
|
+
type Body = UpdateBody;
|
|
19363
|
+
type Result = Data;
|
|
19364
|
+
}
|
|
19365
|
+
namespace Remove {
|
|
19366
|
+
type ID = StringId;
|
|
19367
|
+
type Result = Data;
|
|
19368
|
+
}
|
|
19369
|
+
}
|
|
19370
|
+
namespace Calendar {
|
|
19371
|
+
type CalendarType = "weekly" | "weeklyGroup";
|
|
19372
|
+
interface User {
|
|
19373
|
+
_id: StringId;
|
|
19374
|
+
type: "admin" | "rep";
|
|
19375
|
+
rep?: StringId;
|
|
19376
|
+
admin?: StringId;
|
|
19377
|
+
name?: string;
|
|
19378
|
+
}
|
|
19379
|
+
interface ClientEntry {
|
|
19380
|
+
client: StringId;
|
|
19381
|
+
from?: string;
|
|
19382
|
+
to?: string;
|
|
19383
|
+
visit_reason?: StringId;
|
|
19384
|
+
visit_note?: string;
|
|
19385
|
+
}
|
|
19386
|
+
interface WeeklyDetails {
|
|
19387
|
+
type?: "weekly";
|
|
19388
|
+
days: Day[];
|
|
19389
|
+
every: number;
|
|
19390
|
+
}
|
|
19391
|
+
interface DaysGroup {
|
|
19392
|
+
days: Day[];
|
|
19393
|
+
}
|
|
19394
|
+
interface WeeklyGroupDetails {
|
|
19395
|
+
type?: "weeklyGroup";
|
|
19396
|
+
daysGroups: DaysGroup[];
|
|
19397
|
+
groupSize: number;
|
|
19398
|
+
}
|
|
19399
|
+
type Details = WeeklyDetails | WeeklyGroupDetails;
|
|
19400
|
+
interface Data {
|
|
19401
|
+
_id: StringId;
|
|
19402
|
+
name: string;
|
|
19403
|
+
type: CalendarType;
|
|
19404
|
+
details: Details;
|
|
19405
|
+
creator: User;
|
|
19406
|
+
editor: User;
|
|
19407
|
+
routes?: StringId[];
|
|
19408
|
+
sync_id: string;
|
|
19409
|
+
clients?: ClientEntry[];
|
|
19410
|
+
occurrences?: number;
|
|
19411
|
+
startsAt: string;
|
|
19412
|
+
endsAt?: string;
|
|
19413
|
+
disabled: boolean;
|
|
19414
|
+
note?: string;
|
|
19415
|
+
visit_reason?: StringId;
|
|
19416
|
+
visit_note?: string;
|
|
19417
|
+
company_namespace: string[];
|
|
19418
|
+
createdAt: string;
|
|
19419
|
+
updatedAt: string;
|
|
19420
|
+
__v?: number;
|
|
19421
|
+
}
|
|
19422
|
+
interface CreateBody {
|
|
19423
|
+
company_namespace?: string[];
|
|
19424
|
+
name: string;
|
|
19425
|
+
type: CalendarType;
|
|
19426
|
+
details: Details;
|
|
19427
|
+
sync_id: string;
|
|
19428
|
+
startsAt: string;
|
|
19429
|
+
endsAt?: string;
|
|
19430
|
+
routes?: StringId[];
|
|
19431
|
+
clients?: ClientEntry[];
|
|
19432
|
+
occurrences?: number;
|
|
19433
|
+
disabled?: boolean;
|
|
19434
|
+
note?: string;
|
|
19435
|
+
visit_reason?: StringId;
|
|
19436
|
+
visit_note?: string;
|
|
19437
|
+
}
|
|
19438
|
+
type UpdateBody = Partial<CreateBody>;
|
|
19439
|
+
namespace Find {
|
|
19440
|
+
type Params = DefaultPaginationQueryParams & {
|
|
19441
|
+
_id?: StringId | StringId[];
|
|
19442
|
+
search?: string;
|
|
19443
|
+
name?: string | string[];
|
|
19444
|
+
type?: CalendarType | CalendarType[];
|
|
19445
|
+
rep?: StringId | StringId[];
|
|
19446
|
+
plan?: StringId | StringId[];
|
|
19447
|
+
visit_reason?: StringId | StringId[];
|
|
19448
|
+
groupSize?: number;
|
|
19449
|
+
from_groupSize?: number;
|
|
19450
|
+
to_groupSize?: number;
|
|
19451
|
+
disabled?: boolean;
|
|
19452
|
+
from_updatedAt?: number;
|
|
19453
|
+
to_updatedAt?: number;
|
|
19454
|
+
from_createdAt?: number;
|
|
19455
|
+
to_createdAt?: number;
|
|
19456
|
+
populatedKeys?: string | string[];
|
|
19457
|
+
};
|
|
19458
|
+
interface Result extends DefaultPaginationResult {
|
|
19459
|
+
data: Data[];
|
|
19460
|
+
}
|
|
19461
|
+
}
|
|
19462
|
+
namespace Get {
|
|
19463
|
+
type ID = StringId;
|
|
19464
|
+
type Params = {
|
|
19465
|
+
populatedKeys?: string | string[];
|
|
19466
|
+
};
|
|
19467
|
+
type Result = Data;
|
|
19468
|
+
}
|
|
19469
|
+
namespace Create {
|
|
19470
|
+
type Body = CreateBody;
|
|
19471
|
+
type Params = {
|
|
19472
|
+
assignTo?: StringId;
|
|
19473
|
+
assignedToMe?: boolean;
|
|
19474
|
+
};
|
|
19475
|
+
type Result = Data;
|
|
19476
|
+
}
|
|
19477
|
+
namespace Update {
|
|
19478
|
+
type ID = StringId;
|
|
19479
|
+
type Body = UpdateBody;
|
|
19480
|
+
type Result = Data;
|
|
19481
|
+
}
|
|
19482
|
+
namespace Remove {
|
|
19483
|
+
type ID = StringId;
|
|
19484
|
+
type Result = Data;
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19487
|
+
namespace LineTarget {
|
|
19488
|
+
export type UserType = "rep" | "client";
|
|
19489
|
+
export interface User {
|
|
19490
|
+
_id: StringId;
|
|
19491
|
+
name?: string;
|
|
19492
|
+
type?: UserType;
|
|
19493
|
+
rep?: StringId;
|
|
19494
|
+
client?: StringId;
|
|
19495
|
+
}
|
|
19496
|
+
export interface Data {
|
|
19497
|
+
_id: StringId;
|
|
19498
|
+
line: StringId;
|
|
19499
|
+
target: number;
|
|
19500
|
+
classification: StringId;
|
|
19501
|
+
user?: User;
|
|
19502
|
+
company_namespace: string[];
|
|
19503
|
+
createdAt: string;
|
|
19504
|
+
updatedAt: string;
|
|
19505
|
+
__v?: number;
|
|
19506
|
+
}
|
|
19507
|
+
export interface CreateBody {
|
|
19508
|
+
company_namespace?: string[];
|
|
19509
|
+
line: StringId;
|
|
19510
|
+
target: number;
|
|
19511
|
+
classification: StringId;
|
|
19512
|
+
user?: User;
|
|
19513
|
+
}
|
|
19514
|
+
export type UpdateBody = Partial<CreateBody>;
|
|
19515
|
+
type PopulatedKeys = "client" | "rep" | "classification" | "line";
|
|
19516
|
+
export namespace Find {
|
|
19517
|
+
type Params = DefaultPaginationQueryParams & {
|
|
19518
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
19519
|
+
_id?: StringId | StringId[];
|
|
19520
|
+
line?: StringId | StringId[];
|
|
19521
|
+
classification?: StringId | StringId[];
|
|
19522
|
+
"user._id"?: StringId | StringId[];
|
|
19523
|
+
rep?: StringId | StringId[];
|
|
19524
|
+
client?: StringId | StringId[];
|
|
19525
|
+
from_updatedAt?: number;
|
|
19526
|
+
to_updatedAt?: number;
|
|
19527
|
+
from_createdAt?: number;
|
|
19528
|
+
to_createdAt?: number;
|
|
19529
|
+
};
|
|
19530
|
+
interface Result extends DefaultPaginationResult {
|
|
19531
|
+
data: Data[];
|
|
19532
|
+
}
|
|
19533
|
+
}
|
|
19534
|
+
export namespace Get {
|
|
19535
|
+
type ID = StringId;
|
|
19536
|
+
type Params = {
|
|
19537
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
19538
|
+
};
|
|
19539
|
+
type Result = Data;
|
|
19540
|
+
}
|
|
19541
|
+
export namespace Create {
|
|
19542
|
+
type Body = CreateBody;
|
|
19543
|
+
type Result = Data;
|
|
19544
|
+
}
|
|
19545
|
+
export namespace Update {
|
|
19546
|
+
type ID = StringId;
|
|
19547
|
+
type Body = UpdateBody;
|
|
19548
|
+
type Result = Data;
|
|
19549
|
+
}
|
|
19550
|
+
export namespace Remove {
|
|
19551
|
+
type ID = StringId | null;
|
|
19552
|
+
type Params = {
|
|
19553
|
+
all?: boolean;
|
|
19554
|
+
};
|
|
19555
|
+
interface Result {
|
|
19556
|
+
deletedCount: number;
|
|
19557
|
+
success: number;
|
|
19558
|
+
}
|
|
19559
|
+
}
|
|
19560
|
+
export {};
|
|
19561
|
+
}
|
|
19103
19562
|
namespace BulkImport {
|
|
19104
19563
|
type BulkImportType = "insertTags" | "insertClients" | "insertReps" | "updateReps" | "updateClients" | "insertProducts" | "insertVariants" | "updateProducts" | "updateVariants" | "updateCategories" | "updateSubCategories" | "insertCategories" | "insertSubCategories" | "insertAvailabilityMsl" | "updateAvailabilityMsl" | "updateAvailabilityMslWithProducts" | "updateMslWithVariants" | "insertJobCategories" | "updateJobCategories" | "updateJobs" | "insertJobs" | "updateTags" | "insertRoutes" | "updateRoutes" | "updateRoutesWithClients" | "insertPlans" | "updatePlans" | "updatePlansWithRules" | "weeklyGroupRules" | "weeklyRules" | "updateRulesWithRoutes" | "updateTargetRulesWithClients" | "updateTargetRulesWithReps" | "insertTransfers" | "adjustAccounts" | "insertRules" | "updateRules" | "insertInvoices" | "insertWarehouses" | "updateWarehouses" | "insertProductGroups" | "updateProductGroups" | "updatePriceListItems" | "updateMeasureunit" | "insertMeasureunit" | "insertMeasureunitFamily" | "updateMeasureunitFamily" | "insertLineTarget" | "clientLineClassification" | "updateLineTarget" | "insertReceivingMaterials" | "insertRetailExecutionPresets" | "updateRetailExecutionPresets" | "insertCustomListItems" | "updateCustomListItems" | "insertAssets" | "updateAssets" | "insertAssetUnits" | "updateAssetUnits" | "insertSpeciality" | "updateSpeciality" | "insertClientLocation" | "updateClientLocation" | "deleteLineTarget" | "updatePromotions" | "insertReminders" | "updateReminders" | "insertVariantBatch" | "updateVariantBatch" | "insertSettlements" | "updateClientUblInfo" | "insertSuppliers" | "updateSuppliers" | "insertTargetRules" | "insertContractInstallments" | "updateContractInstallments" | "insertContracts" | "updateContracts" | "insertAssetPartTypes" | "updateAssetPartTypes" | "insertAssetParts" | "updateAssetParts";
|
|
19105
19564
|
interface ToBeInserted {
|