repzo 1.0.169 → 1.0.170
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 +2 -2
- package/lib/types/index.d.ts +14 -20
- package/package.json +1 -1
- package/src/types/index.ts +18 -22
package/lib/index.d.ts
CHANGED
|
@@ -96,9 +96,9 @@ export declare const end_points: {
|
|
|
96
96
|
readonly WORKORDER_AGENDA: "workorder-agenda";
|
|
97
97
|
readonly MODULE_CUSTOM_VALIDATOR: "module-custom-validator";
|
|
98
98
|
};
|
|
99
|
-
export type EndPoints = typeof end_points[keyof typeof end_points];
|
|
99
|
+
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
100
100
|
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", "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"];
|
|
101
|
-
export type AvailableService = typeof availableService[number];
|
|
101
|
+
export type AvailableService = (typeof availableService)[number];
|
|
102
102
|
export default class Repzo {
|
|
103
103
|
private svAPIEndpoint;
|
|
104
104
|
headers: Headers;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7295,6 +7295,7 @@ export declare namespace Service {
|
|
|
7295
7295
|
sync_id: string;
|
|
7296
7296
|
transaction_processed: boolean;
|
|
7297
7297
|
media?: StringId[];
|
|
7298
|
+
currency?: string;
|
|
7298
7299
|
createdAt: Date;
|
|
7299
7300
|
updatedAt: Date;
|
|
7300
7301
|
}
|
|
@@ -14061,7 +14062,7 @@ export declare namespace Service {
|
|
|
14061
14062
|
}[];
|
|
14062
14063
|
}
|
|
14063
14064
|
export const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
|
|
14064
|
-
export type FormV2FieldType = typeof fieldType_enums[number];
|
|
14065
|
+
export type FormV2FieldType = (typeof fieldType_enums)[number];
|
|
14065
14066
|
interface FieldPrintSettings {
|
|
14066
14067
|
three_inch: {
|
|
14067
14068
|
grid_column?: 1 | 2;
|
|
@@ -14203,7 +14204,7 @@ export declare namespace Service {
|
|
|
14203
14204
|
}
|
|
14204
14205
|
namespace ActivityFormV2Result {
|
|
14205
14206
|
const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
|
|
14206
|
-
type FormV2FieldType = typeof fieldType_enums[number];
|
|
14207
|
+
type FormV2FieldType = (typeof fieldType_enums)[number];
|
|
14207
14208
|
interface FieldResult {
|
|
14208
14209
|
_id?: string;
|
|
14209
14210
|
field_id: string;
|
|
@@ -14478,7 +14479,7 @@ export declare namespace Service {
|
|
|
14478
14479
|
}
|
|
14479
14480
|
namespace TimelineReport {
|
|
14480
14481
|
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"];
|
|
14481
|
-
type ActivityType = typeof activity_types[number];
|
|
14482
|
+
type ActivityType = (typeof activity_types)[number];
|
|
14482
14483
|
export interface Data {
|
|
14483
14484
|
_id: StringId;
|
|
14484
14485
|
company_namespace: string[];
|
|
@@ -14509,7 +14510,7 @@ export declare namespace Service {
|
|
|
14509
14510
|
}
|
|
14510
14511
|
export type VisitDetails = {
|
|
14511
14512
|
activity_type: "visit";
|
|
14512
|
-
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails |
|
|
14513
|
+
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails | FullInvoiceVisitDetails | ProformaVisitDetails | ReturnWholeInvoiceVisitDetails | VoidInvoiceVisitDetails)[];
|
|
14513
14514
|
} & 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" | "delta_distance">;
|
|
14514
14515
|
export type ActivityPhotoDetails = {
|
|
14515
14516
|
activity_type: "activity-photo";
|
|
@@ -14720,11 +14721,7 @@ export declare namespace Service {
|
|
|
14720
14721
|
} & Pick<Refund.Data, "amount" | "serial_number" | "currency" | "transaction_type" | "time">;
|
|
14721
14722
|
export type SettlementDetails = {
|
|
14722
14723
|
activity_type: "settlement";
|
|
14723
|
-
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type">;
|
|
14724
|
-
export type SettlementVisitDetails = {
|
|
14725
|
-
activity_type: "settlement";
|
|
14726
|
-
activity_id: StringId;
|
|
14727
|
-
} & Pick<Settlement.Data, "amount" | "serial_number" | "origin" | "payment_type" | "time">;
|
|
14724
|
+
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency">;
|
|
14728
14725
|
export type ConvertProformaDetails = {
|
|
14729
14726
|
activity_type: "convert-proforma";
|
|
14730
14727
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
@@ -15185,7 +15182,7 @@ export declare namespace Service {
|
|
|
15185
15182
|
}
|
|
15186
15183
|
namespace TimelineTimeList {
|
|
15187
15184
|
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"];
|
|
15188
|
-
type ActivityType = typeof activity_types[number];
|
|
15185
|
+
type ActivityType = (typeof activity_types)[number];
|
|
15189
15186
|
export interface Data {
|
|
15190
15187
|
_id: StringId;
|
|
15191
15188
|
company_namespace: string[];
|
|
@@ -15225,7 +15222,7 @@ export declare namespace Service {
|
|
|
15225
15222
|
}
|
|
15226
15223
|
export type VisitDetails = {
|
|
15227
15224
|
activity_type: "visit";
|
|
15228
|
-
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails |
|
|
15225
|
+
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails | FullInvoiceVisitDetails | ProformaVisitDetails | ReturnWholeInvoiceVisitDetails | VoidInvoiceVisitDetails)[];
|
|
15229
15226
|
feed_back_option?: StringId;
|
|
15230
15227
|
feed_back_option_label?: string;
|
|
15231
15228
|
} & Pick<Visit.Data, "closed_by_system" | "geoPoint" | "start_time" | "end_time" | "total_time" | "start_out_of_geofence" | "end_out_of_geofence" | "auto_closed_by_geofence" | "auto_closed_by_geofence_reason" | "client_geo_location" | "delta_distance">;
|
|
@@ -15449,11 +15446,7 @@ export declare namespace Service {
|
|
|
15449
15446
|
} & Pick<Refund.Data, "amount" | "serial_number" | "currency" | "transaction_type" | "time">;
|
|
15450
15447
|
export type SettlementDetails = {
|
|
15451
15448
|
activity_type: "settlement";
|
|
15452
|
-
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type">;
|
|
15453
|
-
export type SettlementVisitDetails = {
|
|
15454
|
-
activity_type: "settlement";
|
|
15455
|
-
activity_id: StringId;
|
|
15456
|
-
} & Pick<Settlement.Data, "amount" | "serial_number" | "origin" | "payment_type" | "time">;
|
|
15449
|
+
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency">;
|
|
15457
15450
|
export type ConvertProformaDetails = {
|
|
15458
15451
|
activity_type: "convert-proforma";
|
|
15459
15452
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
@@ -15480,7 +15473,8 @@ export declare namespace Service {
|
|
|
15480
15473
|
export type ReceivingMaterialDetails = {
|
|
15481
15474
|
activity_type: "receiving-material";
|
|
15482
15475
|
to_name: string;
|
|
15483
|
-
|
|
15476
|
+
supplier_name?: string;
|
|
15477
|
+
} & Pick<ReceivingMaterial.Data, "serial_number" | "to" | "items_count" | "comment" | "supplier">;
|
|
15484
15478
|
export type FullInvoiceDetails = {
|
|
15485
15479
|
activity_type: "fullinvoices";
|
|
15486
15480
|
} & Pick<FullInvoice.Data, "total" | "serial_number" | "currency" | "issue_date" | "due_date" | "external_serial_number">;
|
|
@@ -15746,7 +15740,7 @@ export declare namespace Service {
|
|
|
15746
15740
|
creator: AdminCreator;
|
|
15747
15741
|
editor?: AdminCreator;
|
|
15748
15742
|
_id?: string;
|
|
15749
|
-
module:
|
|
15743
|
+
module: RepzoModel;
|
|
15750
15744
|
key: string;
|
|
15751
15745
|
origin_type: "system_field" | "custom_field";
|
|
15752
15746
|
disabled: boolean;
|
|
@@ -15773,7 +15767,7 @@ export declare namespace Service {
|
|
|
15773
15767
|
export type Data = ReferenceData | NumberData | TextData;
|
|
15774
15768
|
export interface BasicCreateBody {
|
|
15775
15769
|
creator: AdminCreator;
|
|
15776
|
-
module:
|
|
15770
|
+
module: RepzoModel;
|
|
15777
15771
|
key: string;
|
|
15778
15772
|
origin_type: "system_field" | "custom_field";
|
|
15779
15773
|
scope: "all" | "rep" | "admin";
|
|
@@ -15784,7 +15778,7 @@ export declare namespace Service {
|
|
|
15784
15778
|
export type CreateBody = BasicCreateBody & (ReferenceData | NumberData | TextData);
|
|
15785
15779
|
export interface BasicUpdateBody {
|
|
15786
15780
|
editor?: AdminCreator;
|
|
15787
|
-
module?:
|
|
15781
|
+
module?: RepzoModel;
|
|
15788
15782
|
key?: string;
|
|
15789
15783
|
origin_type?: "system_field" | "custom_field";
|
|
15790
15784
|
scope?: "all" | "rep" | "admin";
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -7805,6 +7805,7 @@ export namespace Service {
|
|
|
7805
7805
|
sync_id: string;
|
|
7806
7806
|
transaction_processed: boolean;
|
|
7807
7807
|
media?: StringId[];
|
|
7808
|
+
currency?: string;
|
|
7808
7809
|
createdAt: Date;
|
|
7809
7810
|
updatedAt: Date;
|
|
7810
7811
|
}
|
|
@@ -15569,7 +15570,6 @@ export namespace Service {
|
|
|
15569
15570
|
| PaymentVisitDetails
|
|
15570
15571
|
| RefundVisitDetails
|
|
15571
15572
|
| ConvertProformaVisitDetails
|
|
15572
|
-
| SettlementVisitDetails
|
|
15573
15573
|
| FullInvoiceVisitDetails
|
|
15574
15574
|
| ProformaVisitDetails
|
|
15575
15575
|
| ReturnWholeInvoiceVisitDetails
|
|
@@ -15941,14 +15941,12 @@ export namespace Service {
|
|
|
15941
15941
|
// Settlement ********************************************************************
|
|
15942
15942
|
export type SettlementDetails = { activity_type: "settlement" } & Pick<
|
|
15943
15943
|
Settlement.Data,
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
Settlement.Data,
|
|
15951
|
-
"amount" | "serial_number" | "origin" | "payment_type" | "time"
|
|
15944
|
+
| "amount"
|
|
15945
|
+
| "serial_number"
|
|
15946
|
+
| "paytime"
|
|
15947
|
+
| "origin"
|
|
15948
|
+
| "payment_type"
|
|
15949
|
+
| "currency"
|
|
15952
15950
|
>;
|
|
15953
15951
|
|
|
15954
15952
|
// ConvertProforma ********************************************************************
|
|
@@ -16967,7 +16965,6 @@ export namespace Service {
|
|
|
16967
16965
|
| PaymentVisitDetails
|
|
16968
16966
|
| RefundVisitDetails
|
|
16969
16967
|
| ConvertProformaVisitDetails
|
|
16970
|
-
| SettlementVisitDetails
|
|
16971
16968
|
| FullInvoiceVisitDetails
|
|
16972
16969
|
| ProformaVisitDetails
|
|
16973
16970
|
| ReturnWholeInvoiceVisitDetails
|
|
@@ -17356,14 +17353,12 @@ export namespace Service {
|
|
|
17356
17353
|
// Settlement ********************************************************************
|
|
17357
17354
|
export type SettlementDetails = { activity_type: "settlement" } & Pick<
|
|
17358
17355
|
Settlement.Data,
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
Settlement.Data,
|
|
17366
|
-
"amount" | "serial_number" | "origin" | "payment_type" | "time"
|
|
17356
|
+
| "amount"
|
|
17357
|
+
| "serial_number"
|
|
17358
|
+
| "paytime"
|
|
17359
|
+
| "origin"
|
|
17360
|
+
| "payment_type"
|
|
17361
|
+
| "currency"
|
|
17367
17362
|
>;
|
|
17368
17363
|
|
|
17369
17364
|
// ConvertProforma ********************************************************************
|
|
@@ -17400,9 +17395,10 @@ export namespace Service {
|
|
|
17400
17395
|
export type ReceivingMaterialDetails = {
|
|
17401
17396
|
activity_type: "receiving-material";
|
|
17402
17397
|
to_name: string;
|
|
17398
|
+
supplier_name?: string;
|
|
17403
17399
|
} & Pick<
|
|
17404
17400
|
ReceivingMaterial.Data,
|
|
17405
|
-
"serial_number" | "to" | "items_count" | "comment"
|
|
17401
|
+
"serial_number" | "to" | "items_count" | "comment" | "supplier"
|
|
17406
17402
|
>;
|
|
17407
17403
|
|
|
17408
17404
|
// FullInvoice ********************************************************************
|
|
@@ -17764,7 +17760,7 @@ export namespace Service {
|
|
|
17764
17760
|
creator: AdminCreator;
|
|
17765
17761
|
editor?: AdminCreator;
|
|
17766
17762
|
_id?: string;
|
|
17767
|
-
module:
|
|
17763
|
+
module: RepzoModel;
|
|
17768
17764
|
key: string;
|
|
17769
17765
|
origin_type: "system_field" | "custom_field";
|
|
17770
17766
|
disabled: boolean;
|
|
@@ -17794,7 +17790,7 @@ export namespace Service {
|
|
|
17794
17790
|
|
|
17795
17791
|
export interface BasicCreateBody {
|
|
17796
17792
|
creator: AdminCreator;
|
|
17797
|
-
module:
|
|
17793
|
+
module: RepzoModel;
|
|
17798
17794
|
key: string;
|
|
17799
17795
|
origin_type: "system_field" | "custom_field";
|
|
17800
17796
|
scope: "all" | "rep" | "admin";
|
|
@@ -17808,7 +17804,7 @@ export namespace Service {
|
|
|
17808
17804
|
|
|
17809
17805
|
export interface BasicUpdateBody {
|
|
17810
17806
|
editor?: AdminCreator;
|
|
17811
|
-
module?:
|
|
17807
|
+
module?: RepzoModel;
|
|
17812
17808
|
key?: string;
|
|
17813
17809
|
origin_type?: "system_field" | "custom_field";
|
|
17814
17810
|
scope?: "all" | "rep" | "admin";
|