repzo 1.0.42 → 1.0.44

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.
@@ -734,6 +734,7 @@ export declare namespace Service {
734
734
  variants?: Variant.VariantSchema[];
735
735
  defaultVariant?: Variant.VariantSchema;
736
736
  assigned_media?: string | Media.MediaSchema;
737
+ teams?: string[] | Team.TeamSchema[];
737
738
  };
738
739
  type PopulatedKeys =
739
740
  | "category"
@@ -745,7 +746,8 @@ export declare namespace Service {
745
746
  | "measureunit"
746
747
  | "sv_measureUnit"
747
748
  | "brand"
748
- | "product_groups";
749
+ | "product_groups"
750
+ | "teams";
749
751
  export namespace Find {
750
752
  type Params = DefaultPaginationQueryParams & {
751
753
  populatedKeys?: PopulatedKeys[];
@@ -964,6 +966,7 @@ export declare namespace Service {
964
966
  position?: number[] | number;
965
967
  createdAt?: number;
966
968
  updatedAt?: number;
969
+ from_updatedAt?: number;
967
970
  withProduct?: boolean;
968
971
  hasSubCategory?: boolean;
969
972
  isLeaf?: boolean;
@@ -1031,6 +1034,7 @@ export declare namespace Service {
1031
1034
  name?: string[] | string;
1032
1035
  local_name?: string[] | string;
1033
1036
  disabled?: boolean;
1037
+ from_updatedAt?: number;
1034
1038
  createdAt?: number;
1035
1039
  updatedAt?: number;
1036
1040
  [key: string]: any;
@@ -1104,6 +1108,7 @@ export declare namespace Service {
1104
1108
  parent_id?: string[] | string;
1105
1109
  disabled?: boolean;
1106
1110
  position?: number | number[];
1111
+ from_updatedAt?: number;
1107
1112
  createdAt?: number;
1108
1113
  updatedAt?: number;
1109
1114
  withProduct?: boolean;
@@ -1167,6 +1172,7 @@ export declare namespace Service {
1167
1172
  name?: string[] | string;
1168
1173
  local_name?: string[] | string;
1169
1174
  disabled?: boolean;
1175
+ from_updatedAt?: number;
1170
1176
  createdAt?: number;
1171
1177
  updatedAt?: number;
1172
1178
  };
@@ -1340,7 +1346,7 @@ export declare namespace Service {
1340
1346
  }
1341
1347
  }
1342
1348
  namespace MeasureUnitFamily {
1343
- interface MeasureUnitFamilySchema {
1349
+ export interface MeasureUnitFamilySchema {
1344
1350
  _id: string;
1345
1351
  name: string;
1346
1352
  local_name?: string;
@@ -1354,7 +1360,7 @@ export declare namespace Service {
1354
1360
  updatedAt: string;
1355
1361
  __v: number;
1356
1362
  }
1357
- interface MeasureUnitFamilyBody {
1363
+ export interface MeasureUnitFamilyBody {
1358
1364
  name?: string;
1359
1365
  local_name?: string;
1360
1366
  measureunits?: string[];
@@ -1364,31 +1370,37 @@ export declare namespace Service {
1364
1370
  [key: string]: any;
1365
1371
  };
1366
1372
  }
1367
- namespace Find {
1373
+ type PopulatedKeys = "measureunits";
1374
+ type MeasureUnitFamilySchemaWithPopulatedKeys = MeasureUnitFamilySchema & {
1375
+ measureunits_populated?: string[] | MeasureUnit.MeasureUnitSchema[];
1376
+ };
1377
+ export namespace Find {
1368
1378
  type Params = DefaultPaginationQueryParams & {
1369
1379
  _id?: string[] | string;
1370
1380
  search?: string;
1371
1381
  name?: string[] | string;
1372
1382
  local_name?: string[] | string;
1373
1383
  disabled?: boolean;
1384
+ from_updatedAt?: number;
1374
1385
  measureunits?: string[] | string;
1386
+ populatedKeys?: PopulatedKeys[];
1375
1387
  [key: string]: any;
1376
1388
  };
1377
1389
  interface Result extends DefaultPaginationResult {
1378
- data: MeasureUnitFamilySchema[];
1390
+ data: MeasureUnitFamilySchemaWithPopulatedKeys[];
1379
1391
  }
1380
1392
  }
1381
- namespace Get {
1393
+ export namespace Get {
1382
1394
  type ID = string;
1383
1395
  type Result = MeasureUnitFamilySchema;
1384
1396
  }
1385
- namespace Create {
1397
+ export namespace Create {
1386
1398
  interface Body extends MeasureUnitFamilyBody {
1387
1399
  name: string;
1388
1400
  }
1389
1401
  type Result = MeasureUnitFamilySchema;
1390
1402
  }
1391
- namespace Update {
1403
+ export namespace Update {
1392
1404
  type ID = string;
1393
1405
  interface Body extends MeasureUnitFamilyBody {
1394
1406
  _id?: string;
@@ -1398,10 +1410,11 @@ export declare namespace Service {
1398
1410
  }
1399
1411
  type Result = MeasureUnitFamilySchema;
1400
1412
  }
1401
- namespace Remove {
1413
+ export namespace Remove {
1402
1414
  type ID = string;
1403
1415
  type Result = MeasureUnitFamilySchema;
1404
1416
  }
1417
+ export {};
1405
1418
  }
1406
1419
  namespace Media {
1407
1420
  type MediaType =
@@ -1682,6 +1695,7 @@ export declare namespace Service {
1682
1695
  rep_can_add_calendar: boolean;
1683
1696
  rep_can_edit_calendar: boolean;
1684
1697
  rep_can_skip_photo_tag: boolean;
1698
+ rep_can_edit_others_calendar: boolean;
1685
1699
  rep_can_edit_product_price?: boolean;
1686
1700
  rep_must_add_client_with_location?: boolean;
1687
1701
  rep_can_access_shared_history?: boolean;
@@ -1908,6 +1922,7 @@ export declare namespace Service {
1908
1922
  "permissions.rep_can_edit_client"?: boolean;
1909
1923
  "permissions.rep_can_add_calendar"?: boolean;
1910
1924
  "permissions.rep_can_edit_calendar"?: boolean;
1925
+ "permissions.rep_can_edit_others_calendar"?: boolean;
1911
1926
  "permissions.rep_can_skip_photo_tag"?: boolean;
1912
1927
  "permissions.rep_can_edit_product_price"?: boolean;
1913
1928
  "permissions.rep_must_add_client_with_location"?: boolean;
@@ -2000,7 +2015,7 @@ export declare namespace Service {
2000
2015
  withStatus?: boolean;
2001
2016
  };
2002
2017
  interface Result extends DefaultPaginationResult {
2003
- data: (RepSchema & {
2018
+ data: (RepWithPopulatedKeysSchema & {
2004
2019
  status?:
2005
2020
  | "Inactive"
2006
2021
  | "Ended a day"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -733,6 +733,7 @@ export namespace Service {
733
733
  variants?: Variant.VariantSchema[];
734
734
  defaultVariant?: Variant.VariantSchema;
735
735
  assigned_media?: string | Media.MediaSchema;
736
+ teams?: string[] | Team.TeamSchema[];
736
737
  };
737
738
 
738
739
  type PopulatedKeys =
@@ -745,7 +746,8 @@ export namespace Service {
745
746
  | "measureunit"
746
747
  | "sv_measureUnit"
747
748
  | "brand"
748
- | "product_groups";
749
+ | "product_groups"
750
+ | "teams";
749
751
 
750
752
  export namespace Find {
751
753
  export type Params = DefaultPaginationQueryParams & {
@@ -967,6 +969,7 @@ export namespace Service {
967
969
  position?: number[] | number;
968
970
  createdAt?: number;
969
971
  updatedAt?: number;
972
+ from_updatedAt?: number;
970
973
  withProduct?: boolean;
971
974
  hasSubCategory?: boolean;
972
975
  isLeaf?: boolean;
@@ -1036,6 +1039,7 @@ export namespace Service {
1036
1039
  name?: string[] | string;
1037
1040
  local_name?: string[] | string;
1038
1041
  disabled?: boolean;
1042
+ from_updatedAt?: number;
1039
1043
  createdAt?: number;
1040
1044
  updatedAt?: number;
1041
1045
  [key: string]: any; // integration_meta.
@@ -1112,6 +1116,7 @@ export namespace Service {
1112
1116
  parent_id?: string[] | string;
1113
1117
  disabled?: boolean;
1114
1118
  position?: number | number[];
1119
+ from_updatedAt?: number;
1115
1120
  createdAt?: number;
1116
1121
  updatedAt?: number;
1117
1122
  withProduct?: boolean;
@@ -1180,6 +1185,7 @@ export namespace Service {
1180
1185
  name?: string[] | string;
1181
1186
  local_name?: string[] | string;
1182
1187
  disabled?: boolean;
1188
+ from_updatedAt?: number;
1183
1189
  createdAt?: number;
1184
1190
  updatedAt?: number;
1185
1191
  };
@@ -1381,7 +1387,11 @@ export namespace Service {
1381
1387
  disabled?: boolean;
1382
1388
  integration_meta?: { [key: string]: any };
1383
1389
  }
1390
+ type PopulatedKeys = "measureunits";
1384
1391
 
1392
+ type MeasureUnitFamilySchemaWithPopulatedKeys = MeasureUnitFamilySchema & {
1393
+ measureunits_populated?: string[] | MeasureUnit.MeasureUnitSchema[];
1394
+ };
1385
1395
  export namespace Find {
1386
1396
  export type Params = DefaultPaginationQueryParams & {
1387
1397
  _id?: string[] | string;
@@ -1389,11 +1399,13 @@ export namespace Service {
1389
1399
  name?: string[] | string;
1390
1400
  local_name?: string[] | string;
1391
1401
  disabled?: boolean;
1402
+ from_updatedAt?: number;
1392
1403
  measureunits?: string[] | string;
1404
+ populatedKeys?: PopulatedKeys[];
1393
1405
  [key: string]: any; // integration_meta.
1394
1406
  };
1395
1407
  export interface Result extends DefaultPaginationResult {
1396
- data: MeasureUnitFamilySchema[];
1408
+ data: MeasureUnitFamilySchemaWithPopulatedKeys[];
1397
1409
  }
1398
1410
  }
1399
1411
 
@@ -1719,6 +1731,7 @@ export namespace Service {
1719
1731
  rep_can_add_calendar: boolean;
1720
1732
  rep_can_edit_calendar: boolean;
1721
1733
  rep_can_skip_photo_tag: boolean;
1734
+ rep_can_edit_others_calendar: boolean;
1722
1735
  rep_can_edit_product_price?: boolean;
1723
1736
  rep_must_add_client_with_location?: boolean;
1724
1737
  rep_can_access_shared_history?: boolean;
@@ -1940,6 +1953,7 @@ export namespace Service {
1940
1953
  "permissions.rep_can_edit_client"?: boolean;
1941
1954
  "permissions.rep_can_add_calendar"?: boolean;
1942
1955
  "permissions.rep_can_edit_calendar"?: boolean;
1956
+ "permissions.rep_can_edit_others_calendar"?: boolean;
1943
1957
  "permissions.rep_can_skip_photo_tag"?: boolean;
1944
1958
  "permissions.rep_can_edit_product_price"?: boolean;
1945
1959
  "permissions.rep_must_add_client_with_location"?: boolean;
@@ -2032,7 +2046,7 @@ export namespace Service {
2032
2046
  withStatus?: boolean;
2033
2047
  };
2034
2048
  export interface Result extends DefaultPaginationResult {
2035
- data: (RepSchema & {
2049
+ data: (RepWithPopulatedKeysSchema & {
2036
2050
  status?:
2037
2051
  | "Inactive"
2038
2052
  | "Ended a day"