repzo 1.0.154 → 1.0.156
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 +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +38 -0
- package/lib/types/index.d.ts +462 -198
- package/lib/types/index.js +2 -1
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
- package/src/types/index.ts +1175 -223
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EndPoints } from "../index";
|
|
1
2
|
export interface Params {
|
|
2
3
|
[key: string]: any;
|
|
3
4
|
}
|
|
@@ -1973,7 +1974,7 @@ export declare namespace Service {
|
|
|
1973
1974
|
calculation_error?: string | any[];
|
|
1974
1975
|
company_namespace?: string[];
|
|
1975
1976
|
}
|
|
1976
|
-
|
|
1977
|
+
interface Division {
|
|
1977
1978
|
fields: Field[];
|
|
1978
1979
|
}
|
|
1979
1980
|
interface Result {
|
|
@@ -1986,7 +1987,7 @@ export declare namespace Service {
|
|
|
1986
1987
|
source: "product" | "variant" | "product-category" | "product-sub-category" | "product-brand" | "product-group";
|
|
1987
1988
|
results: Result[];
|
|
1988
1989
|
}
|
|
1989
|
-
|
|
1990
|
+
interface ActivityStorecheckSchema {
|
|
1990
1991
|
_id: string;
|
|
1991
1992
|
company_namespace: string[];
|
|
1992
1993
|
client: string;
|
|
@@ -2023,7 +2024,7 @@ export declare namespace Service {
|
|
|
2023
2024
|
createdAt: string;
|
|
2024
2025
|
updatedAt: string;
|
|
2025
2026
|
}
|
|
2026
|
-
|
|
2027
|
+
interface CreateBody {
|
|
2027
2028
|
company_namespace: string[];
|
|
2028
2029
|
client: string;
|
|
2029
2030
|
client_name: string;
|
|
@@ -2041,7 +2042,7 @@ export declare namespace Service {
|
|
|
2041
2042
|
tags?: string[];
|
|
2042
2043
|
entries: Entry[];
|
|
2043
2044
|
}
|
|
2044
|
-
|
|
2045
|
+
interface UpdateBody {
|
|
2045
2046
|
_id?: string;
|
|
2046
2047
|
company_namespace?: string[];
|
|
2047
2048
|
client?: string;
|
|
@@ -2077,7 +2078,7 @@ export declare namespace Service {
|
|
|
2077
2078
|
job_duration?: number;
|
|
2078
2079
|
}
|
|
2079
2080
|
type PopulatedKeys = "teams" | "tags" | "client" | "user" | "route" | "visit" | "template_id";
|
|
2080
|
-
|
|
2081
|
+
type ActivityStoreCheckWithPopulatedKeysSchema = ActivityStorecheckSchema & {
|
|
2081
2082
|
teams_populated: Team.TeamSchema[] | string[];
|
|
2082
2083
|
tags_populated: Tag.TagSchema[] | string[];
|
|
2083
2084
|
client_populated: Client.ClientSchema | string;
|
|
@@ -2086,7 +2087,7 @@ export declare namespace Service {
|
|
|
2086
2087
|
visit_populated: Visit.VisitSchema | string;
|
|
2087
2088
|
template_id_populated: StorecheckTemplate.StorecheckTemplateSchema | string;
|
|
2088
2089
|
};
|
|
2089
|
-
|
|
2090
|
+
namespace Find {
|
|
2090
2091
|
type Params = DefaultPaginationQueryParams & {
|
|
2091
2092
|
_id?: string[] | string;
|
|
2092
2093
|
search?: string;
|
|
@@ -2115,22 +2116,21 @@ export declare namespace Service {
|
|
|
2115
2116
|
data: ActivityStoreCheckWithPopulatedKeysSchema[];
|
|
2116
2117
|
}
|
|
2117
2118
|
}
|
|
2118
|
-
|
|
2119
|
+
namespace Get {
|
|
2119
2120
|
type ID = string;
|
|
2120
2121
|
interface Params {
|
|
2121
2122
|
}
|
|
2122
2123
|
type Result = ActivityStorecheckSchema;
|
|
2123
2124
|
}
|
|
2124
|
-
|
|
2125
|
+
namespace Create {
|
|
2125
2126
|
type Body = CreateBody;
|
|
2126
2127
|
type Result = ActivityStorecheckSchema;
|
|
2127
2128
|
}
|
|
2128
|
-
|
|
2129
|
+
namespace Update {
|
|
2129
2130
|
type ID = string;
|
|
2130
2131
|
type Body = UpdateBody;
|
|
2131
2132
|
type Result = ActivityStorecheckSchema;
|
|
2132
2133
|
}
|
|
2133
|
-
export {};
|
|
2134
2134
|
}
|
|
2135
2135
|
namespace Msl {
|
|
2136
2136
|
interface MslSchema {
|
|
@@ -2498,6 +2498,7 @@ export declare namespace Service {
|
|
|
2498
2498
|
updatedAt: string;
|
|
2499
2499
|
__v: number;
|
|
2500
2500
|
}
|
|
2501
|
+
export type Data = RepSchema;
|
|
2501
2502
|
export interface RepBody {
|
|
2502
2503
|
username?: string;
|
|
2503
2504
|
name?: string;
|
|
@@ -4580,7 +4581,7 @@ export declare namespace Service {
|
|
|
4580
4581
|
}
|
|
4581
4582
|
}
|
|
4582
4583
|
namespace ActivityFeedbackV2 {
|
|
4583
|
-
|
|
4584
|
+
interface ActivityFeedbackV2Schema {
|
|
4584
4585
|
_id: string;
|
|
4585
4586
|
route?: string;
|
|
4586
4587
|
visit_id: string;
|
|
@@ -4591,28 +4592,28 @@ export declare namespace Service {
|
|
|
4591
4592
|
createdAt: Date;
|
|
4592
4593
|
updatedAt: Date;
|
|
4593
4594
|
}
|
|
4594
|
-
|
|
4595
|
+
interface CreateBody {
|
|
4595
4596
|
route?: string;
|
|
4596
4597
|
visit_id: string;
|
|
4597
4598
|
visit_UUID: string;
|
|
4598
4599
|
feed_back_option: string;
|
|
4599
4600
|
teams?: string[];
|
|
4600
4601
|
}
|
|
4601
|
-
|
|
4602
|
+
interface UpdateBody {
|
|
4602
4603
|
route?: string;
|
|
4603
4604
|
visit_id?: string;
|
|
4604
4605
|
visit_UUID?: string;
|
|
4605
4606
|
teams?: string[];
|
|
4606
4607
|
feed_back_option?: string;
|
|
4607
4608
|
}
|
|
4608
|
-
|
|
4609
|
+
type PopulatedKeys = "teams" | "route" | "visit_id" | "feed_back_option";
|
|
4609
4610
|
type ActivityFeedbackV2SchemaWithPopulatedKeys = ActivityFeedbackV2Schema & {
|
|
4610
4611
|
teams_populated?: string[] | Team.TeamSchema[];
|
|
4611
4612
|
route_populated?: string | Route.RouteSchema;
|
|
4612
4613
|
visit_id_populated?: string | Visit.VisitSchema;
|
|
4613
4614
|
feed_back_option_populated?: string | FeedbackOption.FeedbackOptionSchema;
|
|
4614
4615
|
};
|
|
4615
|
-
|
|
4616
|
+
namespace Find {
|
|
4616
4617
|
type Params = DefaultPaginationQueryParams & {
|
|
4617
4618
|
route?: string;
|
|
4618
4619
|
teams?: string[];
|
|
@@ -4634,22 +4635,21 @@ export declare namespace Service {
|
|
|
4634
4635
|
page_total: number;
|
|
4635
4636
|
}
|
|
4636
4637
|
}
|
|
4637
|
-
|
|
4638
|
+
namespace Create {
|
|
4638
4639
|
type Body = CreateBody;
|
|
4639
4640
|
type Result = ActivityFeedbackV2Schema;
|
|
4640
4641
|
}
|
|
4641
|
-
|
|
4642
|
+
namespace Get {
|
|
4642
4643
|
type ID = string;
|
|
4643
4644
|
interface Params {
|
|
4644
4645
|
}
|
|
4645
4646
|
type Result = ActivityFeedbackV2SchemaWithPopulatedKeys;
|
|
4646
4647
|
}
|
|
4647
|
-
|
|
4648
|
+
namespace Update {
|
|
4648
4649
|
type ID = string;
|
|
4649
4650
|
type Body = UpdateBody;
|
|
4650
4651
|
type Result = ActivityFeedbackV2Schema;
|
|
4651
4652
|
}
|
|
4652
|
-
export {};
|
|
4653
4653
|
}
|
|
4654
4654
|
namespace FeedbackOption {
|
|
4655
4655
|
interface FeedbackOptionSchema {
|
|
@@ -7538,6 +7538,7 @@ export declare namespace Service {
|
|
|
7538
7538
|
createdAt: Date;
|
|
7539
7539
|
updatedAt: Date;
|
|
7540
7540
|
}
|
|
7541
|
+
export type Data = DaySchema;
|
|
7541
7542
|
export interface CreateBody {
|
|
7542
7543
|
startTime: string[];
|
|
7543
7544
|
endTime: string[];
|
|
@@ -13823,7 +13824,7 @@ export declare namespace Service {
|
|
|
13823
13824
|
inventories: Inventory[];
|
|
13824
13825
|
note?: string;
|
|
13825
13826
|
}
|
|
13826
|
-
|
|
13827
|
+
interface Data {
|
|
13827
13828
|
_id: string;
|
|
13828
13829
|
geo_tag: GeoTag;
|
|
13829
13830
|
time: number;
|
|
@@ -13860,7 +13861,6 @@ export declare namespace Service {
|
|
|
13860
13861
|
createdAt: string;
|
|
13861
13862
|
updatedAt: string;
|
|
13862
13863
|
}
|
|
13863
|
-
export {};
|
|
13864
13864
|
}
|
|
13865
13865
|
namespace ActivityAvailability {
|
|
13866
13866
|
interface Data {
|
|
@@ -13901,6 +13901,8 @@ export declare namespace Service {
|
|
|
13901
13901
|
product_id: string;
|
|
13902
13902
|
available: boolean;
|
|
13903
13903
|
}[];
|
|
13904
|
+
photos?: string[];
|
|
13905
|
+
media?: StringId[];
|
|
13904
13906
|
createdAt: string;
|
|
13905
13907
|
updatedAt: string;
|
|
13906
13908
|
}
|
|
@@ -14032,7 +14034,7 @@ export declare namespace Service {
|
|
|
14032
14034
|
}
|
|
14033
14035
|
}
|
|
14034
14036
|
namespace FormV2 {
|
|
14035
|
-
interface Visibility {
|
|
14037
|
+
export interface Visibility {
|
|
14036
14038
|
operator: "and" | "or";
|
|
14037
14039
|
conditions: {
|
|
14038
14040
|
division_id: string;
|
|
@@ -14219,7 +14221,7 @@ export declare namespace Service {
|
|
|
14219
14221
|
is_completed?: boolean;
|
|
14220
14222
|
fields: FieldResult[];
|
|
14221
14223
|
}
|
|
14222
|
-
|
|
14224
|
+
interface Data {
|
|
14223
14225
|
_id: string;
|
|
14224
14226
|
creator: AdminOrRepOrTenantOrClient;
|
|
14225
14227
|
editor?: AdminOrRepOrTenantOrClient;
|
|
@@ -14259,7 +14261,6 @@ export declare namespace Service {
|
|
|
14259
14261
|
createdAt: Date;
|
|
14260
14262
|
updatedAt: Date;
|
|
14261
14263
|
}
|
|
14262
|
-
export {};
|
|
14263
14264
|
}
|
|
14264
14265
|
namespace ActivityItemStatus {
|
|
14265
14266
|
type ItemStatus = "current_user" | "non_user" | "generic_user" | "competitor_user" | "other";
|
|
@@ -14277,7 +14278,7 @@ export declare namespace Service {
|
|
|
14277
14278
|
previous_user_name?: string;
|
|
14278
14279
|
previous_time?: number;
|
|
14279
14280
|
}
|
|
14280
|
-
|
|
14281
|
+
interface Data {
|
|
14281
14282
|
_id: string;
|
|
14282
14283
|
items: Item[];
|
|
14283
14284
|
geoPoint: GeoPoint;
|
|
@@ -14314,7 +14315,6 @@ export declare namespace Service {
|
|
|
14314
14315
|
createdAt: string;
|
|
14315
14316
|
updatedAt: string;
|
|
14316
14317
|
}
|
|
14317
|
-
export {};
|
|
14318
14318
|
}
|
|
14319
14319
|
namespace ActivityPlanogram {
|
|
14320
14320
|
interface Data {
|
|
@@ -14440,87 +14440,6 @@ export declare namespace Service {
|
|
|
14440
14440
|
updatedAt: string;
|
|
14441
14441
|
}
|
|
14442
14442
|
}
|
|
14443
|
-
namespace ActivityStorecheck {
|
|
14444
|
-
type FieldType = "Text" | "String" | "Date" | "Image" | "Boolean" | "Number" | "List" | "Separator" | "Heading" | "Media";
|
|
14445
|
-
type Source = "product" | "variant" | "product-category" | "product-sub-category" | "product-brand" | "product-group";
|
|
14446
|
-
interface GeoTag {
|
|
14447
|
-
lat?: number;
|
|
14448
|
-
lng?: number;
|
|
14449
|
-
formatted_address?: string;
|
|
14450
|
-
}
|
|
14451
|
-
interface GeoPoint {
|
|
14452
|
-
type: "Point";
|
|
14453
|
-
coordinates: [number, number];
|
|
14454
|
-
}
|
|
14455
|
-
interface Entry {
|
|
14456
|
-
entry_id: string;
|
|
14457
|
-
source: Source;
|
|
14458
|
-
results: Result[];
|
|
14459
|
-
}
|
|
14460
|
-
interface Result {
|
|
14461
|
-
source_id: string;
|
|
14462
|
-
source_name: string;
|
|
14463
|
-
divisions: Division[];
|
|
14464
|
-
}
|
|
14465
|
-
interface Division {
|
|
14466
|
-
fields: Field[];
|
|
14467
|
-
}
|
|
14468
|
-
interface Field {
|
|
14469
|
-
_id?: string;
|
|
14470
|
-
name: string;
|
|
14471
|
-
type: FieldType;
|
|
14472
|
-
isArray: boolean;
|
|
14473
|
-
isRequired?: boolean;
|
|
14474
|
-
is_calculated_field?: boolean;
|
|
14475
|
-
formula_key?: string;
|
|
14476
|
-
parent_field?: string;
|
|
14477
|
-
custom_list?: string | CustomList.Data | StringId;
|
|
14478
|
-
field_id: string | StringId;
|
|
14479
|
-
result: any[];
|
|
14480
|
-
result_custom_list_ids?: any[];
|
|
14481
|
-
calculation_status?: "success" | "failed";
|
|
14482
|
-
calculation_error?: string | any[];
|
|
14483
|
-
company_namespace?: string[];
|
|
14484
|
-
}
|
|
14485
|
-
export interface Data {
|
|
14486
|
-
_id: string;
|
|
14487
|
-
company_namespace: string[];
|
|
14488
|
-
client: string;
|
|
14489
|
-
client_name: string;
|
|
14490
|
-
sync_id: string;
|
|
14491
|
-
time_zone: string;
|
|
14492
|
-
template_id: string;
|
|
14493
|
-
visit?: string;
|
|
14494
|
-
visit_id?: string;
|
|
14495
|
-
battery_level?: number;
|
|
14496
|
-
user: string;
|
|
14497
|
-
user_name: string;
|
|
14498
|
-
time: number;
|
|
14499
|
-
geo_tag?: GeoTag;
|
|
14500
|
-
geoPoint: GeoPoint;
|
|
14501
|
-
teams?: string[];
|
|
14502
|
-
route?: string;
|
|
14503
|
-
tags?: string[];
|
|
14504
|
-
entries: Entry[];
|
|
14505
|
-
platform?: string;
|
|
14506
|
-
version_name?: string;
|
|
14507
|
-
device_brand?: string;
|
|
14508
|
-
device_os?: string;
|
|
14509
|
-
device_os_version?: string;
|
|
14510
|
-
device_model?: string;
|
|
14511
|
-
identifier?: number;
|
|
14512
|
-
device_id?: string;
|
|
14513
|
-
device_unique_id?: string;
|
|
14514
|
-
network_state?: number;
|
|
14515
|
-
serial_number?: SerialNumber;
|
|
14516
|
-
job_start_time?: number;
|
|
14517
|
-
job_end_time?: number;
|
|
14518
|
-
job_duration?: number;
|
|
14519
|
-
createdAt: Date;
|
|
14520
|
-
updatedAt: Date;
|
|
14521
|
-
}
|
|
14522
|
-
export {};
|
|
14523
|
-
}
|
|
14524
14443
|
namespace Reminder {
|
|
14525
14444
|
interface Data {
|
|
14526
14445
|
_id: string;
|
|
@@ -14543,13 +14462,13 @@ export declare namespace Service {
|
|
|
14543
14462
|
}
|
|
14544
14463
|
}
|
|
14545
14464
|
namespace TimelineReport {
|
|
14546
|
-
export const activity_types: readonly ["client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
14465
|
+
export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
14547
14466
|
type ActivityType = (typeof activity_types)[number];
|
|
14548
14467
|
export interface Data {
|
|
14549
14468
|
_id: StringId;
|
|
14550
14469
|
company_namespace: string[];
|
|
14551
14470
|
activity_type: ActivityType;
|
|
14552
|
-
activity_id: StringId;
|
|
14471
|
+
activity_id: StringId | StringId[];
|
|
14553
14472
|
time: number;
|
|
14554
14473
|
business_day?: string;
|
|
14555
14474
|
user: {
|
|
@@ -14569,277 +14488,318 @@ export declare namespace Service {
|
|
|
14569
14488
|
coordinates: [number, number];
|
|
14570
14489
|
type: "Point";
|
|
14571
14490
|
};
|
|
14572
|
-
details: VisitDetails | PaymentDetails | RefundDetails | ActivityPhotoDetails | ActivityAuditDetails | ActivityNoteDetails | ActivityTaskDetails | ActivityAvailabilityDetails | ActivityCheckoutDisplayDetails | ActivityFeedbackDetails | ActivityFormResultDetails | ActivityFormV2ResultDetails | ActivityItemStatusDetails | ActivityPlanogramDetails | ActivitySecondaryDisplayDetails | ActivityShelfshareDetails | ActivityStorecheckDetails | ApprovalRequestDetails | AssetPartReceivalDetails | AssetPartTransferDetails | AssetDetails | AssetPartDetails | AssetUnitDetails | ReminderDetails | ReturnAssetPartUnitDetails | StoreAssetPartUnitDetails | SettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
14491
|
+
details: VisitDetails | DayDetails | PaymentDetails | RefundDetails | ActivityPhotoDetails | ActivityAuditDetails | ActivityNoteDetails | ActivityTaskDetails | ActivityAvailabilityDetails | ActivityCheckoutDisplayDetails | ActivityFeedbackDetails | ActivityFormResultDetails | ActivityFormV2ResultDetails | ActivityItemStatusDetails | ActivityPlanogramDetails | ActivitySecondaryDisplayDetails | ActivityShelfshareDetails | ActivityStorecheckDetails | ApprovalRequestDetails | AssetPartReceivalDetails | AssetPartTransferDetails | AssetDetails | AssetPartDetails | AssetUnitDetails | ReminderDetails | ReturnAssetPartUnitDetails | StoreAssetPartUnitDetails | SettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
14573
14492
|
createdAt: Date;
|
|
14574
14493
|
updatedAt: Date;
|
|
14575
14494
|
}
|
|
14576
|
-
type VisitDetails = {
|
|
14495
|
+
export type VisitDetails = {
|
|
14577
14496
|
activity_type: "visit";
|
|
14578
14497
|
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails | SettlementVisitDetails | FullInvoiceVisitDetails | ProformaVisitDetails | ReturnWholeInvoiceVisitDetails | VoidInvoiceVisitDetails)[];
|
|
14579
|
-
} & Pick<Visit.Data, "closed_by_system" | "geoPoint" | "start_time" | "end_time" | "total_time" | "battery_level" | "version_name" | "device_brand">;
|
|
14580
|
-
type ActivityPhotoDetails = {
|
|
14498
|
+
} & Pick<Visit.Data, "closed_by_system" | "geoPoint" | "start_time" | "end_time" | "total_time" | "battery_level" | "version_name" | "device_brand" | "start_out_of_geofence" | "end_out_of_geofence" | "auto_closed_by_geofence" | "auto_closed_by_geofence_reason" | "client_geo_location">;
|
|
14499
|
+
export type ActivityPhotoDetails = {
|
|
14581
14500
|
activity_type: "activity-photo";
|
|
14582
14501
|
} & Pick<ActivityPhoto.Data, "media">;
|
|
14583
|
-
type ActivityPhotoVisitDetails = {
|
|
14502
|
+
export type ActivityPhotoVisitDetails = {
|
|
14584
14503
|
activity_type: "activity-photo";
|
|
14585
14504
|
activity_id: StringId;
|
|
14586
14505
|
} & Pick<ActivityPhoto.Data, "media" | "time">;
|
|
14587
|
-
type ActivityAuditDetails = {
|
|
14506
|
+
export type ActivityAuditDetails = {
|
|
14588
14507
|
activity_type: "activity-audit";
|
|
14589
14508
|
audits_length: number;
|
|
14590
14509
|
};
|
|
14591
|
-
type ActivityAuditVisitDetails = {
|
|
14510
|
+
export type ActivityAuditVisitDetails = {
|
|
14592
14511
|
activity_type: "activity-audit";
|
|
14593
14512
|
activity_id: StringId;
|
|
14594
14513
|
audits_length: number;
|
|
14595
14514
|
} & Pick<ActivityAudit.Data, "time">;
|
|
14596
|
-
type ActivityAvailabilityDetails = {
|
|
14515
|
+
export type ActivityAvailabilityDetails = {
|
|
14597
14516
|
activity_type: "activity-availability";
|
|
14598
14517
|
products_available_length: number;
|
|
14599
14518
|
msl_name: string;
|
|
14600
|
-
} & Pick<ActivityAvailability.Data, "msl_id">;
|
|
14601
|
-
type ActivityAvailabilityVisitDetails = {
|
|
14519
|
+
} & Pick<ActivityAvailability.Data, "msl_id" | "media">;
|
|
14520
|
+
export type ActivityAvailabilityVisitDetails = {
|
|
14602
14521
|
activity_type: "activity-availability";
|
|
14603
14522
|
activity_id: StringId;
|
|
14604
14523
|
products_available_length: number;
|
|
14605
14524
|
msl_name: string;
|
|
14606
|
-
} & Pick<ActivityAvailability.Data, "time" | "msl_id">;
|
|
14607
|
-
type ActivityNoteDetails = {
|
|
14525
|
+
} & Pick<ActivityAvailability.Data, "time" | "msl_id" | "media">;
|
|
14526
|
+
export type ActivityNoteDetails = {
|
|
14608
14527
|
activity_type: "activity-note";
|
|
14609
14528
|
} & Pick<ActivityNote.Data, "content">;
|
|
14610
|
-
type ActivityNoteVisitDetails = {
|
|
14529
|
+
export type ActivityNoteVisitDetails = {
|
|
14611
14530
|
activity_type: "activity-note";
|
|
14612
14531
|
activity_id: StringId;
|
|
14613
14532
|
} & Pick<ActivityNote.Data, "content" | "time">;
|
|
14614
|
-
type ActivityTaskDetails = {
|
|
14533
|
+
export type ActivityTaskDetails = {
|
|
14615
14534
|
activity_type: "activity-task";
|
|
14616
14535
|
} & Pick<ActivityTask.Data, "start_media" | "end_media">;
|
|
14617
|
-
type ActivityTaskVisitDetails = {
|
|
14536
|
+
export type ActivityTaskVisitDetails = {
|
|
14618
14537
|
activity_type: "activity-task";
|
|
14619
14538
|
activity_id: StringId;
|
|
14620
14539
|
} & Pick<ActivityTask.Data, "start_media" | "end_media" | "time">;
|
|
14621
|
-
type ActivityPlanogramDetails = {
|
|
14540
|
+
export type ActivityPlanogramDetails = {
|
|
14622
14541
|
activity_type: "activity-planogram";
|
|
14623
14542
|
msl_name: string;
|
|
14624
14543
|
} & Pick<ActivityPlanogram.Data, "media" | "planogram_reason" | "msl_id">;
|
|
14625
|
-
type ActivityPlanogramVisitDetails = {
|
|
14544
|
+
export type ActivityPlanogramVisitDetails = {
|
|
14626
14545
|
activity_type: "activity-planogram";
|
|
14627
14546
|
activity_id: StringId;
|
|
14628
14547
|
msl_name: string;
|
|
14629
14548
|
} & Pick<ActivityPlanogram.Data, "media" | "planogram_reason" | "time" | "msl_id">;
|
|
14630
|
-
type ActivityShelfshareDetails = {
|
|
14549
|
+
export type ActivityShelfshareDetails = {
|
|
14631
14550
|
activity_type: "activity-shelfshare";
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14551
|
+
results: (Pick<ActivityShelfshare.Data, "msl_length" | "total_msl_length" | "msl_id"> & {
|
|
14552
|
+
activity_id: StringId;
|
|
14553
|
+
msl_name: string;
|
|
14554
|
+
})[];
|
|
14555
|
+
};
|
|
14556
|
+
export type ActivityShelfshareVisitDetails = {
|
|
14635
14557
|
activity_type: "activity-shelfshare";
|
|
14636
|
-
activity_id: StringId;
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14558
|
+
activity_id: StringId[];
|
|
14559
|
+
time: number;
|
|
14560
|
+
results: (Pick<ActivityShelfshare.Data, "msl_length" | "total_msl_length" | "msl_id"> & {
|
|
14561
|
+
activity_id: StringId;
|
|
14562
|
+
msl_name: string;
|
|
14563
|
+
})[];
|
|
14564
|
+
};
|
|
14565
|
+
export type ActivitySecondaryDisplayDetails = {
|
|
14640
14566
|
activity_type: "activity-secondary-display";
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14567
|
+
results: (Pick<ActivitySecondaryDisplay.Data, "secondary_count" | "msl_id"> & {
|
|
14568
|
+
activity_id: StringId;
|
|
14569
|
+
msl_name: string;
|
|
14570
|
+
})[];
|
|
14571
|
+
};
|
|
14572
|
+
export type ActivitySecondaryDisplayVisitDetails = {
|
|
14644
14573
|
activity_type: "activity-secondary-display";
|
|
14645
|
-
activity_id: StringId;
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14574
|
+
activity_id: StringId[];
|
|
14575
|
+
time: number;
|
|
14576
|
+
results: (Pick<ActivitySecondaryDisplay.Data, "secondary_count" | "msl_id"> & {
|
|
14577
|
+
activity_id: StringId;
|
|
14578
|
+
msl_name: string;
|
|
14579
|
+
})[];
|
|
14580
|
+
};
|
|
14581
|
+
export type ActivityCheckoutDisplayDetails = {
|
|
14649
14582
|
activity_type: "activity-checkout-display";
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14583
|
+
results: (Pick<ActivityCheckoutDisplay.Data, "checkout_count" | "msl_id"> & {
|
|
14584
|
+
activity_id: StringId;
|
|
14585
|
+
msl_name: string;
|
|
14586
|
+
})[];
|
|
14587
|
+
};
|
|
14588
|
+
export type ActivityCheckoutDisplayVisitDetails = {
|
|
14653
14589
|
activity_type: "activity-checkout-display";
|
|
14654
|
-
activity_id: StringId;
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14590
|
+
activity_id: StringId[];
|
|
14591
|
+
time: number;
|
|
14592
|
+
results: (Pick<ActivityCheckoutDisplay.Data, "checkout_count" | "msl_id"> & {
|
|
14593
|
+
activity_id: StringId;
|
|
14594
|
+
msl_name: string;
|
|
14595
|
+
})[];
|
|
14596
|
+
};
|
|
14597
|
+
export type ActivityItemStatusDetails = {
|
|
14658
14598
|
activity_type: "activity-item-status";
|
|
14659
14599
|
items_length?: number;
|
|
14660
14600
|
};
|
|
14661
|
-
type ActivityItemStatusVisitDetails = {
|
|
14601
|
+
export type ActivityItemStatusVisitDetails = {
|
|
14662
14602
|
activity_type: "activity-item-status";
|
|
14663
14603
|
activity_id: StringId;
|
|
14664
14604
|
items_length?: number;
|
|
14665
14605
|
} & Pick<ActivityItemStatus.Data, "time">;
|
|
14666
|
-
type ActivityFormResultDetails = {
|
|
14606
|
+
export type ActivityFormResultDetails = {
|
|
14667
14607
|
activity_type: "activity-form-result";
|
|
14668
14608
|
form_name?: string;
|
|
14669
14609
|
} & Pick<ActivityFormResult.Data, "form_id">;
|
|
14670
|
-
type ActivityFormResultVisitDetails = {
|
|
14610
|
+
export type ActivityFormResultVisitDetails = {
|
|
14671
14611
|
activity_type: "activity-form-result";
|
|
14672
14612
|
activity_id: StringId;
|
|
14673
14613
|
form_name?: string;
|
|
14674
14614
|
} & Pick<ActivityFormResult.Data, "form_id" | "time">;
|
|
14675
|
-
type ActivityFormV2ResultDetails = {
|
|
14615
|
+
export type ActivityFormV2ResultDetails = {
|
|
14676
14616
|
activity_type: "activity-form-v2-result";
|
|
14677
14617
|
form_name?: string;
|
|
14678
14618
|
} & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number">;
|
|
14679
|
-
type ActivityFormV2ResultVisitDetails = {
|
|
14619
|
+
export type ActivityFormV2ResultVisitDetails = {
|
|
14680
14620
|
activity_type: "activity-form-v2-result";
|
|
14681
14621
|
activity_id: StringId;
|
|
14682
14622
|
form_name?: string;
|
|
14683
14623
|
} & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number" | "time">;
|
|
14684
|
-
type ActivityStorecheckDetails = {
|
|
14624
|
+
export type ActivityStorecheckDetails = {
|
|
14685
14625
|
activity_type: "activity-storecheck";
|
|
14686
14626
|
template_name?: string;
|
|
14687
|
-
} & Pick<ActivityStorecheck.
|
|
14688
|
-
type ActivityStorecheckVisitDetails = {
|
|
14627
|
+
} & Pick<ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema, "template_id" | "serial_number">;
|
|
14628
|
+
export type ActivityStorecheckVisitDetails = {
|
|
14689
14629
|
activity_type: "activity-storecheck";
|
|
14690
14630
|
activity_id: StringId;
|
|
14691
14631
|
template_name?: string;
|
|
14692
|
-
} & Pick<ActivityStorecheck.
|
|
14693
|
-
type ActivityFeedbackDetails = {
|
|
14632
|
+
} & Pick<ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema, "template_id" | "serial_number" | "time">;
|
|
14633
|
+
export type ActivityFeedbackDetails = {
|
|
14694
14634
|
activity_type: "activity-feedback";
|
|
14695
14635
|
feed_back_option_label?: string;
|
|
14696
14636
|
} & Pick<ActivityFeedback.Data, "feed_back_option">;
|
|
14697
|
-
type ActivityFeedbackVisitDetails = {
|
|
14637
|
+
export type ActivityFeedbackVisitDetails = {
|
|
14698
14638
|
activity_type: "activity-feedback";
|
|
14699
14639
|
activity_id: StringId;
|
|
14700
14640
|
time?: number;
|
|
14701
14641
|
feed_back_option_label?: string;
|
|
14702
14642
|
} & Pick<ActivityFeedback.Data, "feed_back_option">;
|
|
14703
|
-
type ApprovalRequestDetails = {
|
|
14643
|
+
export type ApprovalRequestDetails = {
|
|
14704
14644
|
activity_type: "approval-request";
|
|
14705
14645
|
} & Pick<ApprovalRequest.Data, "serial_number" | "type" | "subtype">;
|
|
14706
|
-
type ApprovalRequestVisitDetails = {
|
|
14646
|
+
export type ApprovalRequestVisitDetails = {
|
|
14707
14647
|
activity_type: "approval-request";
|
|
14708
14648
|
activity_id: StringId;
|
|
14709
14649
|
} & Pick<ApprovalRequest.Data, "serial_number" | "type" | "subtype" | "time">;
|
|
14710
|
-
type ReminderDetails = {
|
|
14650
|
+
export type ReminderDetails = {
|
|
14711
14651
|
activity_type: "reminders";
|
|
14712
|
-
} & Pick<Reminder.Data, "content" | "cover_photo">;
|
|
14713
|
-
type AssetDetails = {
|
|
14652
|
+
} & Pick<Reminder.Data, "content" | "cover_photo" | "from" | "to" | "name">;
|
|
14653
|
+
export type AssetDetails = {
|
|
14714
14654
|
activity_type: "asset";
|
|
14655
|
+
asset_types?: string;
|
|
14715
14656
|
} & Pick<Asset.Data, "name">;
|
|
14716
|
-
type AssetUnitDetails = {
|
|
14657
|
+
export type AssetUnitDetails = {
|
|
14717
14658
|
activity_type: "asset-unit";
|
|
14659
|
+
asset?: string;
|
|
14718
14660
|
} & Pick<AssetUnit.Data, "name">;
|
|
14719
|
-
type AssetPartDetails = {
|
|
14661
|
+
export type AssetPartDetails = {
|
|
14720
14662
|
activity_type: "asset-part";
|
|
14721
14663
|
} & Pick<AssetPart.Data, "name">;
|
|
14722
|
-
type AssetPartReceivalDetails = {
|
|
14664
|
+
export type AssetPartReceivalDetails = {
|
|
14723
14665
|
activity_type: "asset-part-receival";
|
|
14724
14666
|
} & Pick<AssetPartReceival.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_parts_count" | "total_asset_parts_qty">;
|
|
14725
|
-
type AssetPartReceivalVisitDetails = {
|
|
14667
|
+
export type AssetPartReceivalVisitDetails = {
|
|
14726
14668
|
activity_type: "asset-part-receival";
|
|
14727
14669
|
activity_id: StringId;
|
|
14728
14670
|
} & Pick<AssetPartReceival.Data, "serial_number" | "warehouse" | "warehouse_name" | "time" | "asset_parts_count" | "total_asset_parts_qty">;
|
|
14729
|
-
type AssetPartTransferDetails = {
|
|
14671
|
+
export type AssetPartTransferDetails = {
|
|
14730
14672
|
activity_type: "asset-part-transfer";
|
|
14731
14673
|
} & Pick<AssetPartTransfer.Data, "serial_number" | "from" | "from_name" | "to" | "to_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14732
|
-
type AssetPartTransferVisitDetails = {
|
|
14674
|
+
export type AssetPartTransferVisitDetails = {
|
|
14733
14675
|
activity_type: "asset-part-transfer";
|
|
14734
14676
|
activity_id: StringId;
|
|
14735
14677
|
} & Pick<AssetPartTransfer.Data, "serial_number" | "from" | "from_name" | "to" | "to_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14736
|
-
type ReturnAssetPartUnitDetails = {
|
|
14678
|
+
export type ReturnAssetPartUnitDetails = {
|
|
14737
14679
|
activity_type: "return-asset-part-unit";
|
|
14738
14680
|
} & Pick<ReturnAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14739
|
-
type ReturnAssetPartUnitVisitDetails = {
|
|
14681
|
+
export type ReturnAssetPartUnitVisitDetails = {
|
|
14740
14682
|
activity_type: "return-asset-part-unit";
|
|
14741
14683
|
activity_id: StringId;
|
|
14742
14684
|
} & Pick<ReturnAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14743
|
-
type StoreAssetPartUnitDetails = {
|
|
14685
|
+
export type StoreAssetPartUnitDetails = {
|
|
14744
14686
|
activity_type: "store-asset-part-unit";
|
|
14745
14687
|
} & Pick<StoreAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14746
|
-
type StoreAssetPartUnitVisitDetails = {
|
|
14688
|
+
export type StoreAssetPartUnitVisitDetails = {
|
|
14747
14689
|
activity_type: "store-asset-part-unit";
|
|
14748
14690
|
activity_id: StringId;
|
|
14749
14691
|
} & Pick<StoreAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14750
|
-
type PaymentDetails = {
|
|
14692
|
+
export type PaymentDetails = {
|
|
14751
14693
|
activity_type: "payment";
|
|
14752
14694
|
} & Pick<Payment.Data, "amount" | "serial_number" | "paytime" | "currency" | "payment_type">;
|
|
14753
|
-
type PaymentVisitDetails = {
|
|
14695
|
+
export type PaymentVisitDetails = {
|
|
14754
14696
|
activity_type: "payment";
|
|
14755
14697
|
activity_id: StringId;
|
|
14756
14698
|
} & Pick<Payment.Data, "amount" | "serial_number" | "currency" | "payment_type" | "time">;
|
|
14757
|
-
type RefundDetails = {
|
|
14699
|
+
export type RefundDetails = {
|
|
14758
14700
|
activity_type: "refund";
|
|
14759
14701
|
} & Pick<Refund.Data, "amount" | "serial_number" | "paytime" | "currency" | "transaction_type">;
|
|
14760
|
-
type RefundVisitDetails = {
|
|
14702
|
+
export type RefundVisitDetails = {
|
|
14761
14703
|
activity_type: "refund";
|
|
14762
14704
|
activity_id: StringId;
|
|
14763
14705
|
} & Pick<Refund.Data, "amount" | "serial_number" | "currency" | "transaction_type" | "time">;
|
|
14764
|
-
type SettlementDetails = {
|
|
14706
|
+
export type SettlementDetails = {
|
|
14765
14707
|
activity_type: "settlement";
|
|
14766
14708
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type">;
|
|
14767
|
-
type SettlementVisitDetails = {
|
|
14709
|
+
export type SettlementVisitDetails = {
|
|
14768
14710
|
activity_type: "settlement";
|
|
14769
14711
|
activity_id: StringId;
|
|
14770
14712
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "origin" | "payment_type" | "time">;
|
|
14771
|
-
type ConvertProformaDetails = {
|
|
14713
|
+
export type ConvertProformaDetails = {
|
|
14772
14714
|
activity_type: "convert-proforma";
|
|
14773
14715
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
14774
14716
|
proforma_serial_number: Proforma.Data["serial_number"];
|
|
14775
14717
|
invoice_serial_number: FullInvoice.Data["serial_number"];
|
|
14718
|
+
total: FullInvoice.Data["total"];
|
|
14719
|
+
currency: FullInvoice.Data["currency"];
|
|
14776
14720
|
};
|
|
14777
|
-
type ConvertProformaVisitDetails = {
|
|
14721
|
+
export type ConvertProformaVisitDetails = {
|
|
14778
14722
|
activity_type: "convert-proforma";
|
|
14779
14723
|
activity_id: StringId;
|
|
14780
14724
|
proforma_serial_number: Proforma.Data["serial_number"];
|
|
14781
14725
|
invoice_serial_number: FullInvoice.Data["serial_number"];
|
|
14782
14726
|
time: number;
|
|
14783
14727
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
14728
|
+
total: FullInvoice.Data["total"];
|
|
14729
|
+
currency: FullInvoice.Data["currency"];
|
|
14784
14730
|
};
|
|
14785
|
-
type TransferDetails = {
|
|
14731
|
+
export type TransferDetails = {
|
|
14786
14732
|
activity_type: "transfer";
|
|
14787
14733
|
from_name: string;
|
|
14788
14734
|
to_name: string;
|
|
14789
14735
|
} & Pick<Transfer.Data, "type" | "serial_number" | "from" | "to" | "items_count" | "comment">;
|
|
14790
|
-
type ReceivingMaterialDetails = {
|
|
14736
|
+
export type ReceivingMaterialDetails = {
|
|
14791
14737
|
activity_type: "receiving-material";
|
|
14792
14738
|
to_name: string;
|
|
14793
14739
|
} & Pick<ReceivingMaterial.Data, "serial_number" | "to" | "items_count" | "comment">;
|
|
14794
|
-
type FullInvoiceDetails = {
|
|
14740
|
+
export type FullInvoiceDetails = {
|
|
14795
14741
|
activity_type: "fullinvoices";
|
|
14796
14742
|
} & Pick<FullInvoice.Data, "total" | "serial_number" | "currency" | "issue_date" | "due_date" | "external_serial_number">;
|
|
14797
|
-
type FullInvoiceVisitDetails = {
|
|
14743
|
+
export type FullInvoiceVisitDetails = {
|
|
14798
14744
|
activity_type: "fullinvoices";
|
|
14799
14745
|
activity_id: StringId;
|
|
14800
14746
|
} & Pick<FullInvoice.Data, "total" | "serial_number" | "currency" | "time" | "issue_date" | "due_date" | "external_serial_number">;
|
|
14801
|
-
type ProformaDetails = {
|
|
14747
|
+
export type ProformaDetails = {
|
|
14802
14748
|
activity_type: "proforma";
|
|
14803
14749
|
} & Pick<Proforma.Data, "total" | "serial_number" | "currency" | "issue_date" | "external_serial_number">;
|
|
14804
|
-
type ProformaVisitDetails = {
|
|
14750
|
+
export type ProformaVisitDetails = {
|
|
14805
14751
|
activity_type: "proforma";
|
|
14806
14752
|
activity_id: StringId;
|
|
14807
14753
|
} & Pick<Proforma.Data, "total" | "serial_number" | "currency" | "time" | "issue_date" | "external_serial_number">;
|
|
14808
|
-
type WorkorderDetails = {
|
|
14754
|
+
export type WorkorderDetails = {
|
|
14809
14755
|
activity_type: "workorder";
|
|
14810
14756
|
} & Pick<Workorder.Data, "name" | "serial_number" | "due_date">;
|
|
14811
|
-
type WorkorderRequestDetails = {
|
|
14757
|
+
export type WorkorderRequestDetails = {
|
|
14812
14758
|
activity_type: "workorder-request";
|
|
14813
14759
|
} & Pick<WorkorderRequest.Data, "name">;
|
|
14814
|
-
type ReturnWholeInvoiceDetails = {
|
|
14760
|
+
export type ReturnWholeInvoiceDetails = {
|
|
14815
14761
|
activity_type: "return-whole-invoice";
|
|
14816
14762
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14817
14763
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
|
|
14818
|
-
type ReturnWholeInvoiceVisitDetails = {
|
|
14764
|
+
export type ReturnWholeInvoiceVisitDetails = {
|
|
14819
14765
|
activity_type: "return-whole-invoice";
|
|
14820
14766
|
activity_id: StringId;
|
|
14821
14767
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14822
14768
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number" | "time">;
|
|
14823
|
-
type VoidInvoiceDetails = {
|
|
14769
|
+
export type VoidInvoiceDetails = {
|
|
14824
14770
|
activity_type: "void-invoice";
|
|
14825
14771
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14826
14772
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
|
|
14827
|
-
type VoidInvoiceVisitDetails = {
|
|
14773
|
+
export type VoidInvoiceVisitDetails = {
|
|
14828
14774
|
activity_type: "void-invoice";
|
|
14829
14775
|
activity_id: StringId;
|
|
14830
14776
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14831
14777
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number" | "time">;
|
|
14832
|
-
type CycleDetails = {
|
|
14778
|
+
export type CycleDetails = {
|
|
14833
14779
|
activity_type: "cycle";
|
|
14834
14780
|
stage_name?: string;
|
|
14835
14781
|
} & Pick<Cycle.Data, "document_type" | "serial_number" | "document_id" | "status">;
|
|
14836
|
-
type ClientDetails = {
|
|
14782
|
+
export type ClientDetails = {
|
|
14837
14783
|
activity_type: "client";
|
|
14838
|
-
} & Pick<Client.Data, "name" | "client_code" | "local_name">;
|
|
14784
|
+
} & Pick<Client.Data, "name" | "client_code" | "local_name" | "lat" | "lng" | "location_verified">;
|
|
14785
|
+
export type StartDayDetails = {
|
|
14786
|
+
activity_type: "day";
|
|
14787
|
+
startTime: string;
|
|
14788
|
+
} & Pick<Day.Data, "day" | "open" | "created_by_system" | "start_geoPoint" | "timeZone">;
|
|
14789
|
+
export type EndDayDetails = {
|
|
14790
|
+
activity_type: "day";
|
|
14791
|
+
startTime: string;
|
|
14792
|
+
endTime: string;
|
|
14793
|
+
} & Pick<Day.Data, "day" | "open" | "breaksTime" | "created_by_system" | "timeInVisits" | "end_geoPoint" | "start_geoPoint" | "travelTimeBetweenVisists" | "totalTravelTime" | "breaksTime" | "timeOnDuty" | "timeZone">;
|
|
14794
|
+
export type DayDetails = StartDayDetails | EndDayDetails;
|
|
14839
14795
|
export type PopulatedDoc = Data & {
|
|
14840
14796
|
client_name?: string;
|
|
14841
14797
|
client_code?: string;
|
|
14842
14798
|
client_local_name?: string;
|
|
14799
|
+
client_lat?: number;
|
|
14800
|
+
client_lng?: number;
|
|
14801
|
+
client_location_verified?: boolean;
|
|
14802
|
+
user_profile_photo?: string | null;
|
|
14843
14803
|
client_customFields?: {
|
|
14844
14804
|
[key: string]: any;
|
|
14845
14805
|
};
|
|
@@ -14856,7 +14816,7 @@ export declare namespace Service {
|
|
|
14856
14816
|
};
|
|
14857
14817
|
teams?: string[];
|
|
14858
14818
|
};
|
|
14859
|
-
type SortingKeys = "_id";
|
|
14819
|
+
export type SortingKeys = "_id";
|
|
14860
14820
|
export namespace Find {
|
|
14861
14821
|
type Params = DefaultPaginationQueryParams & {
|
|
14862
14822
|
visit_mode?: boolean;
|
|
@@ -14911,6 +14871,296 @@ export declare namespace Service {
|
|
|
14911
14871
|
}
|
|
14912
14872
|
export {};
|
|
14913
14873
|
}
|
|
14874
|
+
namespace Permission {
|
|
14875
|
+
interface Data {
|
|
14876
|
+
_id: string;
|
|
14877
|
+
disabled: boolean;
|
|
14878
|
+
path: EndPoints;
|
|
14879
|
+
name: string;
|
|
14880
|
+
scope: "repzoCare" | "repzoSystem" | "customer";
|
|
14881
|
+
code: number;
|
|
14882
|
+
admin: {
|
|
14883
|
+
m_find: boolean;
|
|
14884
|
+
m_get: boolean;
|
|
14885
|
+
m_create: boolean;
|
|
14886
|
+
m_update: boolean;
|
|
14887
|
+
m_remove: boolean;
|
|
14888
|
+
};
|
|
14889
|
+
rep: {
|
|
14890
|
+
m_find: boolean;
|
|
14891
|
+
m_get: boolean;
|
|
14892
|
+
m_create: boolean;
|
|
14893
|
+
m_update: boolean;
|
|
14894
|
+
m_remove: boolean;
|
|
14895
|
+
};
|
|
14896
|
+
client: {
|
|
14897
|
+
m_find: boolean;
|
|
14898
|
+
m_get: boolean;
|
|
14899
|
+
m_create: boolean;
|
|
14900
|
+
m_update: boolean;
|
|
14901
|
+
m_remove: boolean;
|
|
14902
|
+
};
|
|
14903
|
+
guest: {
|
|
14904
|
+
m_find: boolean;
|
|
14905
|
+
m_get: boolean;
|
|
14906
|
+
m_create: boolean;
|
|
14907
|
+
m_update: boolean;
|
|
14908
|
+
m_remove: boolean;
|
|
14909
|
+
};
|
|
14910
|
+
tenant: {
|
|
14911
|
+
m_find: boolean;
|
|
14912
|
+
m_get: boolean;
|
|
14913
|
+
m_create: boolean;
|
|
14914
|
+
m_update: boolean;
|
|
14915
|
+
m_remove: boolean;
|
|
14916
|
+
};
|
|
14917
|
+
group: "Basic" | "Froms" | "Schedule" | "Pre Sales" | "Sales" | "Live Location" | "Omni" | "Bulk" | "Audit trail" | "System" | "Media" | "Store Check";
|
|
14918
|
+
teams_shared: "shared" | "unshared" | "optional";
|
|
14919
|
+
server: "sv" | "sso" | "report";
|
|
14920
|
+
createdAt: Date;
|
|
14921
|
+
updatedAt: Date;
|
|
14922
|
+
}
|
|
14923
|
+
}
|
|
14924
|
+
namespace Module {
|
|
14925
|
+
type PermissionGroup = "Basic" | "Froms" | "Schedule" | "Pre Sales" | "Sales" | "Live Location" | "Omni" | "Bulk" | "Audit trail" | "System" | "Media" | "Store Check" | "Client Dashboard" | "Virtual Admin" | "Customer Care" | "Marketplace" | "E-Tax";
|
|
14926
|
+
interface Data {
|
|
14927
|
+
_id: string;
|
|
14928
|
+
name: string;
|
|
14929
|
+
services: (string | Permission.Data)[];
|
|
14930
|
+
defaultState: boolean;
|
|
14931
|
+
permission_groups: PermissionGroup[];
|
|
14932
|
+
createdAt: Date;
|
|
14933
|
+
updatedAt: Date;
|
|
14934
|
+
}
|
|
14935
|
+
}
|
|
14936
|
+
namespace CompanyNamespace {
|
|
14937
|
+
type CompanyStatus = "trial" | "subscription";
|
|
14938
|
+
type CompanyIndustry = "fmcg" | "pharma" | "service" | "omni";
|
|
14939
|
+
interface Data {
|
|
14940
|
+
_id: string;
|
|
14941
|
+
company_name: string;
|
|
14942
|
+
legal_name: string;
|
|
14943
|
+
name_space: string;
|
|
14944
|
+
active_account: boolean;
|
|
14945
|
+
guest_mode: boolean;
|
|
14946
|
+
disabled?: boolean;
|
|
14947
|
+
logo?: string;
|
|
14948
|
+
created_by: Admin;
|
|
14949
|
+
address?: string;
|
|
14950
|
+
company_owner?: string;
|
|
14951
|
+
phone?: string;
|
|
14952
|
+
country: string;
|
|
14953
|
+
country_code: string;
|
|
14954
|
+
status: CompanyStatus;
|
|
14955
|
+
total_seats_sold: number;
|
|
14956
|
+
organization_name?: string;
|
|
14957
|
+
smsSenderID?: string;
|
|
14958
|
+
company_group: string;
|
|
14959
|
+
time_zone: string;
|
|
14960
|
+
integration_priority_index: number;
|
|
14961
|
+
banks_list: string;
|
|
14962
|
+
modules: {
|
|
14963
|
+
module: string | Module.Data;
|
|
14964
|
+
active: boolean;
|
|
14965
|
+
}[];
|
|
14966
|
+
excluded_modules: string[];
|
|
14967
|
+
industry: CompanyIndustry;
|
|
14968
|
+
end_of_day: string;
|
|
14969
|
+
trial_ends_at: number;
|
|
14970
|
+
subscription_status?: "trial" | "initiated" | "active" | "grace" | "limited" | "blocked";
|
|
14971
|
+
grace_until: number | null;
|
|
14972
|
+
limited_until: number | null;
|
|
14973
|
+
workspace: string;
|
|
14974
|
+
default_business_app: string;
|
|
14975
|
+
allowed_business_apps: string[];
|
|
14976
|
+
is_sandbox: boolean;
|
|
14977
|
+
parent_namespace?: string;
|
|
14978
|
+
grace_duration_days: number;
|
|
14979
|
+
limited_duration_days: number;
|
|
14980
|
+
billing_email: string;
|
|
14981
|
+
maxio_customer_id?: string;
|
|
14982
|
+
maxio_saving_plan_id?: string | null;
|
|
14983
|
+
maxio_standard_plan_id?: string | null;
|
|
14984
|
+
saving_plan_id?: string | null;
|
|
14985
|
+
standard_plan_id?: string | null;
|
|
14986
|
+
business_add_on_ids?: string[] | null;
|
|
14987
|
+
subscription_type?: "company-namespace" | "company-group";
|
|
14988
|
+
min_billing_reps: number;
|
|
14989
|
+
min_billing_admins: number;
|
|
14990
|
+
min_billing_users: number;
|
|
14991
|
+
max_billing_reps: number;
|
|
14992
|
+
max_billing_admins: number;
|
|
14993
|
+
max_billing_users: number;
|
|
14994
|
+
createdAt: Date;
|
|
14995
|
+
updatedAt: Date;
|
|
14996
|
+
}
|
|
14997
|
+
}
|
|
14998
|
+
namespace AuthenticateAdmin {
|
|
14999
|
+
interface Subscription_data {
|
|
15000
|
+
name_space: string;
|
|
15001
|
+
grace_until: number;
|
|
15002
|
+
subscription_status: CompanyNamespace.Data["subscription_status"];
|
|
15003
|
+
}
|
|
15004
|
+
export interface Data {
|
|
15005
|
+
access_token: string;
|
|
15006
|
+
refresh_token: string;
|
|
15007
|
+
login_status: "success";
|
|
15008
|
+
name: string;
|
|
15009
|
+
teams: string[];
|
|
15010
|
+
photo?: string;
|
|
15011
|
+
permissions: UserPermissions;
|
|
15012
|
+
admin: string;
|
|
15013
|
+
owner: boolean;
|
|
15014
|
+
country: string;
|
|
15015
|
+
status: CompanyNamespace.Data["status"];
|
|
15016
|
+
industry: CompanyNamespace.Data["industry"];
|
|
15017
|
+
time_zone: string;
|
|
15018
|
+
is_test: boolean;
|
|
15019
|
+
strong_password: boolean;
|
|
15020
|
+
exp: number;
|
|
15021
|
+
modules: string[];
|
|
15022
|
+
app_code: string;
|
|
15023
|
+
country_code: string[];
|
|
15024
|
+
COMPANYGROUPS: {
|
|
15025
|
+
[key: string]: any;
|
|
15026
|
+
};
|
|
15027
|
+
subscription_data: Subscription_data[];
|
|
15028
|
+
suspended: boolean;
|
|
15029
|
+
nameSpace: string[];
|
|
15030
|
+
assessment_enforcement_state: "suggest" | "enforce" | "ignore";
|
|
15031
|
+
repzo_internal_user: boolean;
|
|
15032
|
+
}
|
|
15033
|
+
export {};
|
|
15034
|
+
}
|
|
15035
|
+
namespace AuthenticateRep {
|
|
15036
|
+
interface Data {
|
|
15037
|
+
access_token: string;
|
|
15038
|
+
refresh_token: string;
|
|
15039
|
+
login_status: "success";
|
|
15040
|
+
teams: string[];
|
|
15041
|
+
permissions: Rep.Data["permissions"];
|
|
15042
|
+
rep: string;
|
|
15043
|
+
identifier: number;
|
|
15044
|
+
exp: number;
|
|
15045
|
+
modules: string[];
|
|
15046
|
+
realm_token: string;
|
|
15047
|
+
app_code: string;
|
|
15048
|
+
country: string;
|
|
15049
|
+
country_code: string[];
|
|
15050
|
+
is_test: boolean;
|
|
15051
|
+
suspended: boolean;
|
|
15052
|
+
nameSpace: string[];
|
|
15053
|
+
}
|
|
15054
|
+
}
|
|
15055
|
+
namespace Authenticate {
|
|
15056
|
+
type Data = AuthenticateAdmin.Data | AuthenticateRep.Data;
|
|
15057
|
+
}
|
|
15058
|
+
namespace ResetCompanyNamespace {
|
|
15059
|
+
export type Services = "rep" | "client" | "product" | "teams" | "tag" | "warehouse" | "msl" | "msl_product" | "job_category" | "role" | "user_role" | "availability_msl" | "media" | "reminder" | "approval" | "custom_field" | "custom_status" | "return_reason" | "feedback_option" | "promotion" | "route" | "address" | "payment_term" | "speciality" | "client_channel" | "client_contact" | "client_location" | "client_status" | "tax" | "measureunits" | "measureunit_family" | "variant" | "brand" | "product_group" | "product_category" | "product_subcategory" | "product_modifier_group" | "product_modifier" | "price_list" | "price_list_item" | "asset" | "asset_unit" | "asset_type" | "workorder_category" | "workorder_request" | "workorder" | "workorder_alarm" | "comments_thread" | "thumbnail_storage" | "media_storage" | "form" | "banner" | "payment_method" | "shipping_zone" | "shipping_method" | "active_client" | "transaction" | "ledger_payment" | "ledger_goods" | "transfer" | "payment" | "refund" | "receiving_material" | "full_invoice" | "cart" | "cart_history" | "proforma" | "settlement" | "adjust_account" | "adjust_inventory" | "cycle" | "check" | "failed_linking_txn" | "failed_adjust_account" | "failed_adjust_inventory" | "failed_cart" | "failed_emails" | "failed_invoices" | "failed_payments" | "failed_proforma_invoices" | "failed_receiving_material" | "failed_refund" | "failed_settlement" | "failed_transfer" | "failed_transaction" | "failed_set_txn_alarm" | "target_group" | "target_rule" | "target_result" | "target_result_history" | "widget_dashboard" | "widget" | "line" | "classification_line" | "line_target" | "client_line" | "day" | "visit" | "activity_audit" | "activity_availability" | "activity_checkout_display" | "activity_feedback" | "activity_form_result" | "activity_note" | "activity_photo" | "activity_planogram" | "activity_secondary_display" | "activity_shelfshare" | "activity_task" | "item_status" | "item_status_type" | "job_result" | "click" | "events_log" | "activity_storecheck" | "custom_list" | "custom_list_item" | "storecheck_template" | "preset" | "retail_execution_previous_result" | "retail_execution_report_view" | "calendar" | "plan" | "integration_app" | "integration_action_log" | "integration_command_log" | "integration_trigger" | "scheduled_email" | "territory" | "territory_level" | "territory_template" | "notifications_center" | "bulk_import" | "email_history" | "big_report" | "history" | "bulk_export" | "generate_rule" | "workorder_portal" | "workorder_portal_link" | "print_workorder_portal_link" | "print_workorder_portal_link_options" | "quick_convert_to_pdf" | "variant_batch" | "form_v2" | "activity_form_v2" | "unSynced_log" | "aiApiHistory" | "bulk_convert_proforma" | "approval_request" | "workflow" | "workflow_version" | "workflow_execution" | "ocr_invoice_job" | "ocr_invoice_job_template" | "ocr_invoice_job_page" | "inventory_adjustment_reason" | "supplier" | "product_audit_trace" | "contract" | "contract_installment" | "old_activity_form_v2" | "old_activity_storecheck" | "bi_view" | "bi_bucket" | "old_bi_bucket" | "bi_view_buckets_total" | "bi_view_instance" | "bi_view_version" | "blank_photo_rep" | "failed_bi_bucket_log" | "failed_consume_bi_alarm" | "failed_set_bi_alarm" | "oauth2_tokens" | "report_ubl_invoice" | "client_ubl_info" | "invoice_alert" | "login_device" | "asset_part_type" | "asset_part" | "asset_part_unit" | "asset_part_transaction" | "asset_part_receival" | "asset_part_transfer" | "return_asset_part_unit" | "store_asset_part_unit" | "activity_ai_sales_order" | "ocr_invoice_job_group" | "ubl_health_check" | "ubl_integration" | "ubl_connection_attempts" | "ai_object_detection_dataset" | "ai_object_detection_label" | "ai_object_detection_task" | "ai_object_detection_model" | "ai_object_detection_model_version" | "promotions_group";
|
|
15060
|
+
type ServiceOptionMap = {
|
|
15061
|
+
[key in Services]: {
|
|
15062
|
+
checked: boolean;
|
|
15063
|
+
prevent_delete_without: Services[];
|
|
15064
|
+
};
|
|
15065
|
+
};
|
|
15066
|
+
type Status = "initiated" | "building_report_in_progress" | "building_report_completed" | "building_report_failed" | "reset_in_progress" | "reset_success" | "reset_failed";
|
|
15067
|
+
type Action = {
|
|
15068
|
+
service: Services;
|
|
15069
|
+
model: RepzoModel;
|
|
15070
|
+
method: "delete" | "update";
|
|
15071
|
+
update_command?: any;
|
|
15072
|
+
query?: any;
|
|
15073
|
+
estimated_count: number;
|
|
15074
|
+
};
|
|
15075
|
+
export interface CreateBody {
|
|
15076
|
+
creator?: Admin;
|
|
15077
|
+
nameSpace: string;
|
|
15078
|
+
company_namespace: string[];
|
|
15079
|
+
services: ServiceOptionMap;
|
|
15080
|
+
is_test_reset?: boolean;
|
|
15081
|
+
}
|
|
15082
|
+
export interface Data {
|
|
15083
|
+
_id: StringId;
|
|
15084
|
+
creator: Admin;
|
|
15085
|
+
executor?: Admin;
|
|
15086
|
+
company_namespace: string[];
|
|
15087
|
+
services: ServiceOptionMap;
|
|
15088
|
+
actions: Action[];
|
|
15089
|
+
message: string;
|
|
15090
|
+
status: Status;
|
|
15091
|
+
clients?: string[];
|
|
15092
|
+
reps?: string[];
|
|
15093
|
+
to?: number;
|
|
15094
|
+
is_test_reset?: boolean;
|
|
15095
|
+
createdAt: Date;
|
|
15096
|
+
updatedAt: Date;
|
|
15097
|
+
expired?: boolean;
|
|
15098
|
+
}
|
|
15099
|
+
export namespace Find {
|
|
15100
|
+
type Params = DefaultPaginationQueryParams & {
|
|
15101
|
+
_id?: StringId[] | StringId;
|
|
15102
|
+
search?: string;
|
|
15103
|
+
from_updatedAt?: number;
|
|
15104
|
+
to_updatedAt?: number;
|
|
15105
|
+
from_createdAt?: number;
|
|
15106
|
+
to_createdAt?: number;
|
|
15107
|
+
creator?: StringId[] | StringId;
|
|
15108
|
+
"creator._id"?: StringId[] | StringId;
|
|
15109
|
+
executor?: StringId[] | StringId;
|
|
15110
|
+
"executor._id"?: StringId[] | StringId;
|
|
15111
|
+
status?: Data["status"] | Data["status"][];
|
|
15112
|
+
is_test_reset?: boolean;
|
|
15113
|
+
sortBy?: {
|
|
15114
|
+
field: "_id" | "status";
|
|
15115
|
+
type: "asc" | "desc";
|
|
15116
|
+
}[];
|
|
15117
|
+
options?: boolean;
|
|
15118
|
+
};
|
|
15119
|
+
interface PaginatedResult extends DefaultPaginationResult {
|
|
15120
|
+
data: (Data & {
|
|
15121
|
+
expired?: boolean;
|
|
15122
|
+
})[];
|
|
15123
|
+
}
|
|
15124
|
+
type Result = PaginatedResult | ServiceOptionMap;
|
|
15125
|
+
}
|
|
15126
|
+
export namespace Get {
|
|
15127
|
+
type ID = string;
|
|
15128
|
+
type Params = {
|
|
15129
|
+
[key: string]: any;
|
|
15130
|
+
};
|
|
15131
|
+
type Result = Data & {
|
|
15132
|
+
expired?: boolean;
|
|
15133
|
+
};
|
|
15134
|
+
}
|
|
15135
|
+
export namespace Create {
|
|
15136
|
+
type Body = CreateBody;
|
|
15137
|
+
type Result = Data;
|
|
15138
|
+
}
|
|
15139
|
+
export namespace Update {
|
|
15140
|
+
type ID = string;
|
|
15141
|
+
type Result = Data;
|
|
15142
|
+
}
|
|
15143
|
+
export {};
|
|
15144
|
+
}
|
|
15145
|
+
namespace TestResetCompanyNamespace {
|
|
15146
|
+
namespace Find {
|
|
15147
|
+
type Params = ResetCompanyNamespace.Find.Params;
|
|
15148
|
+
type Result = ResetCompanyNamespace.Find.Result;
|
|
15149
|
+
}
|
|
15150
|
+
namespace Get {
|
|
15151
|
+
type ID = string;
|
|
15152
|
+
type Params = ResetCompanyNamespace.Get.Params;
|
|
15153
|
+
type Result = ResetCompanyNamespace.Get.Result;
|
|
15154
|
+
}
|
|
15155
|
+
namespace Create {
|
|
15156
|
+
type Body = ResetCompanyNamespace.Create.Body;
|
|
15157
|
+
type Result = ResetCompanyNamespace.Create.Result;
|
|
15158
|
+
}
|
|
15159
|
+
namespace Update {
|
|
15160
|
+
type ID = string;
|
|
15161
|
+
type Result = ResetCompanyNamespace.Update.Result;
|
|
15162
|
+
}
|
|
15163
|
+
}
|
|
14914
15164
|
}
|
|
14915
15165
|
export type StringId = string;
|
|
14916
15166
|
export type NameSpaces = string[];
|
|
@@ -14977,4 +15227,18 @@ interface ActivityAdminNote {
|
|
|
14977
15227
|
admin_id: string;
|
|
14978
15228
|
time: number;
|
|
14979
15229
|
}
|
|
15230
|
+
interface UserPermissions {
|
|
15231
|
+
admin_can_edit_client_sales_data: boolean;
|
|
15232
|
+
admin_can_bypass_financial_limits_sales_order: boolean;
|
|
15233
|
+
admin_can_bypass_financial_limits_create_invoice: boolean;
|
|
15234
|
+
}
|
|
15235
|
+
type RepzoModel = "socialPlatform" | "activityAiSalesOrder" | "reportUblInvoice" | "ublIntegrationSettings" | "ublIntegration" | "ublConnectionAttempts" | "quickConvertToPdf" | "warehouses" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoice" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins"
|
|
15236
|
+
/**
|
|
15237
|
+
* @deprecated representatives shall be used
|
|
15238
|
+
*/
|
|
15239
|
+
| "rep" | "representatives" | "companies" | "banks" | "bankslists" | "productcategories" | "productSubCategory" | "defaultbanklist" | "permissions" | "roles" | "shipping_method" | "availability_msl" | "tags" | "feedbacks" | "feedbackoptions" | "medias" | "visits" | "job-category" | "channel" | "teams" | "modifiersGroup" | "productbrands" | "paymentTerms" | "plan" | "modifiersGroup" | "productbrands" | "notes" | "tasks" | "photos" | "forms" | "form" | "audits" | "availability" | "form" | "widgets-filter" | "routes" | "target-result" | "widget" | "calendar" | "bulkImport" | "target-rule" | "productGroups" | "proformas" | "proforma" | "days" | "shelfShare" | "customFields" | "clientStatus" | "adjustAccount" | "librarian_widget" | "settings" | "classificationLine" | "line" | "speciality" | "lineTarget" | "clientLine" | "receivingMaterial" | "sv.activitiesstorechecks" | "storeCheckTemplate" | "retailExecutionPreset" | "promotions" | "custom-list" | "custom-list-item" | "itemStatus" | "itemStatusType" | "customStatus" | "intgAvailableCategories" | "intgAvailableApps" | "intgApps" | "returnReason" | "clientContact" | "clientLocation" | "workorderCategory" | "asset" | "assetType" | "assetUnit" | "workorder" | "mediaStorage" | "workorderRequest" | "thumbnailStorage" | "commentsThread" | "workorderPortal" | "workorderPortalLink" | "oauth2Apps" | "printWorkorderPortalLink" | "printWorkorderPortalLinkOptions" | "refunds" | "oauth2Tokens" | "businessApp" | "user_role" | "product_modifier" | "address" | "reminders" | "approval" | "refund" | "cart" | "cart_history" | "settlement" | "adjustInventory" | "cycle" | "check" | "failed_linking_txn" | "failed_svix_event" | "failed_adjust_account" | "failed_adjust_inventory" | "failed_cart" | "failed_emails" | "failed_invoices" | "failed_payments" | "failed_proforma_invoices" | "failed_receiving_material" | "failed_refund" | "failed_transfer" | "failed_transaction" | "failed_set_txn_alarm" | "failed_settlement" | "banner" | "shipping_zone" | "paymentMethod" | "target_group" | "target_result_history" | "widget_dashboard" | "secondary" | "planogram" | "checkout" | "retailExecutionPreviousResult" | "retailExecutionReportView" | "clicks" | "jobResult" | "workorderAlarm" | "intgActionLogs" | "intgCommandLogs" | "intgTrigger" | "scheduleEmail" | "territory" | "territoryLevel" | "territoryTemplate" | "activeClient" | "notificationsCenter" | "emailHistory" | "history" | "bulkExport" | "generateRule" | "asset-unit" | "client-location" | "workorder-request" | "oauth2Tokens" | "businessPlan" | "businessPlanFeature" | "modules" | "companyGroup" | "billingSubscription" | "widgetCategory" | "module-custom-validator" | "workflowTriggerOption" | "workflow" | "workflowActionOption" | "workflowActionAttributeOption" | "workflowVersion" | "workflowExecution" | "adminAbility" | "smsGateway" | "approvalRequest" | "formV2" | "activityFormV2Result" | "maxioAccountingCode" | "syncMaxioSubscriptionSummaries" | "businessAddOn" | "variantBatch" | "eventsLog" | "unSyncedLog" | "aiApiHistory" | "bulkConvertProforma" | "biView" | "biViewVersion" | "biViewInstance" | "biBucket" | "biViewBucketsTotal" | "contract" | "contractInstallment" | "clientUblInfo" | "supplier" | "ocrInvoiceJob" | "ocrInvoiceJobGroup" | "ocrInvoiceJobTemplate" | "ocrInvoiceJobPage" | "inventoryAdjustmentReason" | "productAuditTrace" | "blankPhotoRep" | "oldActivityFormV2Result" | "oldActivityStorecheck" | "oldBiBucket" | "failedBiBucketLog" | "failedConsumeBiAlarm" | "failedSetBiAlarm" | "oauth2Tokens" | "ublHealthCheck" | "invoiceAlert" | "ocrInvoiceJobPages" | "loginDevice" | "aiObjectDetectionDataset" | "aiObjectDetectionLabel" | "aiObjectDetectionModel" | "aiObjectDetectionModelVersion" | "aiObjectDetectionTask" | "assetPartType"
|
|
15240
|
+
/**
|
|
15241
|
+
* @deprecated assetPart shall be used
|
|
15242
|
+
*/
|
|
15243
|
+
| "asset-part" | "assetPart" | "assetPartUnit" | "assetPartReceival" | "assetPartTransfer" | "assetPartTransaction" | "returnAssetPartUnit" | "storeAssetPartUnit" | "aiApiLimits" | "aiHistory" | "aiModelPrices" | "promotionsGroup" | "medias";
|
|
14980
15244
|
export {};
|