repzo 1.0.273 → 1.0.274
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 +11 -2
- package/lib/index.js +20 -0
- package/lib/types/index.d.ts +82 -0
- package/package.json +1 -1
- package/src/index.ts +50 -0
- package/src/types/index.ts +91 -0
package/lib/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare const end_points: {
|
|
|
56
56
|
readonly MEDIA_STORAGE: "media-storage";
|
|
57
57
|
readonly STORECHECK_TEMPLATE: "storecheck-template";
|
|
58
58
|
readonly ACTIVITY_STORECHECK: "activity-storecheck";
|
|
59
|
+
readonly ACTIVITY_ITEM_STATUS: "activity-item-status";
|
|
59
60
|
readonly ADJUST_INVENTORY: "adjust-inventory";
|
|
60
61
|
readonly INVENTORY: "inventory";
|
|
61
62
|
readonly INTEGRATION_APP: "integration-app";
|
|
@@ -137,7 +138,7 @@ export declare const end_points: {
|
|
|
137
138
|
readonly JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze";
|
|
138
139
|
};
|
|
139
140
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
140
|
-
export declare const availableService: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField"];
|
|
141
|
+
export declare const availableService: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "activityItemStatus", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField"];
|
|
141
142
|
export type AvailableService = (typeof availableService)[number];
|
|
142
143
|
export default class Repzo {
|
|
143
144
|
private svAPIEndpoint;
|
|
@@ -206,6 +207,7 @@ export default class Repzo {
|
|
|
206
207
|
readonly MEDIA_STORAGE: "media-storage";
|
|
207
208
|
readonly STORECHECK_TEMPLATE: "storecheck-template";
|
|
208
209
|
readonly ACTIVITY_STORECHECK: "activity-storecheck";
|
|
210
|
+
readonly ACTIVITY_ITEM_STATUS: "activity-item-status";
|
|
209
211
|
readonly ADJUST_INVENTORY: "adjust-inventory";
|
|
210
212
|
readonly INVENTORY: "inventory";
|
|
211
213
|
readonly INTEGRATION_APP: "integration-app";
|
|
@@ -292,7 +294,7 @@ export default class Repzo {
|
|
|
292
294
|
private _update;
|
|
293
295
|
private _patch;
|
|
294
296
|
private _delete;
|
|
295
|
-
available_services: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField"];
|
|
297
|
+
available_services: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "activityItemStatus", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField"];
|
|
296
298
|
generateUUID: ({ prefix, suffix, length, }: {
|
|
297
299
|
prefix?: string;
|
|
298
300
|
suffix?: string;
|
|
@@ -710,6 +712,13 @@ export default class Repzo {
|
|
|
710
712
|
create: (body: Service.ActivityStorecheck.Create.Body) => Promise<Service.ActivityStorecheck.Create.Result>;
|
|
711
713
|
update: (id: Service.ActivityStorecheck.Update.ID, body: Service.ActivityStorecheck.Update.Body) => Promise<Service.ActivityStorecheck.Update.Result>;
|
|
712
714
|
};
|
|
715
|
+
activityItemStatus: {
|
|
716
|
+
_path: "activity-item-status";
|
|
717
|
+
find: (params?: Service.ActivityItemStatus.Find.Params) => Promise<Service.ActivityItemStatus.Find.Result>;
|
|
718
|
+
get: (id: Service.ActivityItemStatus.Get.ID, params?: Service.ActivityItemStatus.Get.Params) => Promise<Service.ActivityItemStatus.Get.Result>;
|
|
719
|
+
create: (body: Service.ActivityItemStatus.Create.Body) => Promise<Service.ActivityItemStatus.Create.Result>;
|
|
720
|
+
update: (id: Service.ActivityItemStatus.Update.ID, body: Service.ActivityItemStatus.Update.Body) => Promise<Service.ActivityItemStatus.Update.Result>;
|
|
721
|
+
};
|
|
713
722
|
adjustInventory: {
|
|
714
723
|
_path: "adjust-inventory";
|
|
715
724
|
find: (params?: Service.AdjustInventory.Find.Params) => Promise<Service.AdjustInventory.Find.Result>;
|
package/lib/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export const end_points = {
|
|
|
58
58
|
MEDIA_STORAGE: "media-storage",
|
|
59
59
|
STORECHECK_TEMPLATE: "storecheck-template",
|
|
60
60
|
ACTIVITY_STORECHECK: "activity-storecheck",
|
|
61
|
+
ACTIVITY_ITEM_STATUS: "activity-item-status",
|
|
61
62
|
ADJUST_INVENTORY: "adjust-inventory",
|
|
62
63
|
INVENTORY: "inventory",
|
|
63
64
|
INTEGRATION_APP: "integration-app",
|
|
@@ -193,6 +194,7 @@ export const availableService = [
|
|
|
193
194
|
"mediaStorage",
|
|
194
195
|
"storecheckTemplate",
|
|
195
196
|
"activityStorecheck",
|
|
197
|
+
"activityItemStatus",
|
|
196
198
|
"adjustInventory",
|
|
197
199
|
"inventory",
|
|
198
200
|
"integrationApp",
|
|
@@ -1355,6 +1357,24 @@ class Repzo {
|
|
|
1355
1357
|
return res;
|
|
1356
1358
|
},
|
|
1357
1359
|
};
|
|
1360
|
+
this.activityItemStatus = {
|
|
1361
|
+
_path: Repzo._end_points.ACTIVITY_ITEM_STATUS,
|
|
1362
|
+
find: async (params) => {
|
|
1363
|
+
let res = await this._fetch(this.svAPIEndpoint, this.activityItemStatus._path, params);
|
|
1364
|
+
return res;
|
|
1365
|
+
},
|
|
1366
|
+
get: async (id, params) => {
|
|
1367
|
+
return await this._fetch(this.svAPIEndpoint, this.activityItemStatus._path + `/${id}`, params);
|
|
1368
|
+
},
|
|
1369
|
+
create: async (body) => {
|
|
1370
|
+
let res = await this._create(this.svAPIEndpoint, this.activityItemStatus._path, body);
|
|
1371
|
+
return res;
|
|
1372
|
+
},
|
|
1373
|
+
update: async (id, body) => {
|
|
1374
|
+
let res = await this._update(this.svAPIEndpoint, this.activityItemStatus._path + `/${id}`, body);
|
|
1375
|
+
return res;
|
|
1376
|
+
},
|
|
1377
|
+
};
|
|
1358
1378
|
this.adjustInventory = {
|
|
1359
1379
|
_path: Repzo._end_points.ADJUST_INVENTORY,
|
|
1360
1380
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14486,12 +14486,94 @@ export declare namespace Service {
|
|
|
14486
14486
|
admin_notes: ActivityAdminNote[];
|
|
14487
14487
|
comments: ActivityComment[];
|
|
14488
14488
|
company_namespace: string[];
|
|
14489
|
+
job?: boolean;
|
|
14490
|
+
job_id?: string;
|
|
14491
|
+
job_category_id?: string;
|
|
14489
14492
|
job_start_time?: number;
|
|
14490
14493
|
job_end_time?: number;
|
|
14491
14494
|
job_duration?: number;
|
|
14495
|
+
disabled?: boolean;
|
|
14492
14496
|
createdAt: string;
|
|
14493
14497
|
updatedAt: string;
|
|
14494
14498
|
}
|
|
14499
|
+
interface CreateBody {
|
|
14500
|
+
items: Item[];
|
|
14501
|
+
geoPoint: GeoPoint;
|
|
14502
|
+
time: number;
|
|
14503
|
+
tags?: string[];
|
|
14504
|
+
visit_id: string;
|
|
14505
|
+
user: string;
|
|
14506
|
+
client: string;
|
|
14507
|
+
client_name: string;
|
|
14508
|
+
user_name: string;
|
|
14509
|
+
sync_id: string;
|
|
14510
|
+
route?: string;
|
|
14511
|
+
teams?: string[];
|
|
14512
|
+
company_namespace: string[];
|
|
14513
|
+
}
|
|
14514
|
+
interface UpdateBody {
|
|
14515
|
+
_id?: string;
|
|
14516
|
+
items?: Item[];
|
|
14517
|
+
geoPoint?: GeoPoint;
|
|
14518
|
+
time?: number;
|
|
14519
|
+
tags?: string[];
|
|
14520
|
+
visit_id?: string;
|
|
14521
|
+
user?: string;
|
|
14522
|
+
client?: string;
|
|
14523
|
+
client_name?: string;
|
|
14524
|
+
user_name?: string;
|
|
14525
|
+
sync_id?: string;
|
|
14526
|
+
route?: string;
|
|
14527
|
+
teams?: string[];
|
|
14528
|
+
company_namespace?: string[];
|
|
14529
|
+
}
|
|
14530
|
+
type PopulatedKeys = "teams" | "user" | "client" | "route" | "visit_id";
|
|
14531
|
+
type ActivityItemStatusWithPopulatedKeysSchema = Data & {
|
|
14532
|
+
teams_populated?: Team.TeamSchema[] | string[];
|
|
14533
|
+
user_populated?: Rep.RepSchema | string;
|
|
14534
|
+
client_populated?: Client.ClientSchema | string;
|
|
14535
|
+
route_populated?: Route.RouteSchema | string;
|
|
14536
|
+
visit_id_populated?: Visit.VisitSchema | string;
|
|
14537
|
+
};
|
|
14538
|
+
namespace Find {
|
|
14539
|
+
type Params = DefaultPaginationQueryParams & {
|
|
14540
|
+
_id?: string[] | string;
|
|
14541
|
+
disabled?: boolean;
|
|
14542
|
+
from_updatedAt?: string;
|
|
14543
|
+
from_time?: number;
|
|
14544
|
+
to_time?: number;
|
|
14545
|
+
client?: string;
|
|
14546
|
+
user?: string;
|
|
14547
|
+
teams?: string[];
|
|
14548
|
+
route?: string;
|
|
14549
|
+
populatedKeys?: PopulatedKeys[];
|
|
14550
|
+
from__id?: string;
|
|
14551
|
+
to__id?: string;
|
|
14552
|
+
sortBy?: {
|
|
14553
|
+
field: "_id";
|
|
14554
|
+
type: "asc" | "desc";
|
|
14555
|
+
}[];
|
|
14556
|
+
[key: string]: any;
|
|
14557
|
+
};
|
|
14558
|
+
interface Result extends DefaultPaginationResult {
|
|
14559
|
+
data: ActivityItemStatusWithPopulatedKeysSchema[];
|
|
14560
|
+
}
|
|
14561
|
+
}
|
|
14562
|
+
namespace Get {
|
|
14563
|
+
type ID = string;
|
|
14564
|
+
interface Params {
|
|
14565
|
+
}
|
|
14566
|
+
type Result = Data;
|
|
14567
|
+
}
|
|
14568
|
+
namespace Create {
|
|
14569
|
+
type Body = CreateBody;
|
|
14570
|
+
type Result = Data;
|
|
14571
|
+
}
|
|
14572
|
+
namespace Update {
|
|
14573
|
+
type ID = string;
|
|
14574
|
+
type Body = UpdateBody;
|
|
14575
|
+
type Result = Data;
|
|
14576
|
+
}
|
|
14495
14577
|
}
|
|
14496
14578
|
namespace ActivityPlanogram {
|
|
14497
14579
|
interface Data {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -68,6 +68,7 @@ export const end_points = {
|
|
|
68
68
|
MEDIA_STORAGE: "media-storage",
|
|
69
69
|
STORECHECK_TEMPLATE: "storecheck-template",
|
|
70
70
|
ACTIVITY_STORECHECK: "activity-storecheck",
|
|
71
|
+
ACTIVITY_ITEM_STATUS: "activity-item-status",
|
|
71
72
|
ADJUST_INVENTORY: "adjust-inventory",
|
|
72
73
|
INVENTORY: "inventory",
|
|
73
74
|
INTEGRATION_APP: "integration-app",
|
|
@@ -205,6 +206,7 @@ export const availableService = [
|
|
|
205
206
|
"mediaStorage",
|
|
206
207
|
"storecheckTemplate",
|
|
207
208
|
"activityStorecheck",
|
|
209
|
+
"activityItemStatus",
|
|
208
210
|
"adjustInventory",
|
|
209
211
|
"inventory",
|
|
210
212
|
"integrationApp",
|
|
@@ -3138,6 +3140,54 @@ export default class Repzo {
|
|
|
3138
3140
|
},
|
|
3139
3141
|
};
|
|
3140
3142
|
|
|
3143
|
+
activityItemStatus = {
|
|
3144
|
+
_path: Repzo._end_points.ACTIVITY_ITEM_STATUS,
|
|
3145
|
+
find: async (
|
|
3146
|
+
params?: Service.ActivityItemStatus.Find.Params,
|
|
3147
|
+
): Promise<Service.ActivityItemStatus.Find.Result> => {
|
|
3148
|
+
let res: Service.ActivityItemStatus.Find.Result = await this._fetch(
|
|
3149
|
+
this.svAPIEndpoint,
|
|
3150
|
+
this.activityItemStatus._path,
|
|
3151
|
+
params,
|
|
3152
|
+
);
|
|
3153
|
+
return res;
|
|
3154
|
+
},
|
|
3155
|
+
|
|
3156
|
+
get: async (
|
|
3157
|
+
id: Service.ActivityItemStatus.Get.ID,
|
|
3158
|
+
params?: Service.ActivityItemStatus.Get.Params,
|
|
3159
|
+
): Promise<Service.ActivityItemStatus.Get.Result> => {
|
|
3160
|
+
return await this._fetch(
|
|
3161
|
+
this.svAPIEndpoint,
|
|
3162
|
+
this.activityItemStatus._path + `/${id}`,
|
|
3163
|
+
params,
|
|
3164
|
+
);
|
|
3165
|
+
},
|
|
3166
|
+
|
|
3167
|
+
create: async (
|
|
3168
|
+
body: Service.ActivityItemStatus.Create.Body,
|
|
3169
|
+
): Promise<Service.ActivityItemStatus.Create.Result> => {
|
|
3170
|
+
let res = await this._create(
|
|
3171
|
+
this.svAPIEndpoint,
|
|
3172
|
+
this.activityItemStatus._path,
|
|
3173
|
+
body,
|
|
3174
|
+
);
|
|
3175
|
+
return res;
|
|
3176
|
+
},
|
|
3177
|
+
|
|
3178
|
+
update: async (
|
|
3179
|
+
id: Service.ActivityItemStatus.Update.ID,
|
|
3180
|
+
body: Service.ActivityItemStatus.Update.Body,
|
|
3181
|
+
): Promise<Service.ActivityItemStatus.Update.Result> => {
|
|
3182
|
+
let res: Service.ActivityItemStatus.Update.Result = await this._update(
|
|
3183
|
+
this.svAPIEndpoint,
|
|
3184
|
+
this.activityItemStatus._path + `/${id}`,
|
|
3185
|
+
body,
|
|
3186
|
+
);
|
|
3187
|
+
return res;
|
|
3188
|
+
},
|
|
3189
|
+
};
|
|
3190
|
+
|
|
3141
3191
|
adjustInventory = {
|
|
3142
3192
|
_path: Repzo._end_points.ADJUST_INVENTORY,
|
|
3143
3193
|
find: async (
|
package/src/types/index.ts
CHANGED
|
@@ -15513,12 +15513,103 @@ export namespace Service {
|
|
|
15513
15513
|
admin_notes: ActivityAdminNote[];
|
|
15514
15514
|
comments: ActivityComment[];
|
|
15515
15515
|
company_namespace: string[];
|
|
15516
|
+
job?: boolean;
|
|
15517
|
+
job_id?: string;
|
|
15518
|
+
job_category_id?: string;
|
|
15516
15519
|
job_start_time?: number;
|
|
15517
15520
|
job_end_time?: number;
|
|
15518
15521
|
job_duration?: number;
|
|
15522
|
+
disabled?: boolean;
|
|
15519
15523
|
createdAt: string;
|
|
15520
15524
|
updatedAt: string;
|
|
15521
15525
|
}
|
|
15526
|
+
|
|
15527
|
+
export interface CreateBody {
|
|
15528
|
+
items: Item[];
|
|
15529
|
+
geoPoint: GeoPoint;
|
|
15530
|
+
time: number;
|
|
15531
|
+
tags?: string[];
|
|
15532
|
+
visit_id: string;
|
|
15533
|
+
user: string;
|
|
15534
|
+
client: string;
|
|
15535
|
+
client_name: string;
|
|
15536
|
+
user_name: string;
|
|
15537
|
+
sync_id: string;
|
|
15538
|
+
route?: string;
|
|
15539
|
+
teams?: string[];
|
|
15540
|
+
company_namespace: string[];
|
|
15541
|
+
}
|
|
15542
|
+
|
|
15543
|
+
export interface UpdateBody {
|
|
15544
|
+
_id?: string;
|
|
15545
|
+
items?: Item[];
|
|
15546
|
+
geoPoint?: GeoPoint;
|
|
15547
|
+
time?: number;
|
|
15548
|
+
tags?: string[];
|
|
15549
|
+
visit_id?: string;
|
|
15550
|
+
user?: string;
|
|
15551
|
+
client?: string;
|
|
15552
|
+
client_name?: string;
|
|
15553
|
+
user_name?: string;
|
|
15554
|
+
sync_id?: string;
|
|
15555
|
+
route?: string;
|
|
15556
|
+
teams?: string[];
|
|
15557
|
+
company_namespace?: string[];
|
|
15558
|
+
}
|
|
15559
|
+
|
|
15560
|
+
export type PopulatedKeys =
|
|
15561
|
+
| "teams"
|
|
15562
|
+
| "user"
|
|
15563
|
+
| "client"
|
|
15564
|
+
| "route"
|
|
15565
|
+
| "visit_id";
|
|
15566
|
+
|
|
15567
|
+
export type ActivityItemStatusWithPopulatedKeysSchema = Data & {
|
|
15568
|
+
teams_populated?: Team.TeamSchema[] | string[];
|
|
15569
|
+
user_populated?: Rep.RepSchema | string;
|
|
15570
|
+
client_populated?: Client.ClientSchema | string;
|
|
15571
|
+
route_populated?: Route.RouteSchema | string;
|
|
15572
|
+
visit_id_populated?: Visit.VisitSchema | string;
|
|
15573
|
+
};
|
|
15574
|
+
|
|
15575
|
+
export namespace Find {
|
|
15576
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
15577
|
+
_id?: string[] | string;
|
|
15578
|
+
disabled?: boolean;
|
|
15579
|
+
from_updatedAt?: string;
|
|
15580
|
+
from_time?: number;
|
|
15581
|
+
to_time?: number;
|
|
15582
|
+
client?: string;
|
|
15583
|
+
user?: string;
|
|
15584
|
+
teams?: string[];
|
|
15585
|
+
route?: string;
|
|
15586
|
+
populatedKeys?: PopulatedKeys[];
|
|
15587
|
+
from__id?: string;
|
|
15588
|
+
to__id?: string;
|
|
15589
|
+
sortBy?: {
|
|
15590
|
+
field: "_id";
|
|
15591
|
+
type: "asc" | "desc";
|
|
15592
|
+
}[];
|
|
15593
|
+
[key: string]: any;
|
|
15594
|
+
};
|
|
15595
|
+
export interface Result extends DefaultPaginationResult {
|
|
15596
|
+
data: ActivityItemStatusWithPopulatedKeysSchema[];
|
|
15597
|
+
}
|
|
15598
|
+
}
|
|
15599
|
+
export namespace Get {
|
|
15600
|
+
export type ID = string;
|
|
15601
|
+
export interface Params {}
|
|
15602
|
+
export type Result = Data;
|
|
15603
|
+
}
|
|
15604
|
+
export namespace Create {
|
|
15605
|
+
export type Body = CreateBody;
|
|
15606
|
+
export type Result = Data;
|
|
15607
|
+
}
|
|
15608
|
+
export namespace Update {
|
|
15609
|
+
export type ID = string;
|
|
15610
|
+
export type Body = UpdateBody;
|
|
15611
|
+
export type Result = Data;
|
|
15612
|
+
}
|
|
15522
15613
|
}
|
|
15523
15614
|
|
|
15524
15615
|
export namespace ActivityPlanogram {
|