repzo 1.0.205 → 1.0.207
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 +31 -3
- package/package.json +1 -1
- package/src/types/index.ts +38 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -392,6 +392,7 @@ export declare namespace Service {
|
|
|
392
392
|
last_login_time?: number;
|
|
393
393
|
assigned_forms_v2_templates?: StringId[];
|
|
394
394
|
retail_execution_templates?: StringId[];
|
|
395
|
+
assigned_clm_presentations?: StringId[];
|
|
395
396
|
last_sales_invoice_time?: number;
|
|
396
397
|
last_sales_proforma_time?: number;
|
|
397
398
|
media?: StringId[];
|
|
@@ -474,13 +475,14 @@ export declare namespace Service {
|
|
|
474
475
|
last_login_time?: number;
|
|
475
476
|
assigned_forms_v2_templates?: StringId[];
|
|
476
477
|
retail_execution_templates?: StringId[];
|
|
478
|
+
assigned_clm_presentations?: StringId[];
|
|
477
479
|
last_sales_invoice_time?: number;
|
|
478
480
|
last_sales_proforma_time?: number;
|
|
479
481
|
media?: StringId[];
|
|
480
482
|
cover_photo?: StringId;
|
|
481
483
|
sales?: Sales;
|
|
482
484
|
}
|
|
483
|
-
export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "status" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates" | "media" | "cover_photo" | "sales.logo_media";
|
|
485
|
+
export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "status" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates" | "assigned_clm_presentations" | "media" | "cover_photo" | "sales.logo_media";
|
|
484
486
|
type ClientSchemaWithPopulatedKeys = ClientSchema & {
|
|
485
487
|
assigned_products?: StringId[] | Pick<Product.ProductSchema, "_id" | "name">[];
|
|
486
488
|
assigned_product_groups?: StringId | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
@@ -495,6 +497,7 @@ export declare namespace Service {
|
|
|
495
497
|
chain?: StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code" | "local_name">;
|
|
496
498
|
channel?: StringId | Channel.ChannelSchema;
|
|
497
499
|
assigned_forms_v2_templates?: StringId[] | Pick<FormPopulated, "_id" | "name">[];
|
|
500
|
+
assigned_clm_presentations?: StringId[] | Pick<CLMPresentation.Data, "_id" | "name">[];
|
|
498
501
|
retail_execution_templates?: StringId[] | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
|
|
499
502
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
500
503
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
@@ -2510,6 +2513,8 @@ export declare namespace Service {
|
|
|
2510
2513
|
assigned_forms_v2?: string[];
|
|
2511
2514
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2512
2515
|
assigned_retail_execution_templates?: string[];
|
|
2516
|
+
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2517
|
+
assigned_clm_presentations?: string[];
|
|
2513
2518
|
customFields?: {
|
|
2514
2519
|
[key: string]: boolean | string | number | StringId;
|
|
2515
2520
|
};
|
|
@@ -2568,6 +2573,8 @@ export declare namespace Service {
|
|
|
2568
2573
|
assigned_forms_v2?: string[];
|
|
2569
2574
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2570
2575
|
assigned_retail_execution_templates?: string[];
|
|
2576
|
+
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2577
|
+
assigned_clm_presentations?: string[];
|
|
2571
2578
|
customFields?: {
|
|
2572
2579
|
[key: string]: boolean | string | number | StringId;
|
|
2573
2580
|
};
|
|
@@ -2578,7 +2585,7 @@ export declare namespace Service {
|
|
|
2578
2585
|
handle_credit_limit?: boolean;
|
|
2579
2586
|
credit_limit?: number;
|
|
2580
2587
|
}
|
|
2581
|
-
type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "warehouse";
|
|
2588
|
+
type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "assigned_clm_presentations" | "warehouse";
|
|
2582
2589
|
export type RepWithPopulatedKeysSchema = RepSchema & {
|
|
2583
2590
|
lines?: string[] | Line.LineSchema[];
|
|
2584
2591
|
job_category?: string[] | JobCategory.JobCategorySchema[];
|
|
@@ -2711,6 +2718,8 @@ export declare namespace Service {
|
|
|
2711
2718
|
assigned_forms_v2?: string | string[];
|
|
2712
2719
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2713
2720
|
assigned_retail_execution_templates?: string | string[];
|
|
2721
|
+
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2722
|
+
assigned_clm_presentations?: string | string[];
|
|
2714
2723
|
media?: string | string[];
|
|
2715
2724
|
cover_photo?: string;
|
|
2716
2725
|
last_login_time?: number;
|
|
@@ -16884,6 +16893,11 @@ export declare namespace Service {
|
|
|
16884
16893
|
export type UpdateBody = Partial<Data>;
|
|
16885
16894
|
export type PopulatedDoc = Data & {
|
|
16886
16895
|
teams_populated?: Pick<Team.TeamSchema, "name" | "_id">[];
|
|
16896
|
+
sequences_count?: number;
|
|
16897
|
+
slides_count?: number;
|
|
16898
|
+
cover_slide?: PopulatedMediaStorage & {
|
|
16899
|
+
ContentLength?: number;
|
|
16900
|
+
};
|
|
16887
16901
|
};
|
|
16888
16902
|
type PopulatedKeys = "teams";
|
|
16889
16903
|
type SortingKeys = "_id" | "createdAt" | "updatedAt";
|
|
@@ -16903,6 +16917,8 @@ export declare namespace Service {
|
|
|
16903
16917
|
to_updatedAt?: number;
|
|
16904
16918
|
from_createdAt?: number;
|
|
16905
16919
|
to_createdAt?: number;
|
|
16920
|
+
with_counts?: boolean;
|
|
16921
|
+
with_cover?: boolean;
|
|
16906
16922
|
};
|
|
16907
16923
|
interface Result extends DefaultPaginationResult {
|
|
16908
16924
|
data: PopulatedDoc[];
|
|
@@ -16912,6 +16928,8 @@ export declare namespace Service {
|
|
|
16912
16928
|
type ID = string;
|
|
16913
16929
|
type Params = {
|
|
16914
16930
|
populatedKeys?: PopulatedKeys[];
|
|
16931
|
+
with_counts?: boolean;
|
|
16932
|
+
with_cover?: boolean;
|
|
16915
16933
|
};
|
|
16916
16934
|
type Result = PopulatedDoc;
|
|
16917
16935
|
}
|
|
@@ -16934,6 +16952,7 @@ export declare namespace Service {
|
|
|
16934
16952
|
export interface Data {
|
|
16935
16953
|
_id: StringId;
|
|
16936
16954
|
company_namespace: string[];
|
|
16955
|
+
name: string;
|
|
16937
16956
|
presentation: StringId;
|
|
16938
16957
|
product: StringId;
|
|
16939
16958
|
disabled: boolean;
|
|
@@ -16944,6 +16963,7 @@ export declare namespace Service {
|
|
|
16944
16963
|
}
|
|
16945
16964
|
export interface CreateBody {
|
|
16946
16965
|
company_namespace?: string[];
|
|
16966
|
+
name: string;
|
|
16947
16967
|
presentation: StringId;
|
|
16948
16968
|
product: StringId;
|
|
16949
16969
|
disabled?: boolean;
|
|
@@ -17004,11 +17024,13 @@ export declare namespace Service {
|
|
|
17004
17024
|
_id: StringId;
|
|
17005
17025
|
company_namespace: string[];
|
|
17006
17026
|
sequence: StringId;
|
|
17027
|
+
presentation: StringId;
|
|
17007
17028
|
photo_media: StringId;
|
|
17008
17029
|
is_book_mark?: boolean;
|
|
17009
17030
|
book_mark_key_message?: string;
|
|
17010
17031
|
disabled: boolean;
|
|
17011
17032
|
position: number;
|
|
17033
|
+
is_cover?: boolean;
|
|
17012
17034
|
createdAt: string;
|
|
17013
17035
|
updatedAt: string;
|
|
17014
17036
|
__v?: number;
|
|
@@ -17016,16 +17038,20 @@ export declare namespace Service {
|
|
|
17016
17038
|
export interface CreateBody {
|
|
17017
17039
|
company_namespace?: string[];
|
|
17018
17040
|
sequence: StringId;
|
|
17041
|
+
presentation?: StringId;
|
|
17019
17042
|
photo_media: StringId;
|
|
17020
17043
|
is_book_mark?: boolean;
|
|
17021
17044
|
book_mark_key_message?: string;
|
|
17022
17045
|
disabled?: boolean;
|
|
17023
17046
|
position: number;
|
|
17047
|
+
is_cover?: boolean;
|
|
17024
17048
|
}
|
|
17025
17049
|
export type UpdateBody = Partial<Data>;
|
|
17026
17050
|
export type PopulatedDoc = Data & {
|
|
17027
17051
|
sequence_populated?: Pick<CLMSequence.Data, "position" | "_id" | "product" | "presentation">[];
|
|
17028
|
-
photo_media_populated?: PopulatedMediaStorage
|
|
17052
|
+
photo_media_populated?: PopulatedMediaStorage & {
|
|
17053
|
+
ContentLength?: number;
|
|
17054
|
+
};
|
|
17029
17055
|
};
|
|
17030
17056
|
type PopulatedKeys = "sequence" | "photo_media";
|
|
17031
17057
|
type SortingKeys = "_id" | "position" | "is_book_mark";
|
|
@@ -17039,12 +17065,14 @@ export declare namespace Service {
|
|
|
17039
17065
|
_id?: StringId | StringId[];
|
|
17040
17066
|
search?: string;
|
|
17041
17067
|
sequence?: StringId | StringId[];
|
|
17068
|
+
presentation?: StringId | StringId[];
|
|
17042
17069
|
is_book_mark?: boolean | boolean[];
|
|
17043
17070
|
disabled?: boolean;
|
|
17044
17071
|
from_updatedAt?: number;
|
|
17045
17072
|
to_updatedAt?: number;
|
|
17046
17073
|
from_createdAt?: number;
|
|
17047
17074
|
to_createdAt?: number;
|
|
17075
|
+
is_cover?: boolean;
|
|
17048
17076
|
};
|
|
17049
17077
|
interface Result extends DefaultPaginationResult {
|
|
17050
17078
|
data: PopulatedDoc[];
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -551,6 +551,7 @@ export namespace Service {
|
|
|
551
551
|
last_login_time?: number;
|
|
552
552
|
assigned_forms_v2_templates?: StringId[];
|
|
553
553
|
retail_execution_templates?: StringId[];
|
|
554
|
+
assigned_clm_presentations?: StringId[];
|
|
554
555
|
last_sales_invoice_time?: number;
|
|
555
556
|
last_sales_proforma_time?: number;
|
|
556
557
|
media?: StringId[];
|
|
@@ -630,6 +631,7 @@ export namespace Service {
|
|
|
630
631
|
last_login_time?: number;
|
|
631
632
|
assigned_forms_v2_templates?: StringId[];
|
|
632
633
|
retail_execution_templates?: StringId[];
|
|
634
|
+
assigned_clm_presentations?: StringId[];
|
|
633
635
|
last_sales_invoice_time?: number;
|
|
634
636
|
last_sales_proforma_time?: number;
|
|
635
637
|
media?: StringId[];
|
|
@@ -655,6 +657,7 @@ export namespace Service {
|
|
|
655
657
|
| "contacts"
|
|
656
658
|
| "retail_execution_templates"
|
|
657
659
|
| "assigned_forms_v2_templates"
|
|
660
|
+
| "assigned_clm_presentations"
|
|
658
661
|
| "media"
|
|
659
662
|
| "cover_photo"
|
|
660
663
|
| "sales.logo_media";
|
|
@@ -686,6 +689,9 @@ export namespace Service {
|
|
|
686
689
|
assigned_forms_v2_templates?:
|
|
687
690
|
| StringId[]
|
|
688
691
|
| Pick<FormPopulated, "_id" | "name">[];
|
|
692
|
+
assigned_clm_presentations?:
|
|
693
|
+
| StringId[]
|
|
694
|
+
| Pick<CLMPresentation.Data, "_id" | "name">[];
|
|
689
695
|
retail_execution_templates?:
|
|
690
696
|
| StringId[]
|
|
691
697
|
| Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
|
|
@@ -2895,6 +2901,8 @@ export namespace Service {
|
|
|
2895
2901
|
| "assigned"
|
|
2896
2902
|
| "none";
|
|
2897
2903
|
assigned_retail_execution_templates?: string[];
|
|
2904
|
+
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2905
|
+
assigned_clm_presentations?: string[];
|
|
2898
2906
|
customFields?: { [key: string]: boolean | string | number | StringId };
|
|
2899
2907
|
media?: string[];
|
|
2900
2908
|
cover_photo?: string;
|
|
@@ -2953,6 +2961,8 @@ export namespace Service {
|
|
|
2953
2961
|
| "assigned"
|
|
2954
2962
|
| "none";
|
|
2955
2963
|
assigned_retail_execution_templates?: string[];
|
|
2964
|
+
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2965
|
+
assigned_clm_presentations?: string[];
|
|
2956
2966
|
customFields?: { [key: string]: boolean | string | number | StringId };
|
|
2957
2967
|
media?: string[];
|
|
2958
2968
|
cover_photo?: string;
|
|
@@ -2972,6 +2982,7 @@ export namespace Service {
|
|
|
2972
2982
|
| "cover_photo"
|
|
2973
2983
|
| "assigned_plan"
|
|
2974
2984
|
| "assigned_retail_execution_templates"
|
|
2985
|
+
| "assigned_clm_presentations"
|
|
2975
2986
|
| "warehouse";
|
|
2976
2987
|
|
|
2977
2988
|
export type RepWithPopulatedKeysSchema = RepSchema & {
|
|
@@ -3124,6 +3135,12 @@ export namespace Service {
|
|
|
3124
3135
|
| "assigned"
|
|
3125
3136
|
| "none";
|
|
3126
3137
|
assigned_retail_execution_templates?: string | string[];
|
|
3138
|
+
clm_presentation_option?:
|
|
3139
|
+
| "all"
|
|
3140
|
+
| "client_assigned"
|
|
3141
|
+
| "assigned"
|
|
3142
|
+
| "none";
|
|
3143
|
+
assigned_clm_presentations?: string | string[];
|
|
3127
3144
|
media?: string | string[];
|
|
3128
3145
|
cover_photo?: string;
|
|
3129
3146
|
last_login_time?: number;
|
|
@@ -19141,6 +19158,9 @@ export namespace Service {
|
|
|
19141
19158
|
|
|
19142
19159
|
export type PopulatedDoc = Data & {
|
|
19143
19160
|
teams_populated?: Pick<Team.TeamSchema, "name" | "_id">[];
|
|
19161
|
+
sequences_count?: number;
|
|
19162
|
+
slides_count?: number;
|
|
19163
|
+
cover_slide?: PopulatedMediaStorage & { ContentLength?: number };
|
|
19144
19164
|
};
|
|
19145
19165
|
|
|
19146
19166
|
type PopulatedKeys = "teams";
|
|
@@ -19159,6 +19179,8 @@ export namespace Service {
|
|
|
19159
19179
|
to_updatedAt?: number;
|
|
19160
19180
|
from_createdAt?: number;
|
|
19161
19181
|
to_createdAt?: number;
|
|
19182
|
+
with_counts?: boolean;
|
|
19183
|
+
with_cover?: boolean;
|
|
19162
19184
|
};
|
|
19163
19185
|
export interface Result extends DefaultPaginationResult {
|
|
19164
19186
|
data: PopulatedDoc[];
|
|
@@ -19166,7 +19188,11 @@ export namespace Service {
|
|
|
19166
19188
|
}
|
|
19167
19189
|
export namespace Get {
|
|
19168
19190
|
export type ID = string;
|
|
19169
|
-
export type Params = {
|
|
19191
|
+
export type Params = {
|
|
19192
|
+
populatedKeys?: PopulatedKeys[];
|
|
19193
|
+
with_counts?: boolean;
|
|
19194
|
+
with_cover?: boolean;
|
|
19195
|
+
};
|
|
19170
19196
|
export type Result = PopulatedDoc;
|
|
19171
19197
|
}
|
|
19172
19198
|
export namespace Create {
|
|
@@ -19188,6 +19214,7 @@ export namespace Service {
|
|
|
19188
19214
|
export interface Data {
|
|
19189
19215
|
_id: StringId;
|
|
19190
19216
|
company_namespace: string[];
|
|
19217
|
+
name: string;
|
|
19191
19218
|
presentation: StringId;
|
|
19192
19219
|
product: StringId;
|
|
19193
19220
|
disabled: boolean;
|
|
@@ -19198,6 +19225,7 @@ export namespace Service {
|
|
|
19198
19225
|
}
|
|
19199
19226
|
export interface CreateBody {
|
|
19200
19227
|
company_namespace?: string[];
|
|
19228
|
+
name: string;
|
|
19201
19229
|
presentation: StringId;
|
|
19202
19230
|
product: StringId;
|
|
19203
19231
|
disabled?: boolean;
|
|
@@ -19259,11 +19287,13 @@ export namespace Service {
|
|
|
19259
19287
|
_id: StringId;
|
|
19260
19288
|
company_namespace: string[];
|
|
19261
19289
|
sequence: StringId;
|
|
19290
|
+
presentation: StringId;
|
|
19262
19291
|
photo_media: StringId;
|
|
19263
19292
|
is_book_mark?: boolean;
|
|
19264
19293
|
book_mark_key_message?: string;
|
|
19265
19294
|
disabled: boolean;
|
|
19266
19295
|
position: number;
|
|
19296
|
+
is_cover?: boolean;
|
|
19267
19297
|
createdAt: string;
|
|
19268
19298
|
updatedAt: string;
|
|
19269
19299
|
__v?: number;
|
|
@@ -19271,11 +19301,13 @@ export namespace Service {
|
|
|
19271
19301
|
export interface CreateBody {
|
|
19272
19302
|
company_namespace?: string[];
|
|
19273
19303
|
sequence: StringId;
|
|
19304
|
+
presentation?: StringId;
|
|
19274
19305
|
photo_media: StringId;
|
|
19275
19306
|
is_book_mark?: boolean;
|
|
19276
19307
|
book_mark_key_message?: string;
|
|
19277
19308
|
disabled?: boolean;
|
|
19278
19309
|
position: number;
|
|
19310
|
+
is_cover?: boolean;
|
|
19279
19311
|
}
|
|
19280
19312
|
export type UpdateBody = Partial<Data>;
|
|
19281
19313
|
|
|
@@ -19284,7 +19316,9 @@ export namespace Service {
|
|
|
19284
19316
|
CLMSequence.Data,
|
|
19285
19317
|
"position" | "_id" | "product" | "presentation"
|
|
19286
19318
|
>[];
|
|
19287
|
-
photo_media_populated?: PopulatedMediaStorage
|
|
19319
|
+
photo_media_populated?: PopulatedMediaStorage & {
|
|
19320
|
+
ContentLength?: number;
|
|
19321
|
+
};
|
|
19288
19322
|
};
|
|
19289
19323
|
|
|
19290
19324
|
type PopulatedKeys = "sequence" | "photo_media";
|
|
@@ -19297,12 +19331,14 @@ export namespace Service {
|
|
|
19297
19331
|
_id?: StringId | StringId[];
|
|
19298
19332
|
search?: string;
|
|
19299
19333
|
sequence?: StringId | StringId[];
|
|
19334
|
+
presentation?: StringId | StringId[];
|
|
19300
19335
|
is_book_mark?: boolean | boolean[];
|
|
19301
19336
|
disabled?: boolean;
|
|
19302
19337
|
from_updatedAt?: number;
|
|
19303
19338
|
to_updatedAt?: number;
|
|
19304
19339
|
from_createdAt?: number;
|
|
19305
19340
|
to_createdAt?: number;
|
|
19341
|
+
is_cover?: boolean;
|
|
19306
19342
|
};
|
|
19307
19343
|
export interface Result extends DefaultPaginationResult {
|
|
19308
19344
|
data: PopulatedDoc[];
|