repzo 1.0.209 → 1.0.211
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 +8 -2
- package/lib/index.js +9 -0
- package/lib/types/index.d.ts +41 -7
- package/lib/types/index.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +16 -0
- package/src/types/index.ts +81 -3
package/lib/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const end_points: {
|
|
|
41
41
|
readonly PAYMENT: "payments";
|
|
42
42
|
readonly REFUND: "refund";
|
|
43
43
|
readonly SETTLEMENT: "settlement";
|
|
44
|
+
readonly VOID_SETTLEMENT: "void-settlement";
|
|
44
45
|
readonly CHECK: "checks";
|
|
45
46
|
readonly DAY: "day";
|
|
46
47
|
readonly RECEIVING_MATERIAL: "receiving-material";
|
|
@@ -114,7 +115,7 @@ export declare const end_points: {
|
|
|
114
115
|
readonly CLM_FETCH: "clm-fetch";
|
|
115
116
|
};
|
|
116
117
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
117
|
-
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", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch"];
|
|
118
|
+
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"];
|
|
118
119
|
export type AvailableService = (typeof availableService)[number];
|
|
119
120
|
export default class Repzo {
|
|
120
121
|
private svAPIEndpoint;
|
|
@@ -164,6 +165,7 @@ export default class Repzo {
|
|
|
164
165
|
readonly PAYMENT: "payments";
|
|
165
166
|
readonly REFUND: "refund";
|
|
166
167
|
readonly SETTLEMENT: "settlement";
|
|
168
|
+
readonly VOID_SETTLEMENT: "void-settlement";
|
|
167
169
|
readonly CHECK: "checks";
|
|
168
170
|
readonly DAY: "day";
|
|
169
171
|
readonly RECEIVING_MATERIAL: "receiving-material";
|
|
@@ -241,7 +243,7 @@ export default class Repzo {
|
|
|
241
243
|
private _update;
|
|
242
244
|
private _patch;
|
|
243
245
|
private _delete;
|
|
244
|
-
available_services: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "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"];
|
|
246
|
+
available_services: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch"];
|
|
245
247
|
client: {
|
|
246
248
|
_path: "client";
|
|
247
249
|
find: (params?: Service.Client.Find.Params) => Promise<Service.Client.Find.Result>;
|
|
@@ -572,6 +574,10 @@ export default class Repzo {
|
|
|
572
574
|
get: (id: Service.Settlement.Get.ID, params?: Service.Settlement.Get.Params) => Promise<Service.Settlement.Get.Result>;
|
|
573
575
|
create: (body: Service.Settlement.Create.Body) => Promise<Service.Settlement.Create.Result>;
|
|
574
576
|
};
|
|
577
|
+
void_settlement: {
|
|
578
|
+
_path: "void-settlement";
|
|
579
|
+
create: (body: Service.VoidSettlement.Create.Body) => Promise<Service.VoidSettlement.Create.Result>;
|
|
580
|
+
};
|
|
575
581
|
check: {
|
|
576
582
|
_path: "checks";
|
|
577
583
|
find: (params?: Service.Check.Find.Params) => Promise<Service.Check.Find.Result>;
|
package/lib/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export const end_points = {
|
|
|
42
42
|
PAYMENT: "payments",
|
|
43
43
|
REFUND: "refund",
|
|
44
44
|
SETTLEMENT: "settlement",
|
|
45
|
+
VOID_SETTLEMENT: "void-settlement",
|
|
45
46
|
CHECK: "checks",
|
|
46
47
|
DAY: "day",
|
|
47
48
|
RECEIVING_MATERIAL: "receiving-material",
|
|
@@ -158,6 +159,7 @@ export const availableService = [
|
|
|
158
159
|
"payment",
|
|
159
160
|
"refund",
|
|
160
161
|
"settlement",
|
|
162
|
+
"voidSettlement",
|
|
161
163
|
"check",
|
|
162
164
|
"day",
|
|
163
165
|
"receivingMaterial",
|
|
@@ -1101,6 +1103,13 @@ class Repzo {
|
|
|
1101
1103
|
return res;
|
|
1102
1104
|
},
|
|
1103
1105
|
};
|
|
1106
|
+
this.void_settlement = {
|
|
1107
|
+
_path: Repzo._end_points.VOID_SETTLEMENT,
|
|
1108
|
+
create: async (body) => {
|
|
1109
|
+
let res = await this._create(this.svAPIEndpoint, this.void_settlement._path, body);
|
|
1110
|
+
return res;
|
|
1111
|
+
},
|
|
1112
|
+
};
|
|
1104
1113
|
this.check = {
|
|
1105
1114
|
_path: Repzo._end_points.CHECK,
|
|
1106
1115
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7354,8 +7354,14 @@ export declare namespace Service {
|
|
|
7354
7354
|
transaction_processed: boolean;
|
|
7355
7355
|
media?: StringId[];
|
|
7356
7356
|
currency?: string;
|
|
7357
|
+
is_void: boolean;
|
|
7358
|
+
returned_to?: StringId;
|
|
7359
|
+
returned_to_serial_number?: SerialNumber;
|
|
7360
|
+
returned_from?: StringId;
|
|
7361
|
+
returned_from_serial_number?: SerialNumber;
|
|
7357
7362
|
createdAt: Date;
|
|
7358
7363
|
updatedAt: Date;
|
|
7364
|
+
__v?: number;
|
|
7359
7365
|
}
|
|
7360
7366
|
export type Data = SettlementSchema;
|
|
7361
7367
|
export interface CreateBody {
|
|
@@ -7385,6 +7391,11 @@ export declare namespace Service {
|
|
|
7385
7391
|
sync_id: string;
|
|
7386
7392
|
transaction_processed: boolean;
|
|
7387
7393
|
media?: StringId[];
|
|
7394
|
+
is_void: boolean;
|
|
7395
|
+
returned_to?: StringId;
|
|
7396
|
+
returned_to_serial_number?: SerialNumber;
|
|
7397
|
+
returned_from?: StringId;
|
|
7398
|
+
returned_from_serial_number?: SerialNumber;
|
|
7388
7399
|
}
|
|
7389
7400
|
type SettlementSchemaWithPopulatedKeys = SettlementSchema & {
|
|
7390
7401
|
teams_populated?: string[] | Team.TeamSchema[];
|
|
@@ -7416,6 +7427,7 @@ export declare namespace Service {
|
|
|
7416
7427
|
}[];
|
|
7417
7428
|
[key: string]: any;
|
|
7418
7429
|
populatedKeys?: PopulatedKeys[];
|
|
7430
|
+
is_void?: boolean;
|
|
7419
7431
|
};
|
|
7420
7432
|
interface Result extends DefaultPaginationResult {
|
|
7421
7433
|
data: SettlementSchemaWithPopulatedKeys[];
|
|
@@ -7436,6 +7448,18 @@ export declare namespace Service {
|
|
|
7436
7448
|
}
|
|
7437
7449
|
export {};
|
|
7438
7450
|
}
|
|
7451
|
+
namespace VoidSettlement {
|
|
7452
|
+
interface CreateBody {
|
|
7453
|
+
settlement: StringId;
|
|
7454
|
+
company_namespace?: string[];
|
|
7455
|
+
note?: string;
|
|
7456
|
+
media?: StringId[];
|
|
7457
|
+
}
|
|
7458
|
+
namespace Create {
|
|
7459
|
+
type Body = CreateBody;
|
|
7460
|
+
type Result = Settlement.Data;
|
|
7461
|
+
}
|
|
7462
|
+
}
|
|
7439
7463
|
namespace Check {
|
|
7440
7464
|
export interface CheckSchema {
|
|
7441
7465
|
_id: string;
|
|
@@ -14482,7 +14506,7 @@ export declare namespace Service {
|
|
|
14482
14506
|
}
|
|
14483
14507
|
}
|
|
14484
14508
|
namespace TimelineReport {
|
|
14485
|
-
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"];
|
|
14509
|
+
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", "void-settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
14486
14510
|
type ActivityType = (typeof activity_types)[number];
|
|
14487
14511
|
export interface Data {
|
|
14488
14512
|
_id: StringId;
|
|
@@ -14508,7 +14532,7 @@ export declare namespace Service {
|
|
|
14508
14532
|
coordinates: [number, number];
|
|
14509
14533
|
type: "Point";
|
|
14510
14534
|
};
|
|
14511
|
-
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;
|
|
14535
|
+
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 | VoidSettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
14512
14536
|
createdAt: Date;
|
|
14513
14537
|
updatedAt: Date;
|
|
14514
14538
|
}
|
|
@@ -14726,6 +14750,9 @@ export declare namespace Service {
|
|
|
14726
14750
|
export type SettlementDetails = {
|
|
14727
14751
|
activity_type: "settlement";
|
|
14728
14752
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency">;
|
|
14753
|
+
export type VoidSettlementDetails = {
|
|
14754
|
+
activity_type: "void-settlement";
|
|
14755
|
+
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency" | "returned_from" | "returned_from_serial_number" | "returned_to_serial_number">;
|
|
14729
14756
|
export type ConvertProformaDetails = {
|
|
14730
14757
|
activity_type: "convert-proforma";
|
|
14731
14758
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
@@ -15188,7 +15215,7 @@ export declare namespace Service {
|
|
|
15188
15215
|
}
|
|
15189
15216
|
}
|
|
15190
15217
|
namespace TimelineTimeList {
|
|
15191
|
-
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"];
|
|
15218
|
+
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", "void-settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
15192
15219
|
type ActivityType = (typeof activity_types)[number];
|
|
15193
15220
|
export interface Data {
|
|
15194
15221
|
_id: StringId;
|
|
@@ -15223,7 +15250,7 @@ export declare namespace Service {
|
|
|
15223
15250
|
device_os?: string;
|
|
15224
15251
|
device_os_version?: string;
|
|
15225
15252
|
device_model?: string;
|
|
15226
|
-
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;
|
|
15253
|
+
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 | VoidSettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
15227
15254
|
createdAt: Date;
|
|
15228
15255
|
updatedAt: Date;
|
|
15229
15256
|
}
|
|
@@ -15454,6 +15481,9 @@ export declare namespace Service {
|
|
|
15454
15481
|
export type SettlementDetails = {
|
|
15455
15482
|
activity_type: "settlement";
|
|
15456
15483
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency">;
|
|
15484
|
+
export type VoidSettlementDetails = {
|
|
15485
|
+
activity_type: "void-settlement";
|
|
15486
|
+
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type" | "currency" | "returned_from" | "returned_from_serial_number" | "returned_to_serial_number">;
|
|
15457
15487
|
export type ConvertProformaDetails = {
|
|
15458
15488
|
activity_type: "convert-proforma";
|
|
15459
15489
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
@@ -17150,6 +17180,7 @@ export declare namespace Service {
|
|
|
17150
17180
|
slides: {
|
|
17151
17181
|
slide: StringId;
|
|
17152
17182
|
feedback: "positive" | "negative" | "notProvided";
|
|
17183
|
+
zoom: boolean;
|
|
17153
17184
|
duration_on_slide_ms: number;
|
|
17154
17185
|
}[];
|
|
17155
17186
|
}[];
|
|
@@ -17198,26 +17229,29 @@ export declare namespace Service {
|
|
|
17198
17229
|
slides: {
|
|
17199
17230
|
slide: StringId;
|
|
17200
17231
|
feedback: "positive" | "negative" | "notProvided";
|
|
17232
|
+
zoom: boolean;
|
|
17201
17233
|
duration_on_slide_ms: number;
|
|
17202
17234
|
}[];
|
|
17203
17235
|
}[];
|
|
17204
17236
|
interactions: {
|
|
17205
17237
|
interaction_time: number;
|
|
17206
17238
|
interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
|
|
17207
|
-
interaction_detail: "in" | "out" | "positive" | "negative" | null;
|
|
17239
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | "notProvided" | null;
|
|
17208
17240
|
slide?: StringId;
|
|
17209
17241
|
sequence?: StringId;
|
|
17242
|
+
sequence_name?: string;
|
|
17210
17243
|
}[];
|
|
17211
17244
|
}
|
|
17212
17245
|
export interface CLMActivityInteraction {
|
|
17213
17246
|
_id: StringId;
|
|
17214
17247
|
interaction_time: number;
|
|
17215
17248
|
interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
|
|
17216
|
-
interaction_detail: "in" | "out" | "positive" | "negative" | null;
|
|
17249
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | "notProvided" | null;
|
|
17217
17250
|
slide?: StringId;
|
|
17218
17251
|
sequence?: StringId;
|
|
17219
17252
|
presentation: StringId;
|
|
17220
|
-
clmFeedBackActivity
|
|
17253
|
+
clmFeedBackActivity?: StringId;
|
|
17254
|
+
sync_id: string;
|
|
17221
17255
|
company_namespace: string[];
|
|
17222
17256
|
createdAt: string;
|
|
17223
17257
|
updatedAt: string;
|
package/lib/types/index.js
CHANGED
|
@@ -77,6 +77,7 @@ export var Service;
|
|
|
77
77
|
"store-asset-part-unit",
|
|
78
78
|
"refund",
|
|
79
79
|
"settlement",
|
|
80
|
+
"void-settlement",
|
|
80
81
|
"convert-proforma",
|
|
81
82
|
"transfer",
|
|
82
83
|
"proforma",
|
|
@@ -121,6 +122,7 @@ export var Service;
|
|
|
121
122
|
"store-asset-part-unit",
|
|
122
123
|
"refund",
|
|
123
124
|
"settlement",
|
|
125
|
+
"void-settlement",
|
|
124
126
|
"convert-proforma",
|
|
125
127
|
"transfer",
|
|
126
128
|
"proforma",
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export const end_points = {
|
|
|
52
52
|
PAYMENT: "payments",
|
|
53
53
|
REFUND: "refund",
|
|
54
54
|
SETTLEMENT: "settlement",
|
|
55
|
+
VOID_SETTLEMENT: "void-settlement",
|
|
55
56
|
CHECK: "checks",
|
|
56
57
|
DAY: "day",
|
|
57
58
|
RECEIVING_MATERIAL: "receiving-material",
|
|
@@ -170,6 +171,7 @@ export const availableService = [
|
|
|
170
171
|
"payment",
|
|
171
172
|
"refund",
|
|
172
173
|
"settlement",
|
|
174
|
+
"voidSettlement",
|
|
173
175
|
"check",
|
|
174
176
|
"day",
|
|
175
177
|
"receivingMaterial",
|
|
@@ -2515,6 +2517,20 @@ export default class Repzo {
|
|
|
2515
2517
|
},
|
|
2516
2518
|
};
|
|
2517
2519
|
|
|
2520
|
+
void_settlement = {
|
|
2521
|
+
_path: Repzo._end_points.VOID_SETTLEMENT,
|
|
2522
|
+
create: async (
|
|
2523
|
+
body: Service.VoidSettlement.Create.Body,
|
|
2524
|
+
): Promise<Service.VoidSettlement.Create.Result> => {
|
|
2525
|
+
let res = await this._create(
|
|
2526
|
+
this.svAPIEndpoint,
|
|
2527
|
+
this.void_settlement._path,
|
|
2528
|
+
body,
|
|
2529
|
+
);
|
|
2530
|
+
return res;
|
|
2531
|
+
},
|
|
2532
|
+
};
|
|
2533
|
+
|
|
2518
2534
|
check = {
|
|
2519
2535
|
_path: Repzo._end_points.CHECK,
|
|
2520
2536
|
|
package/src/types/index.ts
CHANGED
|
@@ -7875,8 +7875,14 @@ export namespace Service {
|
|
|
7875
7875
|
transaction_processed: boolean;
|
|
7876
7876
|
media?: StringId[];
|
|
7877
7877
|
currency?: string;
|
|
7878
|
+
is_void: boolean;
|
|
7879
|
+
returned_to?: StringId;
|
|
7880
|
+
returned_to_serial_number?: SerialNumber;
|
|
7881
|
+
returned_from?: StringId;
|
|
7882
|
+
returned_from_serial_number?: SerialNumber;
|
|
7878
7883
|
createdAt: Date;
|
|
7879
7884
|
updatedAt: Date;
|
|
7885
|
+
__v?: number;
|
|
7880
7886
|
}
|
|
7881
7887
|
export type Data = SettlementSchema;
|
|
7882
7888
|
export interface CreateBody {
|
|
@@ -7906,6 +7912,11 @@ export namespace Service {
|
|
|
7906
7912
|
sync_id: string;
|
|
7907
7913
|
transaction_processed: boolean;
|
|
7908
7914
|
media?: StringId[];
|
|
7915
|
+
is_void: boolean;
|
|
7916
|
+
returned_to?: StringId;
|
|
7917
|
+
returned_to_serial_number?: SerialNumber;
|
|
7918
|
+
returned_from?: StringId;
|
|
7919
|
+
returned_from_serial_number?: SerialNumber;
|
|
7909
7920
|
}
|
|
7910
7921
|
|
|
7911
7922
|
type SettlementSchemaWithPopulatedKeys = SettlementSchema & {
|
|
@@ -7938,6 +7949,7 @@ export namespace Service {
|
|
|
7938
7949
|
}[];
|
|
7939
7950
|
[key: string]: any; // integration_meta.
|
|
7940
7951
|
populatedKeys?: PopulatedKeys[];
|
|
7952
|
+
is_void?: boolean;
|
|
7941
7953
|
};
|
|
7942
7954
|
export interface Result extends DefaultPaginationResult {
|
|
7943
7955
|
data: SettlementSchemaWithPopulatedKeys[];
|
|
@@ -7960,6 +7972,20 @@ export namespace Service {
|
|
|
7960
7972
|
}
|
|
7961
7973
|
}
|
|
7962
7974
|
|
|
7975
|
+
export namespace VoidSettlement {
|
|
7976
|
+
export interface CreateBody {
|
|
7977
|
+
settlement: StringId;
|
|
7978
|
+
company_namespace?: string[];
|
|
7979
|
+
note?: string;
|
|
7980
|
+
media?: StringId[];
|
|
7981
|
+
}
|
|
7982
|
+
|
|
7983
|
+
export namespace Create {
|
|
7984
|
+
export type Body = CreateBody;
|
|
7985
|
+
export type Result = Settlement.Data;
|
|
7986
|
+
}
|
|
7987
|
+
}
|
|
7988
|
+
|
|
7963
7989
|
export namespace Check {
|
|
7964
7990
|
export interface CheckSchema {
|
|
7965
7991
|
_id: string;
|
|
@@ -15554,6 +15580,7 @@ export namespace Service {
|
|
|
15554
15580
|
"store-asset-part-unit",
|
|
15555
15581
|
"refund",
|
|
15556
15582
|
"settlement",
|
|
15583
|
+
"void-settlement",
|
|
15557
15584
|
"convert-proforma",
|
|
15558
15585
|
"transfer",
|
|
15559
15586
|
"proforma",
|
|
@@ -15617,6 +15644,7 @@ export namespace Service {
|
|
|
15617
15644
|
| ReturnAssetPartUnitDetails
|
|
15618
15645
|
| StoreAssetPartUnitDetails
|
|
15619
15646
|
| SettlementDetails
|
|
15647
|
+
| VoidSettlementDetails
|
|
15620
15648
|
| ConvertProformaDetails
|
|
15621
15649
|
| TransferDetails
|
|
15622
15650
|
| ReceivingMaterialDetails
|
|
@@ -16036,6 +16064,22 @@ export namespace Service {
|
|
|
16036
16064
|
| "currency"
|
|
16037
16065
|
>;
|
|
16038
16066
|
|
|
16067
|
+
// VoidSettlement ********************************************************************
|
|
16068
|
+
export type VoidSettlementDetails = {
|
|
16069
|
+
activity_type: "void-settlement";
|
|
16070
|
+
} & Pick<
|
|
16071
|
+
Settlement.Data,
|
|
16072
|
+
| "amount"
|
|
16073
|
+
| "serial_number"
|
|
16074
|
+
| "paytime"
|
|
16075
|
+
| "origin"
|
|
16076
|
+
| "payment_type"
|
|
16077
|
+
| "currency"
|
|
16078
|
+
| "returned_from"
|
|
16079
|
+
| "returned_from_serial_number"
|
|
16080
|
+
| "returned_to_serial_number"
|
|
16081
|
+
>;
|
|
16082
|
+
|
|
16039
16083
|
// ConvertProforma ********************************************************************
|
|
16040
16084
|
export type ConvertProformaDetails = {
|
|
16041
16085
|
activity_type: "convert-proforma";
|
|
@@ -16949,6 +16993,7 @@ export namespace Service {
|
|
|
16949
16993
|
"store-asset-part-unit",
|
|
16950
16994
|
"refund",
|
|
16951
16995
|
"settlement",
|
|
16996
|
+
"void-settlement",
|
|
16952
16997
|
"convert-proforma",
|
|
16953
16998
|
"transfer",
|
|
16954
16999
|
"proforma",
|
|
@@ -17021,6 +17066,7 @@ export namespace Service {
|
|
|
17021
17066
|
| ReturnAssetPartUnitDetails
|
|
17022
17067
|
| StoreAssetPartUnitDetails
|
|
17023
17068
|
| SettlementDetails
|
|
17069
|
+
| VoidSettlementDetails
|
|
17024
17070
|
| ConvertProformaDetails
|
|
17025
17071
|
| TransferDetails
|
|
17026
17072
|
| ReceivingMaterialDetails
|
|
@@ -17457,6 +17503,22 @@ export namespace Service {
|
|
|
17457
17503
|
| "currency"
|
|
17458
17504
|
>;
|
|
17459
17505
|
|
|
17506
|
+
// VoidSettlement ********************************************************************
|
|
17507
|
+
export type VoidSettlementDetails = {
|
|
17508
|
+
activity_type: "void-settlement";
|
|
17509
|
+
} & Pick<
|
|
17510
|
+
Settlement.Data,
|
|
17511
|
+
| "amount"
|
|
17512
|
+
| "serial_number"
|
|
17513
|
+
| "paytime"
|
|
17514
|
+
| "origin"
|
|
17515
|
+
| "payment_type"
|
|
17516
|
+
| "currency"
|
|
17517
|
+
| "returned_from"
|
|
17518
|
+
| "returned_from_serial_number"
|
|
17519
|
+
| "returned_to_serial_number"
|
|
17520
|
+
>;
|
|
17521
|
+
|
|
17460
17522
|
// ConvertProforma ********************************************************************
|
|
17461
17523
|
export type ConvertProformaDetails = {
|
|
17462
17524
|
activity_type: "convert-proforma";
|
|
@@ -19410,6 +19472,7 @@ export namespace Service {
|
|
|
19410
19472
|
slides: {
|
|
19411
19473
|
slide: StringId;
|
|
19412
19474
|
feedback: "positive" | "negative" | "notProvided";
|
|
19475
|
+
zoom: boolean;
|
|
19413
19476
|
duration_on_slide_ms: number;
|
|
19414
19477
|
}[];
|
|
19415
19478
|
}[];
|
|
@@ -19454,6 +19517,7 @@ export namespace Service {
|
|
|
19454
19517
|
slides: {
|
|
19455
19518
|
slide: StringId;
|
|
19456
19519
|
feedback: "positive" | "negative" | "notProvided";
|
|
19520
|
+
zoom: boolean;
|
|
19457
19521
|
duration_on_slide_ms: number;
|
|
19458
19522
|
}[];
|
|
19459
19523
|
}[];
|
|
@@ -19467,9 +19531,16 @@ export namespace Service {
|
|
|
19467
19531
|
| "presentation_play"
|
|
19468
19532
|
| "presentation_end"
|
|
19469
19533
|
| "presentation_cancel";
|
|
19470
|
-
interaction_detail:
|
|
19534
|
+
interaction_detail:
|
|
19535
|
+
| "in"
|
|
19536
|
+
| "out"
|
|
19537
|
+
| "positive"
|
|
19538
|
+
| "negative"
|
|
19539
|
+
| "notProvided"
|
|
19540
|
+
| null; // required for zoom and feedback_given, null for other
|
|
19471
19541
|
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19472
19542
|
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19543
|
+
sequence_name?: string; // optional
|
|
19473
19544
|
}[];
|
|
19474
19545
|
}
|
|
19475
19546
|
|
|
@@ -19484,11 +19555,18 @@ export namespace Service {
|
|
|
19484
19555
|
| "presentation_play"
|
|
19485
19556
|
| "presentation_end"
|
|
19486
19557
|
| "presentation_cancel";
|
|
19487
|
-
interaction_detail:
|
|
19558
|
+
interaction_detail:
|
|
19559
|
+
| "in"
|
|
19560
|
+
| "out"
|
|
19561
|
+
| "positive"
|
|
19562
|
+
| "negative"
|
|
19563
|
+
| "notProvided"
|
|
19564
|
+
| null; // required for zoom and feedback_given, null for other
|
|
19488
19565
|
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19489
19566
|
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19490
19567
|
presentation: StringId;
|
|
19491
|
-
clmFeedBackActivity
|
|
19568
|
+
clmFeedBackActivity?: StringId;
|
|
19569
|
+
sync_id: string;
|
|
19492
19570
|
company_namespace: string[];
|
|
19493
19571
|
createdAt: string;
|
|
19494
19572
|
updatedAt: string;
|