repzo 1.0.256 → 1.0.257
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 +30 -0
- package/lib/index.js +69 -0
- package/lib/types/index.d.ts +331 -0
- package/lib/types/index.js +146 -0
- package/package.json +1 -1
- package/src/index.ts +165 -0
- package/src/types/index.ts +475 -0
package/lib/index.d.ts
CHANGED
|
@@ -129,6 +129,9 @@ export declare const end_points: {
|
|
|
129
129
|
readonly LINE_CLASSIFICATION: "line-classification";
|
|
130
130
|
readonly LINE: "line";
|
|
131
131
|
readonly CLIENT_LINE: "client-line";
|
|
132
|
+
readonly SCHEDULED_EMAILS: "scheduled-emails";
|
|
133
|
+
readonly DATA_FILE_WAREHOUSE: "data-file-warehouse";
|
|
134
|
+
readonly DATA_SESSION: "data-session";
|
|
132
135
|
};
|
|
133
136
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
134
137
|
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"];
|
|
@@ -273,6 +276,9 @@ export default class Repzo {
|
|
|
273
276
|
readonly LINE_CLASSIFICATION: "line-classification";
|
|
274
277
|
readonly LINE: "line";
|
|
275
278
|
readonly CLIENT_LINE: "client-line";
|
|
279
|
+
readonly SCHEDULED_EMAILS: "scheduled-emails";
|
|
280
|
+
readonly DATA_FILE_WAREHOUSE: "data-file-warehouse";
|
|
281
|
+
readonly DATA_SESSION: "data-session";
|
|
276
282
|
};
|
|
277
283
|
private _retryRequest;
|
|
278
284
|
private _fetch;
|
|
@@ -1265,4 +1271,28 @@ export default class Repzo {
|
|
|
1265
1271
|
update: (id: Service.ClientLine.Update.ID, body: Service.ClientLine.Update.Body) => Promise<Service.ClientLine.Update.Result>;
|
|
1266
1272
|
remove: (id: Service.ClientLine.Update.ID) => Promise<Service.ClientLine.Remove.Result>;
|
|
1267
1273
|
};
|
|
1274
|
+
scheduledEmails: {
|
|
1275
|
+
_path: "scheduled-emails";
|
|
1276
|
+
find: (params?: Service.ScheduledEmails.Find.Params) => Promise<Service.ScheduledEmails.Find.Result>;
|
|
1277
|
+
get: (id: Service.ScheduledEmails.Get.ID, params?: Service.ScheduledEmails.Get.Params) => Promise<Service.ScheduledEmails.Get.Result>;
|
|
1278
|
+
create: (body: Service.ScheduledEmails.Create.Body) => Promise<Service.ScheduledEmails.Create.Result>;
|
|
1279
|
+
update: (id: Service.ScheduledEmails.Update.ID, body: Service.ScheduledEmails.Update.Body) => Promise<Service.ScheduledEmails.Update.Result>;
|
|
1280
|
+
remove: (id: Service.ScheduledEmails.Update.ID) => Promise<Service.ScheduledEmails.Remove.Result>;
|
|
1281
|
+
};
|
|
1282
|
+
dataFileWarehouse: {
|
|
1283
|
+
_path: "data-file-warehouse";
|
|
1284
|
+
find: (params?: Service.DataFileWarehouse.Find.Params) => Promise<Service.DataFileWarehouse.Find.Result>;
|
|
1285
|
+
get: (id: Service.DataFileWarehouse.Get.ID, params?: Service.DataFileWarehouse.Get.Params) => Promise<Service.DataFileWarehouse.Get.Result>;
|
|
1286
|
+
create: (body: Service.DataFileWarehouse.Create.Body) => Promise<Service.DataFileWarehouse.Create.Result>;
|
|
1287
|
+
update: (id: Service.DataFileWarehouse.Update.ID, body: Service.DataFileWarehouse.Update.Body) => Promise<Service.DataFileWarehouse.Update.Result>;
|
|
1288
|
+
remove: (id: Service.DataFileWarehouse.Update.ID) => Promise<Service.DataFileWarehouse.Remove.Result>;
|
|
1289
|
+
};
|
|
1290
|
+
dataSession: {
|
|
1291
|
+
_path: "data-session";
|
|
1292
|
+
find: (params?: Service.DataSession.Find.Params) => Promise<Service.DataSession.Find.Result>;
|
|
1293
|
+
get: (id: Service.DataSession.Get.ID, params?: Service.DataSession.Get.Params) => Promise<Service.DataSession.Get.Result>;
|
|
1294
|
+
create: (body: Service.DataSession.Create.Body) => Promise<Service.DataSession.Create.Result>;
|
|
1295
|
+
update: (id: Service.DataSession.Update.ID, body: Service.DataSession.Update.Body) => Promise<Service.DataSession.Update.Result>;
|
|
1296
|
+
remove: (id: Service.DataSession.Update.ID) => Promise<Service.DataSession.Remove.Result>;
|
|
1297
|
+
};
|
|
1268
1298
|
}
|
package/lib/index.js
CHANGED
|
@@ -131,6 +131,9 @@ export const end_points = {
|
|
|
131
131
|
LINE_CLASSIFICATION: "line-classification",
|
|
132
132
|
LINE: "line",
|
|
133
133
|
CLIENT_LINE: "client-line",
|
|
134
|
+
SCHEDULED_EMAILS: "scheduled-emails",
|
|
135
|
+
DATA_FILE_WAREHOUSE: "data-file-warehouse",
|
|
136
|
+
DATA_SESSION: "data-session",
|
|
134
137
|
};
|
|
135
138
|
export const availableService = [
|
|
136
139
|
"client",
|
|
@@ -2611,6 +2614,72 @@ class Repzo {
|
|
|
2611
2614
|
return res;
|
|
2612
2615
|
},
|
|
2613
2616
|
};
|
|
2617
|
+
this.scheduledEmails = {
|
|
2618
|
+
_path: Repzo._end_points.SCHEDULED_EMAILS,
|
|
2619
|
+
find: async (params) => {
|
|
2620
|
+
let res = await this._fetch(this.svAPIEndpoint, this.scheduledEmails._path, params);
|
|
2621
|
+
return res;
|
|
2622
|
+
},
|
|
2623
|
+
get: async (id, params) => {
|
|
2624
|
+
return await this._fetch(this.svAPIEndpoint, this.scheduledEmails._path + `/${id}`, params);
|
|
2625
|
+
},
|
|
2626
|
+
create: async (body) => {
|
|
2627
|
+
let res = await this._create(this.svAPIEndpoint, this.scheduledEmails._path, body);
|
|
2628
|
+
return res;
|
|
2629
|
+
},
|
|
2630
|
+
update: async (id, body) => {
|
|
2631
|
+
let res = await this._update(this.svAPIEndpoint, this.scheduledEmails._path + `/${id}`, body);
|
|
2632
|
+
return res;
|
|
2633
|
+
},
|
|
2634
|
+
remove: async (id) => {
|
|
2635
|
+
let res = await this._delete(this.svAPIEndpoint, this.scheduledEmails._path + `/${id}`);
|
|
2636
|
+
return res;
|
|
2637
|
+
},
|
|
2638
|
+
};
|
|
2639
|
+
this.dataFileWarehouse = {
|
|
2640
|
+
_path: Repzo._end_points.DATA_FILE_WAREHOUSE,
|
|
2641
|
+
find: async (params) => {
|
|
2642
|
+
let res = await this._fetch(this.svAPIEndpoint, this.dataFileWarehouse._path, params);
|
|
2643
|
+
return res;
|
|
2644
|
+
},
|
|
2645
|
+
get: async (id, params) => {
|
|
2646
|
+
return await this._fetch(this.svAPIEndpoint, this.dataFileWarehouse._path + `/${id}`, params);
|
|
2647
|
+
},
|
|
2648
|
+
create: async (body) => {
|
|
2649
|
+
let res = await this._create(this.svAPIEndpoint, this.dataFileWarehouse._path, body);
|
|
2650
|
+
return res;
|
|
2651
|
+
},
|
|
2652
|
+
update: async (id, body) => {
|
|
2653
|
+
let res = await this._update(this.svAPIEndpoint, this.dataFileWarehouse._path + `/${id}`, body);
|
|
2654
|
+
return res;
|
|
2655
|
+
},
|
|
2656
|
+
remove: async (id) => {
|
|
2657
|
+
let res = await this._delete(this.svAPIEndpoint, this.dataFileWarehouse._path + `/${id}`);
|
|
2658
|
+
return res;
|
|
2659
|
+
},
|
|
2660
|
+
};
|
|
2661
|
+
this.dataSession = {
|
|
2662
|
+
_path: Repzo._end_points.DATA_SESSION,
|
|
2663
|
+
find: async (params) => {
|
|
2664
|
+
let res = await this._fetch(this.svAPIEndpoint, this.dataSession._path, params);
|
|
2665
|
+
return res;
|
|
2666
|
+
},
|
|
2667
|
+
get: async (id, params) => {
|
|
2668
|
+
return await this._fetch(this.svAPIEndpoint, this.dataSession._path + `/${id}`, params);
|
|
2669
|
+
},
|
|
2670
|
+
create: async (body) => {
|
|
2671
|
+
let res = await this._create(this.svAPIEndpoint, this.dataSession._path, body);
|
|
2672
|
+
return res;
|
|
2673
|
+
},
|
|
2674
|
+
update: async (id, body) => {
|
|
2675
|
+
let res = await this._update(this.svAPIEndpoint, this.dataSession._path + `/${id}`, body);
|
|
2676
|
+
return res;
|
|
2677
|
+
},
|
|
2678
|
+
remove: async (id) => {
|
|
2679
|
+
let res = await this._delete(this.svAPIEndpoint, this.dataSession._path + `/${id}`);
|
|
2680
|
+
return res;
|
|
2681
|
+
},
|
|
2682
|
+
};
|
|
2614
2683
|
this.svAPIEndpoint =
|
|
2615
2684
|
!options?.env || options?.env == "production"
|
|
2616
2685
|
? "https://sv.api.repzo.me"
|
package/lib/types/index.d.ts
CHANGED
|
@@ -18083,6 +18083,337 @@ export declare namespace Service {
|
|
|
18083
18083
|
}
|
|
18084
18084
|
export {};
|
|
18085
18085
|
}
|
|
18086
|
+
namespace ScheduledEmails {
|
|
18087
|
+
export const reports: readonly ["storecheck-checkout", "storecheck-freshness", "storecheck-outofstock", "storecheck-planogram", "storecheck-pricing", "storecheck-secondary", "storecheck-shelfshare", "storecheck-stock", "visit-report", "schedule-report", "target-result", "item-status-report", "time-clock-report", "frequency-report", "retail-execution-report", "receiving-material", "proforma", "adjust-account", "unvisited-report", "legacy-jobs-report", "sales-analytics-report", "pre-sales-analytics-report", "inventory-analytics-report", "inventory-transaction-report", "activity-form-result", "workorder-report", "planned-workorder-report", "statement-report", "coverage-report", "activity-note-report", "activity-audit", "activity-photo", "activity-task", "activity-feedback", "media-storage-report", "client-balance-report", "rep-balance-report", "activity-form-v2-report", "payment-report", "financial-transaction-report", "nps-assessment-report", "accounts-balance-as-of-report", "inventory-balance-as-of-report", "product-audit-trace", "bi-view-calc", "events-log", "approval-request-report", "contract-report", "contract-installment-report", "asset-part-unit-report", "ageing-summary-report", "client-target-sheet", "frequency-report-v2", "fullinvoice-report", "bulk-export"];
|
|
18088
|
+
interface NamingKey {
|
|
18089
|
+
key: string;
|
|
18090
|
+
value: string;
|
|
18091
|
+
type: "string" | "number" | "boolean";
|
|
18092
|
+
isArray?: boolean;
|
|
18093
|
+
}
|
|
18094
|
+
export interface Data {
|
|
18095
|
+
_id: StringId;
|
|
18096
|
+
name: string;
|
|
18097
|
+
creator: {
|
|
18098
|
+
_id: StringId;
|
|
18099
|
+
name: string;
|
|
18100
|
+
type: "admin";
|
|
18101
|
+
admin?: StringId;
|
|
18102
|
+
};
|
|
18103
|
+
nextEmailSendingTime: number;
|
|
18104
|
+
lang?: string;
|
|
18105
|
+
report_method?: "find" | "create";
|
|
18106
|
+
report: (typeof reports)[number];
|
|
18107
|
+
emails: string[];
|
|
18108
|
+
disabled: boolean;
|
|
18109
|
+
full_cycle?: boolean;
|
|
18110
|
+
time_period_tense?: "last" | "current";
|
|
18111
|
+
every: "day" | "week" | "month" | "once";
|
|
18112
|
+
time_day?: "00:00" | "02:00" | "04:00" | "06:00" | "07:00" | "08:00" | "10:00" | "12:00" | "14:00" | "16:00" | "18:00" | "20:00" | "22:00";
|
|
18113
|
+
day_week?: "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat";
|
|
18114
|
+
day_month?: number;
|
|
18115
|
+
filter: {
|
|
18116
|
+
[key: string]: any;
|
|
18117
|
+
};
|
|
18118
|
+
processed?: boolean;
|
|
18119
|
+
tries?: number;
|
|
18120
|
+
lastSuccessfulProcess?: number;
|
|
18121
|
+
lastSuccessfulEmail?: number;
|
|
18122
|
+
links: {
|
|
18123
|
+
link: string;
|
|
18124
|
+
bucket_name?: string;
|
|
18125
|
+
region?: string;
|
|
18126
|
+
key?: string;
|
|
18127
|
+
media?: StringId[];
|
|
18128
|
+
contentLength?: number;
|
|
18129
|
+
}[];
|
|
18130
|
+
_errors: any[];
|
|
18131
|
+
export_type: "excel" | "json" | "zip" | "parquet";
|
|
18132
|
+
buildingAt?: Date;
|
|
18133
|
+
readyAt?: Date;
|
|
18134
|
+
queuedAt?: Date;
|
|
18135
|
+
state: "queued" | "ready" | "building" | "failed" | "deleted" | "updated";
|
|
18136
|
+
template?: StringId;
|
|
18137
|
+
report_view?: StringId;
|
|
18138
|
+
compressed_media_size?: "original" | "small" | "medium" | "large" | "extra";
|
|
18139
|
+
file_naming?: NamingKey[];
|
|
18140
|
+
group_naming?: NamingKey[];
|
|
18141
|
+
bi_view?: StringId;
|
|
18142
|
+
row_count?: number;
|
|
18143
|
+
company_namespace: string[];
|
|
18144
|
+
createdAt: Date;
|
|
18145
|
+
updatedAt: Date;
|
|
18146
|
+
}
|
|
18147
|
+
export interface CreateBody {
|
|
18148
|
+
company_namespace?: string[];
|
|
18149
|
+
name: string;
|
|
18150
|
+
creator: {
|
|
18151
|
+
_id: StringId;
|
|
18152
|
+
name: string;
|
|
18153
|
+
type: "admin";
|
|
18154
|
+
admin?: StringId;
|
|
18155
|
+
};
|
|
18156
|
+
lang?: string;
|
|
18157
|
+
report_method?: Data["report_method"];
|
|
18158
|
+
report: (typeof reports)[number];
|
|
18159
|
+
emails: string[];
|
|
18160
|
+
disabled?: boolean;
|
|
18161
|
+
full_cycle?: boolean;
|
|
18162
|
+
time_period_tense?: Data["time_period_tense"];
|
|
18163
|
+
every: Data["every"];
|
|
18164
|
+
time_day?: Data["time_day"];
|
|
18165
|
+
day_week?: Data["day_week"];
|
|
18166
|
+
day_month?: number;
|
|
18167
|
+
filter: {
|
|
18168
|
+
[key: string]: any;
|
|
18169
|
+
};
|
|
18170
|
+
export_type: Data["export_type"];
|
|
18171
|
+
template?: StringId;
|
|
18172
|
+
report_view?: StringId;
|
|
18173
|
+
compressed_media_size?: Data["compressed_media_size"];
|
|
18174
|
+
file_naming?: NamingKey[];
|
|
18175
|
+
group_naming?: NamingKey[];
|
|
18176
|
+
bi_view?: StringId;
|
|
18177
|
+
}
|
|
18178
|
+
export type UpdateBody = Partial<Data>;
|
|
18179
|
+
export namespace Find {
|
|
18180
|
+
type Params = DefaultPaginationQueryParams & {
|
|
18181
|
+
_id?: StringId | StringId[];
|
|
18182
|
+
search?: string;
|
|
18183
|
+
disabled?: boolean;
|
|
18184
|
+
every?: Data["every"] | Data["every"][];
|
|
18185
|
+
report?: Data["report"] | Data["report"][];
|
|
18186
|
+
"creator._id"?: StringId | StringId[];
|
|
18187
|
+
report_view?: StringId | StringId[];
|
|
18188
|
+
export_type?: Data["export_type"] | Data["export_type"][];
|
|
18189
|
+
state?: Data["state"] | Data["state"][];
|
|
18190
|
+
template?: StringId | StringId[];
|
|
18191
|
+
time_period_tense?: Data["time_period_tense"] | Data["time_period_tense"][];
|
|
18192
|
+
full_cycle?: boolean;
|
|
18193
|
+
row_count?: number | number[];
|
|
18194
|
+
};
|
|
18195
|
+
interface Result extends DefaultPaginationResult {
|
|
18196
|
+
data: Data[];
|
|
18197
|
+
}
|
|
18198
|
+
}
|
|
18199
|
+
export namespace Get {
|
|
18200
|
+
type ID = string;
|
|
18201
|
+
type Params = {};
|
|
18202
|
+
type Result = Data;
|
|
18203
|
+
}
|
|
18204
|
+
export namespace Create {
|
|
18205
|
+
type Body = CreateBody;
|
|
18206
|
+
type Result = Data;
|
|
18207
|
+
}
|
|
18208
|
+
export namespace Update {
|
|
18209
|
+
type ID = StringId;
|
|
18210
|
+
type Body = UpdateBody;
|
|
18211
|
+
type Result = Data;
|
|
18212
|
+
}
|
|
18213
|
+
export namespace Remove {
|
|
18214
|
+
type ID = string;
|
|
18215
|
+
type Result = Data;
|
|
18216
|
+
}
|
|
18217
|
+
export {};
|
|
18218
|
+
}
|
|
18219
|
+
namespace DataFileWarehouse {
|
|
18220
|
+
export const dataFileWarehouseReports: readonly ["storecheck-checkout", "storecheck-freshness", "storecheck-outofstock", "storecheck-planogram", "storecheck-pricing", "storecheck-secondary", "storecheck-shelfshare", "storecheck-stock", "visit-report", "item-status-report", "receiving-material", "proforma", "adjust-account", "legacy-jobs-report", "sales-analytics-report", "pre-sales-analytics-report", "inventory-analytics-report", "inventory-transaction-report", "activity-note-report", "activity-audit", "activity-photo", "activity-task", "activity-feedback", "payment-report", "financial-transaction-report", "product-audit-trace", "events-log", "approval-request-report", "contract-report", "asset-part-unit-report", "contract-installment-report", "fullinvoice-report", "product", "variant", "category", "subCategory", "rep", "tag", "warehouse", "productGroup", "speciality", "measureunit", "measureunitFamily", "promotions", "supplier", "routes", "rules", "routesWithClients", "availabilityMsl", "availabilityMslWithProducts", "mslWithVariants", "jobCategories", "jobs", "plans", "planWithRules", "targetRulesWithClients", "rulesWithRoutes", "targetRulesWithReps", "priceListItems", "assets", "assetUnits", "reminders", "clientLocation", "variantBatch", "banksList", "targetRule", "lineTarget", "assetPartTypes", "assetParts", "clientLineClassification", "retailExecutionPresets", "clientBalance", "repBalance", "clientUblInfo_JO", "clientUblInfo_SA", "clients"];
|
|
18221
|
+
export interface Data {
|
|
18222
|
+
_id: StringId;
|
|
18223
|
+
company_namespace: string[];
|
|
18224
|
+
name_space: string;
|
|
18225
|
+
teams: StringId[];
|
|
18226
|
+
creator: AdminOrRepOrTenantOrClient;
|
|
18227
|
+
report: (typeof dataFileWarehouseReports)[number];
|
|
18228
|
+
data_type: "static" | "report";
|
|
18229
|
+
timespan: "years" | "months" | "days";
|
|
18230
|
+
start_year: number;
|
|
18231
|
+
end_year: number;
|
|
18232
|
+
start_month: number;
|
|
18233
|
+
end_month: number;
|
|
18234
|
+
start_day: number;
|
|
18235
|
+
end_day: number;
|
|
18236
|
+
time_zone: string;
|
|
18237
|
+
offset_EOD: string;
|
|
18238
|
+
status: "pending" | "queued" | "ready" | "building" | "failed";
|
|
18239
|
+
partial_status: "partial" | "full";
|
|
18240
|
+
from: number;
|
|
18241
|
+
to: number;
|
|
18242
|
+
scheduled_email?: StringId;
|
|
18243
|
+
media?: StringId;
|
|
18244
|
+
link?: string;
|
|
18245
|
+
row_count?: number;
|
|
18246
|
+
disabled: boolean;
|
|
18247
|
+
readyAt?: number;
|
|
18248
|
+
createdAt: string;
|
|
18249
|
+
updatedAt: string;
|
|
18250
|
+
__v?: number;
|
|
18251
|
+
}
|
|
18252
|
+
export interface CreateBody {
|
|
18253
|
+
company_namespace?: string[];
|
|
18254
|
+
name_space?: string;
|
|
18255
|
+
teams?: StringId[];
|
|
18256
|
+
creator?: AdminOrRepOrTenantOrClient;
|
|
18257
|
+
report: (typeof dataFileWarehouseReports)[number];
|
|
18258
|
+
data_type: "static" | "report";
|
|
18259
|
+
timespan: "years" | "months" | "days";
|
|
18260
|
+
start_year: number;
|
|
18261
|
+
end_year: number;
|
|
18262
|
+
start_month: number;
|
|
18263
|
+
end_month: number;
|
|
18264
|
+
start_day: number;
|
|
18265
|
+
end_day: number;
|
|
18266
|
+
time_zone?: string;
|
|
18267
|
+
offset_EOD?: string;
|
|
18268
|
+
partial_status: "partial" | "full";
|
|
18269
|
+
from: number;
|
|
18270
|
+
to: number;
|
|
18271
|
+
disabled?: boolean;
|
|
18272
|
+
}
|
|
18273
|
+
export type UpdateBody = Partial<Data>;
|
|
18274
|
+
export type PopulatedDoc = Data & {
|
|
18275
|
+
scheduled_email?: ScheduledEmails.Data;
|
|
18276
|
+
media?: PopulatedMediaStorage;
|
|
18277
|
+
};
|
|
18278
|
+
type PopulatedKeys = "scheduled_email" | "media";
|
|
18279
|
+
type SortingKeys = "_id" | "updatedAt" | "createdAt";
|
|
18280
|
+
export namespace Find {
|
|
18281
|
+
type Params = DefaultPaginationQueryParams & {
|
|
18282
|
+
sortBy?: {
|
|
18283
|
+
field: SortingKeys;
|
|
18284
|
+
type: "asc" | "desc";
|
|
18285
|
+
}[];
|
|
18286
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
18287
|
+
_id?: StringId | StringId[];
|
|
18288
|
+
report?: Data["report"] | Data["report"][];
|
|
18289
|
+
disabled?: boolean;
|
|
18290
|
+
from_updatedAt?: number;
|
|
18291
|
+
to_updatedAt?: number;
|
|
18292
|
+
from_createdAt?: number;
|
|
18293
|
+
to_createdAt?: number;
|
|
18294
|
+
from__id?: StringId | StringId[];
|
|
18295
|
+
to__id?: StringId | StringId[];
|
|
18296
|
+
scheduled_email?: StringId | StringId[];
|
|
18297
|
+
row_count?: number | number[];
|
|
18298
|
+
teams?: StringId | StringId[];
|
|
18299
|
+
"creator._id"?: StringId | StringId[];
|
|
18300
|
+
"creator.type"?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
18301
|
+
status?: Data["status"] | Data["status"][];
|
|
18302
|
+
data_type?: Data["data_type"] | Data["data_type"][];
|
|
18303
|
+
partial_status?: Data["partial_status"] | Data["partial_status"][];
|
|
18304
|
+
};
|
|
18305
|
+
interface Result extends DefaultPaginationResult {
|
|
18306
|
+
data: PopulatedDoc[];
|
|
18307
|
+
}
|
|
18308
|
+
}
|
|
18309
|
+
export namespace Get {
|
|
18310
|
+
type ID = string;
|
|
18311
|
+
type Params = {
|
|
18312
|
+
populatedKeys?: PopulatedKeys[];
|
|
18313
|
+
};
|
|
18314
|
+
type Result = PopulatedDoc;
|
|
18315
|
+
}
|
|
18316
|
+
export namespace Create {
|
|
18317
|
+
type Body = CreateBody;
|
|
18318
|
+
type Result = Data;
|
|
18319
|
+
}
|
|
18320
|
+
export namespace Update {
|
|
18321
|
+
type ID = StringId;
|
|
18322
|
+
type Body = UpdateBody;
|
|
18323
|
+
type Result = Data;
|
|
18324
|
+
}
|
|
18325
|
+
export namespace Remove {
|
|
18326
|
+
type ID = string;
|
|
18327
|
+
type Result = Data;
|
|
18328
|
+
}
|
|
18329
|
+
export {};
|
|
18330
|
+
}
|
|
18331
|
+
namespace DataSession {
|
|
18332
|
+
export interface Data {
|
|
18333
|
+
_id: StringId;
|
|
18334
|
+
company_namespace: string[];
|
|
18335
|
+
ai_chat_session: StringId;
|
|
18336
|
+
sync_id: string;
|
|
18337
|
+
teams: StringId[];
|
|
18338
|
+
creator: AdminOrRepOrTenantOrClient;
|
|
18339
|
+
from: string;
|
|
18340
|
+
to: string;
|
|
18341
|
+
time: number;
|
|
18342
|
+
reports: DataFileWarehouse.Data["report"][];
|
|
18343
|
+
data_file_warehouse_ids: StringId[];
|
|
18344
|
+
status: "pending" | "ready" | "building" | "failed";
|
|
18345
|
+
createdAt: string;
|
|
18346
|
+
updatedAt: string;
|
|
18347
|
+
}
|
|
18348
|
+
export interface CreateBody {
|
|
18349
|
+
company_namespace?: string[];
|
|
18350
|
+
ai_chat_session: StringId;
|
|
18351
|
+
sync_id: string;
|
|
18352
|
+
teams?: StringId[];
|
|
18353
|
+
creator?: AdminOrRepOrTenantOrClient;
|
|
18354
|
+
from: string;
|
|
18355
|
+
to: string;
|
|
18356
|
+
time?: number;
|
|
18357
|
+
reports: DataFileWarehouse.Data["report"][];
|
|
18358
|
+
}
|
|
18359
|
+
export type UpdateBody = Partial<Data>;
|
|
18360
|
+
export type PopulatedDoc = Data & {
|
|
18361
|
+
data_file_warehouse_ids?: DataFileWarehouse.Data[];
|
|
18362
|
+
};
|
|
18363
|
+
type PopulatedKeys = "data_file_warehouse_ids";
|
|
18364
|
+
type SortingKeys = "_id" | "createdAt" | "updatedAt";
|
|
18365
|
+
export namespace Find {
|
|
18366
|
+
type Params = DefaultPaginationQueryParams & {
|
|
18367
|
+
sortBy?: {
|
|
18368
|
+
field: SortingKeys;
|
|
18369
|
+
type: "asc" | "desc";
|
|
18370
|
+
}[];
|
|
18371
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
18372
|
+
_id?: StringId | StringId[];
|
|
18373
|
+
disabled?: boolean;
|
|
18374
|
+
from_updatedAt?: number;
|
|
18375
|
+
to_updatedAt?: number;
|
|
18376
|
+
from_createdAt?: number;
|
|
18377
|
+
to_createdAt?: number;
|
|
18378
|
+
ai_chat_session?: StringId | StringId[];
|
|
18379
|
+
from?: string;
|
|
18380
|
+
to?: string;
|
|
18381
|
+
reports?: DataFileWarehouse.Data["report"] | DataFileWarehouse.Data["report"][];
|
|
18382
|
+
teams?: StringId | StringId[];
|
|
18383
|
+
data_file_warehouse_ids?: StringId | StringId[];
|
|
18384
|
+
status?: Data["status"] | Data["status"][];
|
|
18385
|
+
sync_id?: string | string[];
|
|
18386
|
+
from__id?: StringId | StringId[];
|
|
18387
|
+
to__id?: StringId | StringId[];
|
|
18388
|
+
"creator._id"?: StringId | StringId[];
|
|
18389
|
+
"creator.type"?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
18390
|
+
};
|
|
18391
|
+
interface Result extends DefaultPaginationResult {
|
|
18392
|
+
data: PopulatedDoc[];
|
|
18393
|
+
}
|
|
18394
|
+
}
|
|
18395
|
+
export namespace Get {
|
|
18396
|
+
type ID = string;
|
|
18397
|
+
type Params = {
|
|
18398
|
+
populatedKeys?: PopulatedKeys[];
|
|
18399
|
+
};
|
|
18400
|
+
type Result = PopulatedDoc;
|
|
18401
|
+
}
|
|
18402
|
+
export namespace Create {
|
|
18403
|
+
type Body = CreateBody;
|
|
18404
|
+
type Result = Data;
|
|
18405
|
+
}
|
|
18406
|
+
export namespace Update {
|
|
18407
|
+
type ID = StringId;
|
|
18408
|
+
type Body = UpdateBody;
|
|
18409
|
+
type Result = Data;
|
|
18410
|
+
}
|
|
18411
|
+
export namespace Remove {
|
|
18412
|
+
type ID = string;
|
|
18413
|
+
type Result = Data;
|
|
18414
|
+
}
|
|
18415
|
+
export {};
|
|
18416
|
+
}
|
|
18086
18417
|
}
|
|
18087
18418
|
export type StringId = string;
|
|
18088
18419
|
export type NameSpaces = string[];
|
package/lib/types/index.js
CHANGED
|
@@ -122,4 +122,150 @@ export var Service;
|
|
|
122
122
|
"GeoPoint", // { coordinates: [0, 0], type: "Point" }
|
|
123
123
|
];
|
|
124
124
|
})(ActivityFormV2Result = Service.ActivityFormV2Result || (Service.ActivityFormV2Result = {}));
|
|
125
|
+
let ScheduledEmails;
|
|
126
|
+
(function (ScheduledEmails) {
|
|
127
|
+
ScheduledEmails.reports = [
|
|
128
|
+
"storecheck-checkout",
|
|
129
|
+
"storecheck-freshness",
|
|
130
|
+
"storecheck-outofstock",
|
|
131
|
+
"storecheck-planogram",
|
|
132
|
+
"storecheck-pricing",
|
|
133
|
+
"storecheck-secondary",
|
|
134
|
+
"storecheck-shelfshare",
|
|
135
|
+
"storecheck-stock",
|
|
136
|
+
"visit-report",
|
|
137
|
+
"schedule-report",
|
|
138
|
+
"target-result",
|
|
139
|
+
"item-status-report",
|
|
140
|
+
"time-clock-report",
|
|
141
|
+
"frequency-report",
|
|
142
|
+
"retail-execution-report",
|
|
143
|
+
"receiving-material",
|
|
144
|
+
"proforma",
|
|
145
|
+
"adjust-account",
|
|
146
|
+
"unvisited-report",
|
|
147
|
+
"legacy-jobs-report",
|
|
148
|
+
"sales-analytics-report",
|
|
149
|
+
"pre-sales-analytics-report",
|
|
150
|
+
"inventory-analytics-report",
|
|
151
|
+
"inventory-transaction-report",
|
|
152
|
+
"activity-form-result",
|
|
153
|
+
"workorder-report",
|
|
154
|
+
"planned-workorder-report",
|
|
155
|
+
"statement-report",
|
|
156
|
+
"coverage-report",
|
|
157
|
+
"activity-note-report",
|
|
158
|
+
"activity-audit",
|
|
159
|
+
"activity-photo",
|
|
160
|
+
"activity-task",
|
|
161
|
+
"activity-feedback",
|
|
162
|
+
"media-storage-report",
|
|
163
|
+
"client-balance-report",
|
|
164
|
+
"rep-balance-report",
|
|
165
|
+
"activity-form-v2-report",
|
|
166
|
+
"payment-report",
|
|
167
|
+
"financial-transaction-report",
|
|
168
|
+
"nps-assessment-report",
|
|
169
|
+
"accounts-balance-as-of-report",
|
|
170
|
+
"inventory-balance-as-of-report",
|
|
171
|
+
"product-audit-trace",
|
|
172
|
+
"bi-view-calc",
|
|
173
|
+
"events-log",
|
|
174
|
+
"approval-request-report",
|
|
175
|
+
"contract-report",
|
|
176
|
+
"contract-installment-report",
|
|
177
|
+
"asset-part-unit-report",
|
|
178
|
+
"ageing-summary-report",
|
|
179
|
+
"client-target-sheet",
|
|
180
|
+
"frequency-report-v2",
|
|
181
|
+
"fullinvoice-report",
|
|
182
|
+
"bulk-export",
|
|
183
|
+
];
|
|
184
|
+
})(ScheduledEmails = Service.ScheduledEmails || (Service.ScheduledEmails = {}));
|
|
185
|
+
let DataFileWarehouse;
|
|
186
|
+
(function (DataFileWarehouse) {
|
|
187
|
+
DataFileWarehouse.dataFileWarehouseReports = [
|
|
188
|
+
"storecheck-checkout",
|
|
189
|
+
"storecheck-freshness",
|
|
190
|
+
"storecheck-outofstock",
|
|
191
|
+
"storecheck-planogram",
|
|
192
|
+
"storecheck-pricing",
|
|
193
|
+
"storecheck-secondary",
|
|
194
|
+
"storecheck-shelfshare",
|
|
195
|
+
"storecheck-stock",
|
|
196
|
+
"visit-report",
|
|
197
|
+
"item-status-report",
|
|
198
|
+
"receiving-material",
|
|
199
|
+
"proforma",
|
|
200
|
+
"adjust-account",
|
|
201
|
+
"legacy-jobs-report",
|
|
202
|
+
"sales-analytics-report",
|
|
203
|
+
"pre-sales-analytics-report",
|
|
204
|
+
"inventory-analytics-report",
|
|
205
|
+
"inventory-transaction-report",
|
|
206
|
+
"activity-note-report",
|
|
207
|
+
"activity-audit",
|
|
208
|
+
"activity-photo",
|
|
209
|
+
"activity-task",
|
|
210
|
+
"activity-feedback",
|
|
211
|
+
"payment-report",
|
|
212
|
+
"financial-transaction-report",
|
|
213
|
+
"product-audit-trace",
|
|
214
|
+
"events-log",
|
|
215
|
+
"approval-request-report",
|
|
216
|
+
"contract-report",
|
|
217
|
+
"asset-part-unit-report",
|
|
218
|
+
"contract-installment-report",
|
|
219
|
+
// "ageing-summary-report",
|
|
220
|
+
"fullinvoice-report",
|
|
221
|
+
"product",
|
|
222
|
+
"variant",
|
|
223
|
+
"category",
|
|
224
|
+
"subCategory",
|
|
225
|
+
"rep",
|
|
226
|
+
"tag",
|
|
227
|
+
"warehouse",
|
|
228
|
+
"productGroup",
|
|
229
|
+
"speciality",
|
|
230
|
+
"measureunit",
|
|
231
|
+
"measureunitFamily",
|
|
232
|
+
"promotions",
|
|
233
|
+
"supplier",
|
|
234
|
+
"routes",
|
|
235
|
+
"rules",
|
|
236
|
+
"routesWithClients",
|
|
237
|
+
"availabilityMsl",
|
|
238
|
+
"availabilityMslWithProducts",
|
|
239
|
+
"mslWithVariants",
|
|
240
|
+
"jobCategories",
|
|
241
|
+
"jobs",
|
|
242
|
+
"plans",
|
|
243
|
+
"planWithRules",
|
|
244
|
+
"targetRulesWithClients",
|
|
245
|
+
"rulesWithRoutes",
|
|
246
|
+
"targetRulesWithReps",
|
|
247
|
+
"priceListItems",
|
|
248
|
+
"assets",
|
|
249
|
+
"assetUnits",
|
|
250
|
+
"reminders",
|
|
251
|
+
"clientLocation",
|
|
252
|
+
"variantBatch",
|
|
253
|
+
"banksList",
|
|
254
|
+
"targetRule",
|
|
255
|
+
// "contracts",
|
|
256
|
+
// "contractInstallment",
|
|
257
|
+
"lineTarget",
|
|
258
|
+
"assetPartTypes",
|
|
259
|
+
"assetParts",
|
|
260
|
+
// "customListItems",
|
|
261
|
+
"clientLineClassification",
|
|
262
|
+
"retailExecutionPresets",
|
|
263
|
+
"clientBalance",
|
|
264
|
+
"repBalance",
|
|
265
|
+
"clientUblInfo_JO",
|
|
266
|
+
"clientUblInfo_SA",
|
|
267
|
+
// "admins",
|
|
268
|
+
"clients",
|
|
269
|
+
];
|
|
270
|
+
})(DataFileWarehouse = Service.DataFileWarehouse || (Service.DataFileWarehouse = {}));
|
|
125
271
|
})(Service || (Service = {}));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -141,6 +141,9 @@ export const end_points = {
|
|
|
141
141
|
LINE_CLASSIFICATION: "line-classification",
|
|
142
142
|
LINE: "line",
|
|
143
143
|
CLIENT_LINE: "client-line",
|
|
144
|
+
SCHEDULED_EMAILS: "scheduled-emails",
|
|
145
|
+
DATA_FILE_WAREHOUSE: "data-file-warehouse",
|
|
146
|
+
DATA_SESSION: "data-session",
|
|
144
147
|
} as const;
|
|
145
148
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
146
149
|
|
|
@@ -6567,6 +6570,168 @@ export default class Repzo {
|
|
|
6567
6570
|
return res;
|
|
6568
6571
|
},
|
|
6569
6572
|
};
|
|
6573
|
+
|
|
6574
|
+
scheduledEmails = {
|
|
6575
|
+
_path: Repzo._end_points.SCHEDULED_EMAILS,
|
|
6576
|
+
find: async (
|
|
6577
|
+
params?: Service.ScheduledEmails.Find.Params,
|
|
6578
|
+
): Promise<Service.ScheduledEmails.Find.Result> => {
|
|
6579
|
+
let res: Service.ScheduledEmails.Find.Result = await this._fetch(
|
|
6580
|
+
this.svAPIEndpoint,
|
|
6581
|
+
this.scheduledEmails._path,
|
|
6582
|
+
params,
|
|
6583
|
+
);
|
|
6584
|
+
return res;
|
|
6585
|
+
},
|
|
6586
|
+
get: async (
|
|
6587
|
+
id: Service.ScheduledEmails.Get.ID,
|
|
6588
|
+
params?: Service.ScheduledEmails.Get.Params,
|
|
6589
|
+
): Promise<Service.ScheduledEmails.Get.Result> => {
|
|
6590
|
+
return await this._fetch(
|
|
6591
|
+
this.svAPIEndpoint,
|
|
6592
|
+
this.scheduledEmails._path + `/${id}`,
|
|
6593
|
+
params,
|
|
6594
|
+
);
|
|
6595
|
+
},
|
|
6596
|
+
create: async (
|
|
6597
|
+
body: Service.ScheduledEmails.Create.Body,
|
|
6598
|
+
): Promise<Service.ScheduledEmails.Create.Result> => {
|
|
6599
|
+
let res = await this._create(
|
|
6600
|
+
this.svAPIEndpoint,
|
|
6601
|
+
this.scheduledEmails._path,
|
|
6602
|
+
body,
|
|
6603
|
+
);
|
|
6604
|
+
return res;
|
|
6605
|
+
},
|
|
6606
|
+
update: async (
|
|
6607
|
+
id: Service.ScheduledEmails.Update.ID,
|
|
6608
|
+
body: Service.ScheduledEmails.Update.Body,
|
|
6609
|
+
): Promise<Service.ScheduledEmails.Update.Result> => {
|
|
6610
|
+
let res: Service.ScheduledEmails.Update.Result = await this._update(
|
|
6611
|
+
this.svAPIEndpoint,
|
|
6612
|
+
this.scheduledEmails._path + `/${id}`,
|
|
6613
|
+
body,
|
|
6614
|
+
);
|
|
6615
|
+
return res;
|
|
6616
|
+
},
|
|
6617
|
+
remove: async (
|
|
6618
|
+
id: Service.ScheduledEmails.Update.ID,
|
|
6619
|
+
): Promise<Service.ScheduledEmails.Remove.Result> => {
|
|
6620
|
+
let res: Service.ScheduledEmails.Remove.Result = await this._delete(
|
|
6621
|
+
this.svAPIEndpoint,
|
|
6622
|
+
this.scheduledEmails._path + `/${id}`,
|
|
6623
|
+
);
|
|
6624
|
+
return res;
|
|
6625
|
+
},
|
|
6626
|
+
};
|
|
6627
|
+
|
|
6628
|
+
dataFileWarehouse = {
|
|
6629
|
+
_path: Repzo._end_points.DATA_FILE_WAREHOUSE,
|
|
6630
|
+
find: async (
|
|
6631
|
+
params?: Service.DataFileWarehouse.Find.Params,
|
|
6632
|
+
): Promise<Service.DataFileWarehouse.Find.Result> => {
|
|
6633
|
+
let res: Service.DataFileWarehouse.Find.Result = await this._fetch(
|
|
6634
|
+
this.svAPIEndpoint,
|
|
6635
|
+
this.dataFileWarehouse._path,
|
|
6636
|
+
params,
|
|
6637
|
+
);
|
|
6638
|
+
return res;
|
|
6639
|
+
},
|
|
6640
|
+
get: async (
|
|
6641
|
+
id: Service.DataFileWarehouse.Get.ID,
|
|
6642
|
+
params?: Service.DataFileWarehouse.Get.Params,
|
|
6643
|
+
): Promise<Service.DataFileWarehouse.Get.Result> => {
|
|
6644
|
+
return await this._fetch(
|
|
6645
|
+
this.svAPIEndpoint,
|
|
6646
|
+
this.dataFileWarehouse._path + `/${id}`,
|
|
6647
|
+
params,
|
|
6648
|
+
);
|
|
6649
|
+
},
|
|
6650
|
+
create: async (
|
|
6651
|
+
body: Service.DataFileWarehouse.Create.Body,
|
|
6652
|
+
): Promise<Service.DataFileWarehouse.Create.Result> => {
|
|
6653
|
+
let res = await this._create(
|
|
6654
|
+
this.svAPIEndpoint,
|
|
6655
|
+
this.dataFileWarehouse._path,
|
|
6656
|
+
body,
|
|
6657
|
+
);
|
|
6658
|
+
return res;
|
|
6659
|
+
},
|
|
6660
|
+
update: async (
|
|
6661
|
+
id: Service.DataFileWarehouse.Update.ID,
|
|
6662
|
+
body: Service.DataFileWarehouse.Update.Body,
|
|
6663
|
+
): Promise<Service.DataFileWarehouse.Update.Result> => {
|
|
6664
|
+
let res: Service.DataFileWarehouse.Update.Result = await this._update(
|
|
6665
|
+
this.svAPIEndpoint,
|
|
6666
|
+
this.dataFileWarehouse._path + `/${id}`,
|
|
6667
|
+
body,
|
|
6668
|
+
);
|
|
6669
|
+
return res;
|
|
6670
|
+
},
|
|
6671
|
+
remove: async (
|
|
6672
|
+
id: Service.DataFileWarehouse.Update.ID,
|
|
6673
|
+
): Promise<Service.DataFileWarehouse.Remove.Result> => {
|
|
6674
|
+
let res: Service.DataFileWarehouse.Remove.Result = await this._delete(
|
|
6675
|
+
this.svAPIEndpoint,
|
|
6676
|
+
this.dataFileWarehouse._path + `/${id}`,
|
|
6677
|
+
);
|
|
6678
|
+
return res;
|
|
6679
|
+
},
|
|
6680
|
+
};
|
|
6681
|
+
|
|
6682
|
+
dataSession = {
|
|
6683
|
+
_path: Repzo._end_points.DATA_SESSION,
|
|
6684
|
+
find: async (
|
|
6685
|
+
params?: Service.DataSession.Find.Params,
|
|
6686
|
+
): Promise<Service.DataSession.Find.Result> => {
|
|
6687
|
+
let res: Service.DataSession.Find.Result = await this._fetch(
|
|
6688
|
+
this.svAPIEndpoint,
|
|
6689
|
+
this.dataSession._path,
|
|
6690
|
+
params,
|
|
6691
|
+
);
|
|
6692
|
+
return res;
|
|
6693
|
+
},
|
|
6694
|
+
get: async (
|
|
6695
|
+
id: Service.DataSession.Get.ID,
|
|
6696
|
+
params?: Service.DataSession.Get.Params,
|
|
6697
|
+
): Promise<Service.DataSession.Get.Result> => {
|
|
6698
|
+
return await this._fetch(
|
|
6699
|
+
this.svAPIEndpoint,
|
|
6700
|
+
this.dataSession._path + `/${id}`,
|
|
6701
|
+
params,
|
|
6702
|
+
);
|
|
6703
|
+
},
|
|
6704
|
+
create: async (
|
|
6705
|
+
body: Service.DataSession.Create.Body,
|
|
6706
|
+
): Promise<Service.DataSession.Create.Result> => {
|
|
6707
|
+
let res = await this._create(
|
|
6708
|
+
this.svAPIEndpoint,
|
|
6709
|
+
this.dataSession._path,
|
|
6710
|
+
body,
|
|
6711
|
+
);
|
|
6712
|
+
return res;
|
|
6713
|
+
},
|
|
6714
|
+
update: async (
|
|
6715
|
+
id: Service.DataSession.Update.ID,
|
|
6716
|
+
body: Service.DataSession.Update.Body,
|
|
6717
|
+
): Promise<Service.DataSession.Update.Result> => {
|
|
6718
|
+
let res: Service.DataSession.Update.Result = await this._update(
|
|
6719
|
+
this.svAPIEndpoint,
|
|
6720
|
+
this.dataSession._path + `/${id}`,
|
|
6721
|
+
body,
|
|
6722
|
+
);
|
|
6723
|
+
return res;
|
|
6724
|
+
},
|
|
6725
|
+
remove: async (
|
|
6726
|
+
id: Service.DataSession.Update.ID,
|
|
6727
|
+
): Promise<Service.DataSession.Remove.Result> => {
|
|
6728
|
+
let res: Service.DataSession.Remove.Result = await this._delete(
|
|
6729
|
+
this.svAPIEndpoint,
|
|
6730
|
+
this.dataSession._path + `/${id}`,
|
|
6731
|
+
);
|
|
6732
|
+
return res;
|
|
6733
|
+
},
|
|
6734
|
+
};
|
|
6570
6735
|
}
|
|
6571
6736
|
|
|
6572
6737
|
function normalizeParams(params: Params): { [key: string]: any } {
|
package/src/types/index.ts
CHANGED
|
@@ -20190,6 +20190,481 @@ export namespace Service {
|
|
|
20190
20190
|
export type Result = Data;
|
|
20191
20191
|
}
|
|
20192
20192
|
}
|
|
20193
|
+
|
|
20194
|
+
export namespace ScheduledEmails {
|
|
20195
|
+
export const reports = [
|
|
20196
|
+
"storecheck-checkout",
|
|
20197
|
+
"storecheck-freshness",
|
|
20198
|
+
"storecheck-outofstock",
|
|
20199
|
+
"storecheck-planogram",
|
|
20200
|
+
"storecheck-pricing",
|
|
20201
|
+
"storecheck-secondary",
|
|
20202
|
+
"storecheck-shelfshare",
|
|
20203
|
+
"storecheck-stock",
|
|
20204
|
+
"visit-report",
|
|
20205
|
+
"schedule-report",
|
|
20206
|
+
"target-result",
|
|
20207
|
+
"item-status-report",
|
|
20208
|
+
"time-clock-report",
|
|
20209
|
+
"frequency-report",
|
|
20210
|
+
"retail-execution-report",
|
|
20211
|
+
"receiving-material",
|
|
20212
|
+
"proforma",
|
|
20213
|
+
"adjust-account",
|
|
20214
|
+
"unvisited-report",
|
|
20215
|
+
"legacy-jobs-report",
|
|
20216
|
+
"sales-analytics-report",
|
|
20217
|
+
"pre-sales-analytics-report",
|
|
20218
|
+
"inventory-analytics-report",
|
|
20219
|
+
"inventory-transaction-report",
|
|
20220
|
+
"activity-form-result",
|
|
20221
|
+
"workorder-report",
|
|
20222
|
+
"planned-workorder-report",
|
|
20223
|
+
"statement-report",
|
|
20224
|
+
"coverage-report",
|
|
20225
|
+
"activity-note-report",
|
|
20226
|
+
"activity-audit",
|
|
20227
|
+
"activity-photo",
|
|
20228
|
+
"activity-task",
|
|
20229
|
+
"activity-feedback",
|
|
20230
|
+
"media-storage-report",
|
|
20231
|
+
"client-balance-report",
|
|
20232
|
+
"rep-balance-report",
|
|
20233
|
+
"activity-form-v2-report",
|
|
20234
|
+
"payment-report",
|
|
20235
|
+
"financial-transaction-report",
|
|
20236
|
+
"nps-assessment-report",
|
|
20237
|
+
"accounts-balance-as-of-report",
|
|
20238
|
+
"inventory-balance-as-of-report",
|
|
20239
|
+
"product-audit-trace",
|
|
20240
|
+
"bi-view-calc",
|
|
20241
|
+
"events-log",
|
|
20242
|
+
"approval-request-report",
|
|
20243
|
+
"contract-report",
|
|
20244
|
+
"contract-installment-report",
|
|
20245
|
+
"asset-part-unit-report",
|
|
20246
|
+
"ageing-summary-report",
|
|
20247
|
+
"client-target-sheet",
|
|
20248
|
+
"frequency-report-v2",
|
|
20249
|
+
"fullinvoice-report",
|
|
20250
|
+
"bulk-export",
|
|
20251
|
+
] as const;
|
|
20252
|
+
interface NamingKey {
|
|
20253
|
+
key: string;
|
|
20254
|
+
value: string;
|
|
20255
|
+
type: "string" | "number" | "boolean";
|
|
20256
|
+
isArray?: boolean;
|
|
20257
|
+
}
|
|
20258
|
+
export interface Data {
|
|
20259
|
+
_id: StringId;
|
|
20260
|
+
name: string;
|
|
20261
|
+
creator: { _id: StringId; name: string; type: "admin"; admin?: StringId };
|
|
20262
|
+
nextEmailSendingTime: number;
|
|
20263
|
+
lang?: string;
|
|
20264
|
+
report_method?: "find" | "create";
|
|
20265
|
+
report: (typeof reports)[number];
|
|
20266
|
+
emails: string[];
|
|
20267
|
+
disabled: boolean;
|
|
20268
|
+
full_cycle?: boolean;
|
|
20269
|
+
time_period_tense?: "last" | "current";
|
|
20270
|
+
every: "day" | "week" | "month" | "once";
|
|
20271
|
+
time_day?:
|
|
20272
|
+
| "00:00"
|
|
20273
|
+
| "02:00"
|
|
20274
|
+
| "04:00"
|
|
20275
|
+
| "06:00"
|
|
20276
|
+
| "07:00"
|
|
20277
|
+
| "08:00"
|
|
20278
|
+
| "10:00"
|
|
20279
|
+
| "12:00"
|
|
20280
|
+
| "14:00"
|
|
20281
|
+
| "16:00"
|
|
20282
|
+
| "18:00"
|
|
20283
|
+
| "20:00"
|
|
20284
|
+
| "22:00";
|
|
20285
|
+
day_week?: "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat";
|
|
20286
|
+
day_month?: number;
|
|
20287
|
+
filter: { [key: string]: any };
|
|
20288
|
+
processed?: boolean;
|
|
20289
|
+
tries?: number;
|
|
20290
|
+
lastSuccessfulProcess?: number;
|
|
20291
|
+
lastSuccessfulEmail?: number;
|
|
20292
|
+
links: {
|
|
20293
|
+
link: string;
|
|
20294
|
+
bucket_name?: string;
|
|
20295
|
+
region?: string;
|
|
20296
|
+
key?: string;
|
|
20297
|
+
media?: StringId[];
|
|
20298
|
+
contentLength?: number;
|
|
20299
|
+
}[];
|
|
20300
|
+
_errors: any[];
|
|
20301
|
+
export_type: "excel" | "json" | "zip" | "parquet";
|
|
20302
|
+
buildingAt?: Date;
|
|
20303
|
+
readyAt?: Date;
|
|
20304
|
+
queuedAt?: Date;
|
|
20305
|
+
state: "queued" | "ready" | "building" | "failed" | "deleted" | "updated";
|
|
20306
|
+
template?: StringId;
|
|
20307
|
+
report_view?: StringId;
|
|
20308
|
+
compressed_media_size?:
|
|
20309
|
+
| "original"
|
|
20310
|
+
| "small"
|
|
20311
|
+
| "medium"
|
|
20312
|
+
| "large"
|
|
20313
|
+
| "extra";
|
|
20314
|
+
file_naming?: NamingKey[];
|
|
20315
|
+
group_naming?: NamingKey[];
|
|
20316
|
+
bi_view?: StringId;
|
|
20317
|
+
row_count?: number;
|
|
20318
|
+
company_namespace: string[];
|
|
20319
|
+
createdAt: Date;
|
|
20320
|
+
updatedAt: Date;
|
|
20321
|
+
}
|
|
20322
|
+
export interface CreateBody {
|
|
20323
|
+
company_namespace?: string[];
|
|
20324
|
+
name: string;
|
|
20325
|
+
creator: { _id: StringId; name: string; type: "admin"; admin?: StringId };
|
|
20326
|
+
lang?: string;
|
|
20327
|
+
report_method?: Data["report_method"];
|
|
20328
|
+
report: (typeof reports)[number];
|
|
20329
|
+
emails: string[];
|
|
20330
|
+
disabled?: boolean;
|
|
20331
|
+
full_cycle?: boolean;
|
|
20332
|
+
time_period_tense?: Data["time_period_tense"];
|
|
20333
|
+
every: Data["every"];
|
|
20334
|
+
time_day?: Data["time_day"];
|
|
20335
|
+
day_week?: Data["day_week"];
|
|
20336
|
+
day_month?: number;
|
|
20337
|
+
filter: { [key: string]: any };
|
|
20338
|
+
export_type: Data["export_type"];
|
|
20339
|
+
template?: StringId;
|
|
20340
|
+
report_view?: StringId;
|
|
20341
|
+
compressed_media_size?: Data["compressed_media_size"];
|
|
20342
|
+
file_naming?: NamingKey[];
|
|
20343
|
+
group_naming?: NamingKey[];
|
|
20344
|
+
bi_view?: StringId;
|
|
20345
|
+
}
|
|
20346
|
+
export type UpdateBody = Partial<Data>;
|
|
20347
|
+
|
|
20348
|
+
export namespace Find {
|
|
20349
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
20350
|
+
_id?: StringId | StringId[];
|
|
20351
|
+
search?: string;
|
|
20352
|
+
disabled?: boolean;
|
|
20353
|
+
every?: Data["every"] | Data["every"][];
|
|
20354
|
+
report?: Data["report"] | Data["report"][];
|
|
20355
|
+
"creator._id"?: StringId | StringId[];
|
|
20356
|
+
report_view?: StringId | StringId[];
|
|
20357
|
+
export_type?: Data["export_type"] | Data["export_type"][];
|
|
20358
|
+
state?: Data["state"] | Data["state"][];
|
|
20359
|
+
template?: StringId | StringId[];
|
|
20360
|
+
time_period_tense?:
|
|
20361
|
+
| Data["time_period_tense"]
|
|
20362
|
+
| Data["time_period_tense"][];
|
|
20363
|
+
full_cycle?: boolean;
|
|
20364
|
+
row_count?: number | number[];
|
|
20365
|
+
};
|
|
20366
|
+
export interface Result extends DefaultPaginationResult {
|
|
20367
|
+
data: Data[];
|
|
20368
|
+
}
|
|
20369
|
+
}
|
|
20370
|
+
export namespace Get {
|
|
20371
|
+
export type ID = string;
|
|
20372
|
+
export type Params = {};
|
|
20373
|
+
export type Result = Data;
|
|
20374
|
+
}
|
|
20375
|
+
export namespace Create {
|
|
20376
|
+
export type Body = CreateBody;
|
|
20377
|
+
export type Result = Data;
|
|
20378
|
+
}
|
|
20379
|
+
export namespace Update {
|
|
20380
|
+
export type ID = StringId;
|
|
20381
|
+
export type Body = UpdateBody;
|
|
20382
|
+
export type Result = Data;
|
|
20383
|
+
}
|
|
20384
|
+
export namespace Remove {
|
|
20385
|
+
export type ID = string;
|
|
20386
|
+
export type Result = Data;
|
|
20387
|
+
}
|
|
20388
|
+
}
|
|
20389
|
+
|
|
20390
|
+
export namespace DataFileWarehouse {
|
|
20391
|
+
export const dataFileWarehouseReports = [
|
|
20392
|
+
"storecheck-checkout",
|
|
20393
|
+
"storecheck-freshness",
|
|
20394
|
+
"storecheck-outofstock",
|
|
20395
|
+
"storecheck-planogram",
|
|
20396
|
+
"storecheck-pricing",
|
|
20397
|
+
"storecheck-secondary",
|
|
20398
|
+
"storecheck-shelfshare",
|
|
20399
|
+
"storecheck-stock",
|
|
20400
|
+
"visit-report",
|
|
20401
|
+
"item-status-report",
|
|
20402
|
+
"receiving-material",
|
|
20403
|
+
"proforma",
|
|
20404
|
+
"adjust-account",
|
|
20405
|
+
"legacy-jobs-report",
|
|
20406
|
+
"sales-analytics-report",
|
|
20407
|
+
"pre-sales-analytics-report",
|
|
20408
|
+
"inventory-analytics-report",
|
|
20409
|
+
"inventory-transaction-report",
|
|
20410
|
+
"activity-note-report",
|
|
20411
|
+
"activity-audit",
|
|
20412
|
+
"activity-photo",
|
|
20413
|
+
"activity-task",
|
|
20414
|
+
"activity-feedback",
|
|
20415
|
+
"payment-report",
|
|
20416
|
+
"financial-transaction-report",
|
|
20417
|
+
"product-audit-trace",
|
|
20418
|
+
"events-log",
|
|
20419
|
+
"approval-request-report",
|
|
20420
|
+
"contract-report",
|
|
20421
|
+
"asset-part-unit-report",
|
|
20422
|
+
"contract-installment-report",
|
|
20423
|
+
// "ageing-summary-report",
|
|
20424
|
+
"fullinvoice-report",
|
|
20425
|
+
"product",
|
|
20426
|
+
"variant",
|
|
20427
|
+
"category",
|
|
20428
|
+
"subCategory",
|
|
20429
|
+
"rep",
|
|
20430
|
+
"tag",
|
|
20431
|
+
"warehouse",
|
|
20432
|
+
"productGroup",
|
|
20433
|
+
"speciality",
|
|
20434
|
+
"measureunit",
|
|
20435
|
+
"measureunitFamily",
|
|
20436
|
+
"promotions",
|
|
20437
|
+
"supplier",
|
|
20438
|
+
"routes",
|
|
20439
|
+
"rules",
|
|
20440
|
+
"routesWithClients",
|
|
20441
|
+
"availabilityMsl",
|
|
20442
|
+
"availabilityMslWithProducts",
|
|
20443
|
+
"mslWithVariants",
|
|
20444
|
+
"jobCategories",
|
|
20445
|
+
"jobs",
|
|
20446
|
+
"plans",
|
|
20447
|
+
"planWithRules",
|
|
20448
|
+
"targetRulesWithClients",
|
|
20449
|
+
"rulesWithRoutes",
|
|
20450
|
+
"targetRulesWithReps",
|
|
20451
|
+
"priceListItems",
|
|
20452
|
+
"assets",
|
|
20453
|
+
"assetUnits",
|
|
20454
|
+
"reminders",
|
|
20455
|
+
"clientLocation",
|
|
20456
|
+
"variantBatch",
|
|
20457
|
+
"banksList",
|
|
20458
|
+
"targetRule",
|
|
20459
|
+
// "contracts",
|
|
20460
|
+
// "contractInstallment",
|
|
20461
|
+
"lineTarget",
|
|
20462
|
+
"assetPartTypes",
|
|
20463
|
+
"assetParts",
|
|
20464
|
+
// "customListItems",
|
|
20465
|
+
"clientLineClassification",
|
|
20466
|
+
"retailExecutionPresets",
|
|
20467
|
+
"clientBalance",
|
|
20468
|
+
"repBalance",
|
|
20469
|
+
"clientUblInfo_JO",
|
|
20470
|
+
"clientUblInfo_SA",
|
|
20471
|
+
// "admins",
|
|
20472
|
+
"clients",
|
|
20473
|
+
] as const;
|
|
20474
|
+
|
|
20475
|
+
export interface Data {
|
|
20476
|
+
_id: StringId;
|
|
20477
|
+
company_namespace: string[];
|
|
20478
|
+
name_space: string;
|
|
20479
|
+
teams: StringId[];
|
|
20480
|
+
creator: AdminOrRepOrTenantOrClient;
|
|
20481
|
+
report: (typeof dataFileWarehouseReports)[number];
|
|
20482
|
+
data_type: "static" | "report";
|
|
20483
|
+
timespan: "years" | "months" | "days";
|
|
20484
|
+
start_year: number;
|
|
20485
|
+
end_year: number;
|
|
20486
|
+
start_month: number;
|
|
20487
|
+
end_month: number;
|
|
20488
|
+
start_day: number;
|
|
20489
|
+
end_day: number;
|
|
20490
|
+
time_zone: string;
|
|
20491
|
+
offset_EOD: string; // "03:00"
|
|
20492
|
+
status: "pending" | "queued" | "ready" | "building" | "failed";
|
|
20493
|
+
partial_status: "partial" | "full";
|
|
20494
|
+
from: number;
|
|
20495
|
+
to: number;
|
|
20496
|
+
scheduled_email?: StringId;
|
|
20497
|
+
media?: StringId;
|
|
20498
|
+
link?: string;
|
|
20499
|
+
row_count?: number;
|
|
20500
|
+
disabled: boolean;
|
|
20501
|
+
readyAt?: number;
|
|
20502
|
+
createdAt: string;
|
|
20503
|
+
updatedAt: string;
|
|
20504
|
+
__v?: number;
|
|
20505
|
+
}
|
|
20506
|
+
export interface CreateBody {
|
|
20507
|
+
company_namespace?: string[];
|
|
20508
|
+
name_space?: string;
|
|
20509
|
+
teams?: StringId[];
|
|
20510
|
+
creator?: AdminOrRepOrTenantOrClient;
|
|
20511
|
+
report: (typeof dataFileWarehouseReports)[number];
|
|
20512
|
+
data_type: "static" | "report";
|
|
20513
|
+
timespan: "years" | "months" | "days";
|
|
20514
|
+
start_year: number;
|
|
20515
|
+
end_year: number;
|
|
20516
|
+
start_month: number;
|
|
20517
|
+
end_month: number;
|
|
20518
|
+
start_day: number;
|
|
20519
|
+
end_day: number;
|
|
20520
|
+
time_zone?: string;
|
|
20521
|
+
offset_EOD?: string;
|
|
20522
|
+
partial_status: "partial" | "full";
|
|
20523
|
+
from: number;
|
|
20524
|
+
to: number;
|
|
20525
|
+
disabled?: boolean;
|
|
20526
|
+
}
|
|
20527
|
+
export type UpdateBody = Partial<Data>;
|
|
20528
|
+
|
|
20529
|
+
export type PopulatedDoc = Data & {
|
|
20530
|
+
scheduled_email?: ScheduledEmails.Data;
|
|
20531
|
+
media?: PopulatedMediaStorage;
|
|
20532
|
+
};
|
|
20533
|
+
|
|
20534
|
+
type PopulatedKeys = "scheduled_email" | "media";
|
|
20535
|
+
type SortingKeys = "_id" | "updatedAt" | "createdAt";
|
|
20536
|
+
|
|
20537
|
+
export namespace Find {
|
|
20538
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
20539
|
+
sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
|
|
20540
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
20541
|
+
_id?: StringId | StringId[];
|
|
20542
|
+
report?: Data["report"] | Data["report"][];
|
|
20543
|
+
disabled?: boolean;
|
|
20544
|
+
from_updatedAt?: number;
|
|
20545
|
+
to_updatedAt?: number;
|
|
20546
|
+
from_createdAt?: number;
|
|
20547
|
+
to_createdAt?: number;
|
|
20548
|
+
from__id?: StringId | StringId[];
|
|
20549
|
+
to__id?: StringId | StringId[];
|
|
20550
|
+
scheduled_email?: StringId | StringId[];
|
|
20551
|
+
row_count?: number | number[];
|
|
20552
|
+
teams?: StringId | StringId[];
|
|
20553
|
+
"creator._id"?: StringId | StringId[];
|
|
20554
|
+
"creator.type"?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
20555
|
+
status?: Data["status"] | Data["status"][];
|
|
20556
|
+
data_type?: Data["data_type"] | Data["data_type"][];
|
|
20557
|
+
partial_status?: Data["partial_status"] | Data["partial_status"][];
|
|
20558
|
+
};
|
|
20559
|
+
export interface Result extends DefaultPaginationResult {
|
|
20560
|
+
data: PopulatedDoc[];
|
|
20561
|
+
}
|
|
20562
|
+
}
|
|
20563
|
+
export namespace Get {
|
|
20564
|
+
export type ID = string;
|
|
20565
|
+
export type Params = { populatedKeys?: PopulatedKeys[] };
|
|
20566
|
+
export type Result = PopulatedDoc;
|
|
20567
|
+
}
|
|
20568
|
+
export namespace Create {
|
|
20569
|
+
export type Body = CreateBody;
|
|
20570
|
+
export type Result = Data;
|
|
20571
|
+
}
|
|
20572
|
+
export namespace Update {
|
|
20573
|
+
export type ID = StringId;
|
|
20574
|
+
export type Body = UpdateBody;
|
|
20575
|
+
export type Result = Data;
|
|
20576
|
+
}
|
|
20577
|
+
export namespace Remove {
|
|
20578
|
+
export type ID = string;
|
|
20579
|
+
export type Result = Data;
|
|
20580
|
+
}
|
|
20581
|
+
}
|
|
20582
|
+
|
|
20583
|
+
export namespace DataSession {
|
|
20584
|
+
export interface Data {
|
|
20585
|
+
_id: StringId;
|
|
20586
|
+
company_namespace: string[];
|
|
20587
|
+
ai_chat_session: StringId;
|
|
20588
|
+
sync_id: string;
|
|
20589
|
+
teams: StringId[];
|
|
20590
|
+
creator: AdminOrRepOrTenantOrClient;
|
|
20591
|
+
from: string;
|
|
20592
|
+
to: string;
|
|
20593
|
+
time: number;
|
|
20594
|
+
reports: DataFileWarehouse.Data["report"][];
|
|
20595
|
+
data_file_warehouse_ids: StringId[];
|
|
20596
|
+
status: "pending" | "ready" | "building" | "failed";
|
|
20597
|
+
createdAt: string;
|
|
20598
|
+
updatedAt: string;
|
|
20599
|
+
}
|
|
20600
|
+
export interface CreateBody {
|
|
20601
|
+
company_namespace?: string[];
|
|
20602
|
+
ai_chat_session: StringId;
|
|
20603
|
+
sync_id: string;
|
|
20604
|
+
teams?: StringId[];
|
|
20605
|
+
creator?: AdminOrRepOrTenantOrClient;
|
|
20606
|
+
from: string;
|
|
20607
|
+
to: string;
|
|
20608
|
+
time?: number;
|
|
20609
|
+
reports: DataFileWarehouse.Data["report"][];
|
|
20610
|
+
}
|
|
20611
|
+
export type UpdateBody = Partial<Data>;
|
|
20612
|
+
|
|
20613
|
+
export type PopulatedDoc = Data & {
|
|
20614
|
+
data_file_warehouse_ids?: DataFileWarehouse.Data[];
|
|
20615
|
+
};
|
|
20616
|
+
|
|
20617
|
+
type PopulatedKeys = "data_file_warehouse_ids";
|
|
20618
|
+
type SortingKeys = "_id" | "createdAt" | "updatedAt";
|
|
20619
|
+
|
|
20620
|
+
export namespace Find {
|
|
20621
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
20622
|
+
sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
|
|
20623
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
20624
|
+
_id?: StringId | StringId[];
|
|
20625
|
+
disabled?: boolean;
|
|
20626
|
+
from_updatedAt?: number;
|
|
20627
|
+
to_updatedAt?: number;
|
|
20628
|
+
from_createdAt?: number;
|
|
20629
|
+
to_createdAt?: number;
|
|
20630
|
+
ai_chat_session?: StringId | StringId[];
|
|
20631
|
+
from?: string;
|
|
20632
|
+
to?: string;
|
|
20633
|
+
reports?:
|
|
20634
|
+
| DataFileWarehouse.Data["report"]
|
|
20635
|
+
| DataFileWarehouse.Data["report"][];
|
|
20636
|
+
teams?: StringId | StringId[];
|
|
20637
|
+
data_file_warehouse_ids?: StringId | StringId[];
|
|
20638
|
+
status?: Data["status"] | Data["status"][];
|
|
20639
|
+
sync_id?: string | string[];
|
|
20640
|
+
from__id?: StringId | StringId[];
|
|
20641
|
+
to__id?: StringId | StringId[];
|
|
20642
|
+
"creator._id"?: StringId | StringId[];
|
|
20643
|
+
"creator.type"?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
20644
|
+
};
|
|
20645
|
+
export interface Result extends DefaultPaginationResult {
|
|
20646
|
+
data: PopulatedDoc[];
|
|
20647
|
+
}
|
|
20648
|
+
}
|
|
20649
|
+
export namespace Get {
|
|
20650
|
+
export type ID = string;
|
|
20651
|
+
export type Params = { populatedKeys?: PopulatedKeys[] };
|
|
20652
|
+
export type Result = PopulatedDoc;
|
|
20653
|
+
}
|
|
20654
|
+
export namespace Create {
|
|
20655
|
+
export type Body = CreateBody;
|
|
20656
|
+
export type Result = Data;
|
|
20657
|
+
}
|
|
20658
|
+
export namespace Update {
|
|
20659
|
+
export type ID = StringId;
|
|
20660
|
+
export type Body = UpdateBody;
|
|
20661
|
+
export type Result = Data;
|
|
20662
|
+
}
|
|
20663
|
+
export namespace Remove {
|
|
20664
|
+
export type ID = string;
|
|
20665
|
+
export type Result = Data;
|
|
20666
|
+
}
|
|
20667
|
+
}
|
|
20193
20668
|
}
|
|
20194
20669
|
|
|
20195
20670
|
export type StringId = string;
|