repzo 1.0.203 → 1.0.205
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/types/index.d.ts +46 -48
- package/package.json +1 -1
- package/src/types/index.ts +62 -63
package/lib/types/index.d.ts
CHANGED
|
@@ -2433,6 +2433,8 @@ export declare namespace Service {
|
|
|
2433
2433
|
rep_must_enter_invoice_external_serial_number?: boolean;
|
|
2434
2434
|
rep_can_create_negative_invoices?: boolean;
|
|
2435
2435
|
rep_must_end_day_after_specific_time: boolean;
|
|
2436
|
+
rep_can_upload_media_on_payment?: boolean;
|
|
2437
|
+
rep_can_access_sales_reports?: boolean;
|
|
2436
2438
|
}
|
|
2437
2439
|
interface TargetResults {
|
|
2438
2440
|
totalPoints: number;
|
|
@@ -2683,6 +2685,8 @@ export declare namespace Service {
|
|
|
2683
2685
|
"permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
|
|
2684
2686
|
"permissions.rep_must_end_day_after_specific_time"?: boolean;
|
|
2685
2687
|
"permissions.rep_can_create_negative_invoices"?: boolean;
|
|
2688
|
+
"permissions.rep_can_upload_media_on_payment"?: boolean;
|
|
2689
|
+
"permissions.rep_can_access_sales_reports"?: boolean;
|
|
2686
2690
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
2687
2691
|
"settings.allowable_accuracy"?: number;
|
|
2688
2692
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
@@ -17111,36 +17115,23 @@ export declare namespace Service {
|
|
|
17111
17115
|
presentation: StringId;
|
|
17112
17116
|
presentation_name: string;
|
|
17113
17117
|
duration_on_presentation_ms: number;
|
|
17114
|
-
result:
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
duration_on_slide_ms: number;
|
|
17124
|
-
}
|
|
17125
|
-
];
|
|
17126
|
-
}
|
|
17127
|
-
];
|
|
17128
|
-
interactions: [
|
|
17129
|
-
{
|
|
17130
|
-
interaction_time: number;
|
|
17131
|
-
interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
|
|
17132
|
-
interaction_detail: "in" | "out" | "positive" | "negative" | null;
|
|
17133
|
-
slide?: StringId;
|
|
17134
|
-
sequence?: StringId;
|
|
17135
|
-
}
|
|
17136
|
-
];
|
|
17118
|
+
result: {
|
|
17119
|
+
sequence: StringId;
|
|
17120
|
+
duration_on_sequence_ms: number;
|
|
17121
|
+
slides: {
|
|
17122
|
+
slide: StringId;
|
|
17123
|
+
feedback: "positive" | "negative" | "notProvided";
|
|
17124
|
+
duration_on_slide_ms: number;
|
|
17125
|
+
}[];
|
|
17126
|
+
}[];
|
|
17137
17127
|
}
|
|
17138
17128
|
export interface CreateBody {
|
|
17139
17129
|
geo_tag: GeoTag;
|
|
17140
|
-
geoPoint
|
|
17130
|
+
geoPoint: GeoPoint;
|
|
17141
17131
|
time: number;
|
|
17142
17132
|
tags?: StringId[];
|
|
17143
17133
|
visit_id: string;
|
|
17134
|
+
visit?: StringId;
|
|
17144
17135
|
creator?: {
|
|
17145
17136
|
_id: StringId;
|
|
17146
17137
|
type: "rep";
|
|
@@ -17171,30 +17162,37 @@ export declare namespace Service {
|
|
|
17171
17162
|
completion_status: "ended" | "canceled";
|
|
17172
17163
|
presentation: StringId;
|
|
17173
17164
|
presentation_name: string;
|
|
17174
|
-
duration_on_presentation_ms
|
|
17175
|
-
result?:
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17165
|
+
duration_on_presentation_ms?: number;
|
|
17166
|
+
result?: {
|
|
17167
|
+
sequence: StringId;
|
|
17168
|
+
duration_on_sequence_ms: number;
|
|
17169
|
+
slides: {
|
|
17170
|
+
slide: StringId;
|
|
17171
|
+
feedback: "positive" | "negative" | "notProvided";
|
|
17172
|
+
duration_on_slide_ms: number;
|
|
17173
|
+
}[];
|
|
17174
|
+
}[];
|
|
17175
|
+
interactions: {
|
|
17176
|
+
interaction_time: number;
|
|
17177
|
+
interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
|
|
17178
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | null;
|
|
17179
|
+
slide?: StringId;
|
|
17180
|
+
sequence?: StringId;
|
|
17181
|
+
}[];
|
|
17182
|
+
}
|
|
17183
|
+
export interface CLMActivityInteraction {
|
|
17184
|
+
_id: StringId;
|
|
17185
|
+
interaction_time: number;
|
|
17186
|
+
interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
|
|
17187
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | null;
|
|
17188
|
+
slide?: StringId;
|
|
17189
|
+
sequence?: StringId;
|
|
17190
|
+
presentation: StringId;
|
|
17191
|
+
clmFeedBackActivity: StringId;
|
|
17192
|
+
company_namespace: string[];
|
|
17193
|
+
createdAt: string;
|
|
17194
|
+
updatedAt: string;
|
|
17195
|
+
__v?: number;
|
|
17198
17196
|
}
|
|
17199
17197
|
export type PopulatedDoc = Data & {
|
|
17200
17198
|
client_populated?: Pick<Client.Data, "_id" | "name" | "local_name" | "client_code">[];
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -2816,6 +2816,8 @@ export namespace Service {
|
|
|
2816
2816
|
rep_must_enter_invoice_external_serial_number?: boolean;
|
|
2817
2817
|
rep_can_create_negative_invoices?: boolean;
|
|
2818
2818
|
rep_must_end_day_after_specific_time: boolean;
|
|
2819
|
+
rep_can_upload_media_on_payment?: boolean;
|
|
2820
|
+
rep_can_access_sales_reports?: boolean;
|
|
2819
2821
|
}
|
|
2820
2822
|
interface TargetResults {
|
|
2821
2823
|
totalPoints: number;
|
|
@@ -3089,6 +3091,8 @@ export namespace Service {
|
|
|
3089
3091
|
"permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
|
|
3090
3092
|
"permissions.rep_must_end_day_after_specific_time"?: boolean;
|
|
3091
3093
|
"permissions.rep_can_create_negative_invoices"?: boolean;
|
|
3094
|
+
"permissions.rep_can_upload_media_on_payment"?: boolean;
|
|
3095
|
+
"permissions.rep_can_access_sales_reports"?: boolean;
|
|
3092
3096
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
3093
3097
|
"settings.allowable_accuracy"?: number;
|
|
3094
3098
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
@@ -19363,43 +19367,24 @@ export namespace Service {
|
|
|
19363
19367
|
presentation: StringId;
|
|
19364
19368
|
presentation_name: string;
|
|
19365
19369
|
duration_on_presentation_ms: number;
|
|
19366
|
-
result:
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
duration_on_slide_ms: number;
|
|
19376
|
-
},
|
|
19377
|
-
];
|
|
19378
|
-
},
|
|
19379
|
-
];
|
|
19380
|
-
interactions: [
|
|
19381
|
-
{
|
|
19382
|
-
interaction_time: number;
|
|
19383
|
-
interaction_type:
|
|
19384
|
-
| "slide_landing"
|
|
19385
|
-
| "slide_leaving"
|
|
19386
|
-
| "zoom"
|
|
19387
|
-
| "feedback_given"
|
|
19388
|
-
| "presentation_play"
|
|
19389
|
-
| "presentation_end"
|
|
19390
|
-
| "presentation_cancel";
|
|
19391
|
-
interaction_detail: "in" | "out" | "positive" | "negative" | null; // required for zoom and feedback_given, null for other
|
|
19392
|
-
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19393
|
-
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19394
|
-
},
|
|
19395
|
-
];
|
|
19370
|
+
result: {
|
|
19371
|
+
sequence: StringId;
|
|
19372
|
+
duration_on_sequence_ms: number;
|
|
19373
|
+
slides: {
|
|
19374
|
+
slide: StringId;
|
|
19375
|
+
feedback: "positive" | "negative" | "notProvided";
|
|
19376
|
+
duration_on_slide_ms: number;
|
|
19377
|
+
}[];
|
|
19378
|
+
}[];
|
|
19396
19379
|
}
|
|
19380
|
+
|
|
19397
19381
|
export interface CreateBody {
|
|
19398
19382
|
geo_tag: GeoTag;
|
|
19399
|
-
geoPoint
|
|
19383
|
+
geoPoint: GeoPoint;
|
|
19400
19384
|
time: number;
|
|
19401
19385
|
tags?: StringId[];
|
|
19402
19386
|
visit_id: string;
|
|
19387
|
+
visit?: StringId;
|
|
19403
19388
|
creator?: { _id: StringId; type: "rep"; name?: string; rep?: StringId };
|
|
19404
19389
|
client: StringId;
|
|
19405
19390
|
client_name: string;
|
|
@@ -19422,41 +19407,55 @@ export namespace Service {
|
|
|
19422
19407
|
job_end_time?: number;
|
|
19423
19408
|
job_duration?: number;
|
|
19424
19409
|
company_namespace?: string[];
|
|
19425
|
-
|
|
19426
19410
|
completion_status: "ended" | "canceled";
|
|
19427
19411
|
presentation: StringId;
|
|
19428
19412
|
presentation_name: string;
|
|
19429
|
-
duration_on_presentation_ms
|
|
19430
|
-
result?:
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19413
|
+
duration_on_presentation_ms?: number;
|
|
19414
|
+
result?: {
|
|
19415
|
+
sequence: StringId;
|
|
19416
|
+
duration_on_sequence_ms: number;
|
|
19417
|
+
slides: {
|
|
19418
|
+
slide: StringId;
|
|
19419
|
+
feedback: "positive" | "negative" | "notProvided";
|
|
19420
|
+
duration_on_slide_ms: number;
|
|
19421
|
+
}[];
|
|
19422
|
+
}[];
|
|
19423
|
+
interactions: {
|
|
19424
|
+
interaction_time: number;
|
|
19425
|
+
interaction_type:
|
|
19426
|
+
| "slide_landing"
|
|
19427
|
+
| "slide_leaving"
|
|
19428
|
+
| "zoom"
|
|
19429
|
+
| "feedback_given"
|
|
19430
|
+
| "presentation_play"
|
|
19431
|
+
| "presentation_end"
|
|
19432
|
+
| "presentation_cancel";
|
|
19433
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | null; // required for zoom and feedback_given, null for other
|
|
19434
|
+
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19435
|
+
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19436
|
+
}[];
|
|
19437
|
+
}
|
|
19438
|
+
|
|
19439
|
+
export interface CLMActivityInteraction {
|
|
19440
|
+
_id: StringId;
|
|
19441
|
+
interaction_time: number;
|
|
19442
|
+
interaction_type:
|
|
19443
|
+
| "slide_landing"
|
|
19444
|
+
| "slide_leaving"
|
|
19445
|
+
| "zoom"
|
|
19446
|
+
| "feedback_given"
|
|
19447
|
+
| "presentation_play"
|
|
19448
|
+
| "presentation_end"
|
|
19449
|
+
| "presentation_cancel";
|
|
19450
|
+
interaction_detail: "in" | "out" | "positive" | "negative" | null; // required for zoom and feedback_given, null for other
|
|
19451
|
+
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19452
|
+
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19453
|
+
presentation: StringId;
|
|
19454
|
+
clmFeedBackActivity: StringId;
|
|
19455
|
+
company_namespace: string[];
|
|
19456
|
+
createdAt: string;
|
|
19457
|
+
updatedAt: string;
|
|
19458
|
+
__v?: number;
|
|
19460
19459
|
}
|
|
19461
19460
|
|
|
19462
19461
|
export type PopulatedDoc = Data & {
|