repzo 1.0.251 → 1.0.253

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 CHANGED
@@ -126,6 +126,9 @@ export declare const end_points: {
126
126
  readonly LATEST_SERIAL: "latest-serial";
127
127
  readonly FORM_V2: "form-v2";
128
128
  readonly ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result";
129
+ readonly LINE_CLASSIFICATION: "line-classification";
130
+ readonly LINE: "line";
131
+ readonly CLIENT_LINE: "client-line";
129
132
  };
130
133
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
131
134
  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", "pdfMergeField"];
@@ -267,6 +270,9 @@ export default class Repzo {
267
270
  readonly LATEST_SERIAL: "latest-serial";
268
271
  readonly FORM_V2: "form-v2";
269
272
  readonly ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result";
273
+ readonly LINE_CLASSIFICATION: "line-classification";
274
+ readonly LINE: "line";
275
+ readonly CLIENT_LINE: "client-line";
270
276
  };
271
277
  private _retryRequest;
272
278
  private _fetch;
@@ -1233,4 +1239,30 @@ export default class Repzo {
1233
1239
  create: (body: Service.ActivityFormV2Result.Create.Body) => Promise<Service.ActivityFormV2Result.Create.Result>;
1234
1240
  update: (id: Service.ActivityFormV2Result.Update.ID, body: Service.ActivityFormV2Result.Update.Body) => Promise<Service.ActivityFormV2Result.Update.Result>;
1235
1241
  };
1242
+ lineClassification: {
1243
+ _path: "line-classification";
1244
+ find: (params?: Service.LineClassification.Find.Params) => Promise<Service.LineClassification.Find.Result>;
1245
+ get: (id: Service.LineClassification.Get.ID, params?: Service.LineClassification.Get.Params) => Promise<Service.LineClassification.Get.Result>;
1246
+ create: (body: Service.LineClassification.Create.Body) => Promise<Service.LineClassification.Create.Result>;
1247
+ update: (id: Service.LineClassification.Update.ID, body: Service.LineClassification.Update.Body) => Promise<Service.LineClassification.Update.Result>;
1248
+ patch: (body: Service.LineClassification.Patch.Body) => Promise<Service.LineClassification.Patch.Result>;
1249
+ remove: (id: Service.LineClassification.Update.ID) => Promise<Service.LineClassification.Remove.Result>;
1250
+ };
1251
+ line: {
1252
+ _path: "line";
1253
+ find: (params?: Service.Line.Find.Params) => Promise<Service.Line.Find.Result>;
1254
+ get: (id: Service.Line.Get.ID, params?: Service.Line.Get.Params) => Promise<Service.Line.Get.Result>;
1255
+ create: (body: Service.Line.Create.Body) => Promise<Service.Line.Create.Result>;
1256
+ update: (id: Service.Line.Update.ID, body: Service.Line.Update.Body) => Promise<Service.Line.Update.Result>;
1257
+ patch: (body: Service.Line.Patch.Body) => Promise<Service.Line.Patch.Result>;
1258
+ remove: (id: Service.Line.Update.ID) => Promise<Service.Line.Remove.Result>;
1259
+ };
1260
+ clientLine: {
1261
+ _path: "client-line";
1262
+ find: (params?: Service.ClientLine.Find.Params) => Promise<Service.ClientLine.Find.Result>;
1263
+ get: (id: Service.ClientLine.Get.ID, params?: Service.ClientLine.Get.Params) => Promise<Service.ClientLine.Get.Result>;
1264
+ create: (body: Service.ClientLine.Create.Body) => Promise<Service.ClientLine.Create.Result>;
1265
+ update: (id: Service.ClientLine.Update.ID, body: Service.ClientLine.Update.Body) => Promise<Service.ClientLine.Update.Result>;
1266
+ remove: (id: Service.ClientLine.Update.ID) => Promise<Service.ClientLine.Remove.Result>;
1267
+ };
1236
1268
  }
package/lib/index.js CHANGED
@@ -128,6 +128,9 @@ export const end_points = {
128
128
  LATEST_SERIAL: "latest-serial",
129
129
  FORM_V2: "form-v2",
130
130
  ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result",
131
+ LINE_CLASSIFICATION: "line-classification",
132
+ LINE: "line",
133
+ CLIENT_LINE: "client-line",
131
134
  };
132
135
  export const availableService = [
133
136
  "client",
@@ -2534,6 +2537,80 @@ class Repzo {
2534
2537
  return res;
2535
2538
  },
2536
2539
  };
2540
+ this.lineClassification = {
2541
+ _path: Repzo._end_points.LINE_CLASSIFICATION,
2542
+ find: async (params) => {
2543
+ let res = await this._fetch(this.svAPIEndpoint, this.lineClassification._path, params);
2544
+ return res;
2545
+ },
2546
+ get: async (id, params) => {
2547
+ return await this._fetch(this.svAPIEndpoint, this.lineClassification._path + `/${id}`, params);
2548
+ },
2549
+ create: async (body) => {
2550
+ let res = await this._create(this.svAPIEndpoint, this.lineClassification._path, body);
2551
+ return res;
2552
+ },
2553
+ update: async (id, body) => {
2554
+ let res = await this._update(this.svAPIEndpoint, this.lineClassification._path + `/${id}`, body);
2555
+ return res;
2556
+ },
2557
+ patch: async (body) => {
2558
+ let res = await this._patch(this.svAPIEndpoint, this.lineClassification._path, body);
2559
+ return res;
2560
+ },
2561
+ remove: async (id) => {
2562
+ let res = await this._delete(this.svAPIEndpoint, this.lineClassification._path + `/${id}`);
2563
+ return res;
2564
+ },
2565
+ };
2566
+ this.line = {
2567
+ _path: Repzo._end_points.LINE,
2568
+ find: async (params) => {
2569
+ let res = await this._fetch(this.svAPIEndpoint, this.line._path, params);
2570
+ return res;
2571
+ },
2572
+ get: async (id, params) => {
2573
+ return await this._fetch(this.svAPIEndpoint, this.line._path + `/${id}`, params);
2574
+ },
2575
+ create: async (body) => {
2576
+ let res = await this._create(this.svAPIEndpoint, this.line._path, body);
2577
+ return res;
2578
+ },
2579
+ update: async (id, body) => {
2580
+ let res = await this._update(this.svAPIEndpoint, this.line._path + `/${id}`, body);
2581
+ return res;
2582
+ },
2583
+ patch: async (body) => {
2584
+ let res = await this._patch(this.svAPIEndpoint, this.line._path, body);
2585
+ return res;
2586
+ },
2587
+ remove: async (id) => {
2588
+ let res = await this._delete(this.svAPIEndpoint, this.line._path + `/${id}`);
2589
+ return res;
2590
+ },
2591
+ };
2592
+ this.clientLine = {
2593
+ _path: Repzo._end_points.CLIENT_LINE,
2594
+ find: async (params) => {
2595
+ let res = await this._fetch(this.svAPIEndpoint, this.clientLine._path, params);
2596
+ return res;
2597
+ },
2598
+ get: async (id, params) => {
2599
+ return await this._fetch(this.svAPIEndpoint, this.clientLine._path + `/${id}`, params);
2600
+ },
2601
+ create: async (body) => {
2602
+ let res = await this._create(this.svAPIEndpoint, this.clientLine._path, body);
2603
+ return res;
2604
+ },
2605
+ update: async (id, body) => {
2606
+ let res = await this._update(this.svAPIEndpoint, this.clientLine._path + `/${id}`, body);
2607
+ return res;
2608
+ },
2609
+ remove: async (id) => {
2610
+ let res = await this._delete(this.svAPIEndpoint, this.clientLine._path + `/${id}`);
2611
+ return res;
2612
+ },
2613
+ };
2537
2614
  this.svAPIEndpoint =
2538
2615
  !options?.env || options?.env == "production"
2539
2616
  ? "https://sv.api.repzo.me"
@@ -1311,6 +1311,7 @@ export declare namespace Service {
1311
1311
  [key: string]: any;
1312
1312
  };
1313
1313
  }
1314
+ type Data = MeasureUnitSchema;
1314
1315
  namespace Find {
1315
1316
  type Params = DefaultPaginationQueryParams & {
1316
1317
  _id?: string[] | string;
@@ -9310,7 +9311,7 @@ export declare namespace Service {
9310
9311
  */
9311
9312
  readQuery: ReadQuery[];
9312
9313
  }
9313
- interface UpdateBody {
9314
+ export interface UpdateBody {
9314
9315
  /**
9315
9316
  * @type {string} name of model (an enum value) as specified in patch-filter schema
9316
9317
  */
@@ -12508,6 +12509,7 @@ export declare namespace Service {
12508
12509
  business_day?: string;
12509
12510
  client?: StringId;
12510
12511
  route?: StringId;
12512
+ original_doc?: ClientLine.Data[];
12511
12513
  [ket: string]: any;
12512
12514
  };
12513
12515
  history?: {
@@ -17895,6 +17897,188 @@ export declare namespace Service {
17895
17897
  }
17896
17898
  export {};
17897
17899
  }
17900
+ namespace LineClassification {
17901
+ interface Data {
17902
+ _id: StringId;
17903
+ name: string;
17904
+ local_name?: string;
17905
+ disabled: boolean;
17906
+ company_namespace: string[];
17907
+ createdAt: string;
17908
+ updatedAt: string;
17909
+ __v?: number;
17910
+ }
17911
+ interface CreateBody {
17912
+ company_namespace?: string[];
17913
+ name: string;
17914
+ local_name?: string;
17915
+ disabled?: boolean;
17916
+ }
17917
+ type UpdateBody = Partial<Data>;
17918
+ namespace Find {
17919
+ type Params = DefaultPaginationQueryParams & {
17920
+ search?: string;
17921
+ _id?: StringId | StringId[];
17922
+ disabled?: boolean | boolean[];
17923
+ name?: string | string[];
17924
+ };
17925
+ interface Result extends DefaultPaginationResult {
17926
+ data: Data[];
17927
+ }
17928
+ }
17929
+ namespace Get {
17930
+ type ID = string;
17931
+ type Params = {
17932
+ [key: string]: any;
17933
+ };
17934
+ type Result = Data;
17935
+ }
17936
+ namespace Create {
17937
+ type Body = CreateBody;
17938
+ type Result = Data;
17939
+ }
17940
+ namespace Update {
17941
+ type ID = StringId;
17942
+ type Body = UpdateBody;
17943
+ type Result = Data;
17944
+ }
17945
+ namespace Patch {
17946
+ type Body = PatchAction.UpdateBody;
17947
+ interface Result {
17948
+ nFound: number;
17949
+ nModified: number;
17950
+ }
17951
+ }
17952
+ namespace Remove {
17953
+ type ID = string;
17954
+ type Result = Data;
17955
+ }
17956
+ }
17957
+ namespace Line {
17958
+ export interface Data {
17959
+ _id: StringId;
17960
+ name: string;
17961
+ local_name?: string;
17962
+ disabled: boolean;
17963
+ icon?: string;
17964
+ icon_media?: StringId;
17965
+ company_namespace: string[];
17966
+ createdAt: string;
17967
+ updatedAt: string;
17968
+ __v?: number;
17969
+ }
17970
+ export interface CreateBody {
17971
+ company_namespace?: string[];
17972
+ name: string;
17973
+ local_name?: string;
17974
+ disabled?: boolean;
17975
+ icon?: string;
17976
+ icon_media?: StringId;
17977
+ }
17978
+ export type UpdateBody = Partial<Data>;
17979
+ export type PopulatedDoc = Data & {
17980
+ icon_media: StringId | MediaDoc;
17981
+ };
17982
+ type PopulatedKeys = "icon_media";
17983
+ export namespace Find {
17984
+ type Params = DefaultPaginationQueryParams & {
17985
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
17986
+ search?: string;
17987
+ _id?: StringId | StringId[];
17988
+ name?: string | string[];
17989
+ disabled?: boolean | boolean[];
17990
+ };
17991
+ interface Result extends DefaultPaginationResult {
17992
+ data: PopulatedDoc[];
17993
+ }
17994
+ }
17995
+ export namespace Get {
17996
+ type ID = string;
17997
+ type Params = {
17998
+ populatedKeys?: PopulatedKeys[];
17999
+ };
18000
+ type Result = PopulatedDoc;
18001
+ }
18002
+ export namespace Create {
18003
+ type Body = CreateBody;
18004
+ type Result = Data;
18005
+ }
18006
+ export namespace Update {
18007
+ type ID = StringId;
18008
+ type Body = UpdateBody;
18009
+ type Result = Data;
18010
+ }
18011
+ export namespace Patch {
18012
+ type Body = PatchAction.UpdateBody;
18013
+ interface Result {
18014
+ nFound: number;
18015
+ nModified: number;
18016
+ }
18017
+ }
18018
+ export namespace Remove {
18019
+ type ID = string;
18020
+ type Result = Data;
18021
+ }
18022
+ export {};
18023
+ }
18024
+ namespace ClientLine {
18025
+ export interface Data {
18026
+ _id: StringId;
18027
+ client: StringId;
18028
+ classification: StringId;
18029
+ line: StringId;
18030
+ company_namespace: string[];
18031
+ createdAt: string;
18032
+ updatedAt: string;
18033
+ __v?: number;
18034
+ }
18035
+ export interface CreateBody {
18036
+ company_namespace?: string[];
18037
+ client: StringId;
18038
+ classification: StringId;
18039
+ line: StringId;
18040
+ }
18041
+ export type UpdateBody = Partial<Data>;
18042
+ export type PopulatedDoc = Data & {
18043
+ client: StringId | Client.Data;
18044
+ classification: StringId | LineClassification.Data;
18045
+ line: StringId | Line.Data;
18046
+ };
18047
+ type PopulatedKeys = "client" | "classification" | "line";
18048
+ export namespace Find {
18049
+ type Params = DefaultPaginationQueryParams & {
18050
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
18051
+ _id?: StringId | StringId[];
18052
+ client?: StringId | StringId[];
18053
+ line?: StringId | StringId[];
18054
+ classification?: StringId | StringId[];
18055
+ };
18056
+ interface Result extends DefaultPaginationResult {
18057
+ data: PopulatedDoc[];
18058
+ }
18059
+ }
18060
+ export namespace Get {
18061
+ type ID = string;
18062
+ type Params = {
18063
+ populatedKeys?: PopulatedKeys[];
18064
+ };
18065
+ type Result = PopulatedDoc;
18066
+ }
18067
+ export namespace Create {
18068
+ type Body = CreateBody;
18069
+ type Result = Data;
18070
+ }
18071
+ export namespace Update {
18072
+ type ID = StringId;
18073
+ type Body = UpdateBody;
18074
+ type Result = Data;
18075
+ }
18076
+ export namespace Remove {
18077
+ type ID = string;
18078
+ type Result = Data;
18079
+ }
18080
+ export {};
18081
+ }
17898
18082
  }
17899
18083
  export type StringId = string;
17900
18084
  export type NameSpaces = string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.251",
3
+ "version": "1.0.253",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -138,6 +138,9 @@ export const end_points = {
138
138
  LATEST_SERIAL: "latest-serial",
139
139
  FORM_V2: "form-v2",
140
140
  ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result",
141
+ LINE_CLASSIFICATION: "line-classification",
142
+ LINE: "line",
143
+ CLIENT_LINE: "client-line",
141
144
  } as const;
142
145
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
143
146
 
@@ -6386,6 +6389,184 @@ export default class Repzo {
6386
6389
  return res;
6387
6390
  },
6388
6391
  };
6392
+
6393
+ lineClassification = {
6394
+ _path: Repzo._end_points.LINE_CLASSIFICATION,
6395
+ find: async (
6396
+ params?: Service.LineClassification.Find.Params,
6397
+ ): Promise<Service.LineClassification.Find.Result> => {
6398
+ let res: Service.LineClassification.Find.Result = await this._fetch(
6399
+ this.svAPIEndpoint,
6400
+ this.lineClassification._path,
6401
+ params,
6402
+ );
6403
+ return res;
6404
+ },
6405
+ get: async (
6406
+ id: Service.LineClassification.Get.ID,
6407
+ params?: Service.LineClassification.Get.Params,
6408
+ ): Promise<Service.LineClassification.Get.Result> => {
6409
+ return await this._fetch(
6410
+ this.svAPIEndpoint,
6411
+ this.lineClassification._path + `/${id}`,
6412
+ params,
6413
+ );
6414
+ },
6415
+ create: async (
6416
+ body: Service.LineClassification.Create.Body,
6417
+ ): Promise<Service.LineClassification.Create.Result> => {
6418
+ let res = await this._create(
6419
+ this.svAPIEndpoint,
6420
+ this.lineClassification._path,
6421
+ body,
6422
+ );
6423
+ return res;
6424
+ },
6425
+ update: async (
6426
+ id: Service.LineClassification.Update.ID,
6427
+ body: Service.LineClassification.Update.Body,
6428
+ ): Promise<Service.LineClassification.Update.Result> => {
6429
+ let res: Service.LineClassification.Update.Result = await this._update(
6430
+ this.svAPIEndpoint,
6431
+ this.lineClassification._path + `/${id}`,
6432
+ body,
6433
+ );
6434
+ return res;
6435
+ },
6436
+ patch: async (
6437
+ body: Service.LineClassification.Patch.Body,
6438
+ ): Promise<Service.LineClassification.Patch.Result> => {
6439
+ let res: Service.LineClassification.Patch.Result = await this._patch(
6440
+ this.svAPIEndpoint,
6441
+ this.lineClassification._path,
6442
+ body,
6443
+ );
6444
+ return res;
6445
+ },
6446
+ remove: async (
6447
+ id: Service.LineClassification.Update.ID,
6448
+ ): Promise<Service.LineClassification.Remove.Result> => {
6449
+ let res: Service.LineClassification.Remove.Result = await this._delete(
6450
+ this.svAPIEndpoint,
6451
+ this.lineClassification._path + `/${id}`,
6452
+ );
6453
+ return res;
6454
+ },
6455
+ };
6456
+
6457
+ line = {
6458
+ _path: Repzo._end_points.LINE,
6459
+ find: async (
6460
+ params?: Service.Line.Find.Params,
6461
+ ): Promise<Service.Line.Find.Result> => {
6462
+ let res: Service.Line.Find.Result = await this._fetch(
6463
+ this.svAPIEndpoint,
6464
+ this.line._path,
6465
+ params,
6466
+ );
6467
+ return res;
6468
+ },
6469
+ get: async (
6470
+ id: Service.Line.Get.ID,
6471
+ params?: Service.Line.Get.Params,
6472
+ ): Promise<Service.Line.Get.Result> => {
6473
+ return await this._fetch(
6474
+ this.svAPIEndpoint,
6475
+ this.line._path + `/${id}`,
6476
+ params,
6477
+ );
6478
+ },
6479
+ create: async (
6480
+ body: Service.Line.Create.Body,
6481
+ ): Promise<Service.Line.Create.Result> => {
6482
+ let res = await this._create(this.svAPIEndpoint, this.line._path, body);
6483
+ return res;
6484
+ },
6485
+ update: async (
6486
+ id: Service.Line.Update.ID,
6487
+ body: Service.Line.Update.Body,
6488
+ ): Promise<Service.Line.Update.Result> => {
6489
+ let res: Service.Line.Update.Result = await this._update(
6490
+ this.svAPIEndpoint,
6491
+ this.line._path + `/${id}`,
6492
+ body,
6493
+ );
6494
+ return res;
6495
+ },
6496
+ patch: async (
6497
+ body: Service.Line.Patch.Body,
6498
+ ): Promise<Service.Line.Patch.Result> => {
6499
+ let res: Service.Line.Patch.Result = await this._patch(
6500
+ this.svAPIEndpoint,
6501
+ this.line._path,
6502
+ body,
6503
+ );
6504
+ return res;
6505
+ },
6506
+ remove: async (
6507
+ id: Service.Line.Update.ID,
6508
+ ): Promise<Service.Line.Remove.Result> => {
6509
+ let res: Service.Line.Remove.Result = await this._delete(
6510
+ this.svAPIEndpoint,
6511
+ this.line._path + `/${id}`,
6512
+ );
6513
+ return res;
6514
+ },
6515
+ };
6516
+
6517
+ clientLine = {
6518
+ _path: Repzo._end_points.CLIENT_LINE,
6519
+ find: async (
6520
+ params?: Service.ClientLine.Find.Params,
6521
+ ): Promise<Service.ClientLine.Find.Result> => {
6522
+ let res: Service.ClientLine.Find.Result = await this._fetch(
6523
+ this.svAPIEndpoint,
6524
+ this.clientLine._path,
6525
+ params,
6526
+ );
6527
+ return res;
6528
+ },
6529
+ get: async (
6530
+ id: Service.ClientLine.Get.ID,
6531
+ params?: Service.ClientLine.Get.Params,
6532
+ ): Promise<Service.ClientLine.Get.Result> => {
6533
+ return await this._fetch(
6534
+ this.svAPIEndpoint,
6535
+ this.clientLine._path + `/${id}`,
6536
+ params,
6537
+ );
6538
+ },
6539
+ create: async (
6540
+ body: Service.ClientLine.Create.Body,
6541
+ ): Promise<Service.ClientLine.Create.Result> => {
6542
+ let res = await this._create(
6543
+ this.svAPIEndpoint,
6544
+ this.clientLine._path,
6545
+ body,
6546
+ );
6547
+ return res;
6548
+ },
6549
+ update: async (
6550
+ id: Service.ClientLine.Update.ID,
6551
+ body: Service.ClientLine.Update.Body,
6552
+ ): Promise<Service.ClientLine.Update.Result> => {
6553
+ let res: Service.ClientLine.Update.Result = await this._update(
6554
+ this.svAPIEndpoint,
6555
+ this.clientLine._path + `/${id}`,
6556
+ body,
6557
+ );
6558
+ return res;
6559
+ },
6560
+ remove: async (
6561
+ id: Service.ClientLine.Update.ID,
6562
+ ): Promise<Service.ClientLine.Remove.Result> => {
6563
+ let res: Service.ClientLine.Remove.Result = await this._delete(
6564
+ this.svAPIEndpoint,
6565
+ this.clientLine._path + `/${id}`,
6566
+ );
6567
+ return res;
6568
+ },
6569
+ };
6389
6570
  }
6390
6571
 
6391
6572
  function normalizeParams(params: Params): { [key: string]: any } {
@@ -1572,6 +1572,7 @@ export namespace Service {
1572
1572
  disabled?: boolean;
1573
1573
  integration_meta?: { [key: string]: any };
1574
1574
  }
1575
+ export type Data = MeasureUnitSchema;
1575
1576
 
1576
1577
  export namespace Find {
1577
1578
  export type Params = DefaultPaginationQueryParams & {
@@ -9907,7 +9908,7 @@ export namespace Service {
9907
9908
  */
9908
9909
  readQuery: ReadQuery[];
9909
9910
  }
9910
- interface UpdateBody {
9911
+ export interface UpdateBody {
9911
9912
  /**
9912
9913
  * @type {string} name of model (an enum value) as specified in patch-filter schema
9913
9914
  */
@@ -13300,6 +13301,7 @@ export namespace Service {
13300
13301
  business_day?: string;
13301
13302
  client?: StringId;
13302
13303
  route?: StringId;
13304
+ original_doc?: ClientLine.Data[];
13303
13305
  [ket: string]: any;
13304
13306
  };
13305
13307
  history?: {
@@ -19996,6 +19998,190 @@ export namespace Service {
19996
19998
  export type Result = Data;
19997
19999
  }
19998
20000
  }
20001
+
20002
+ export namespace LineClassification {
20003
+ export interface Data {
20004
+ _id: StringId;
20005
+ name: string;
20006
+ local_name?: string;
20007
+ disabled: boolean;
20008
+ company_namespace: string[];
20009
+ createdAt: string;
20010
+ updatedAt: string;
20011
+ __v?: number;
20012
+ }
20013
+ export interface CreateBody {
20014
+ company_namespace?: string[];
20015
+ name: string;
20016
+ local_name?: string;
20017
+ disabled?: boolean;
20018
+ }
20019
+ export type UpdateBody = Partial<Data>;
20020
+
20021
+ export namespace Find {
20022
+ export type Params = DefaultPaginationQueryParams & {
20023
+ search?: string;
20024
+ _id?: StringId | StringId[];
20025
+ disabled?: boolean | boolean[];
20026
+ name?: string | string[];
20027
+ };
20028
+ export interface Result extends DefaultPaginationResult {
20029
+ data: Data[];
20030
+ }
20031
+ }
20032
+ export namespace Get {
20033
+ export type ID = string;
20034
+ export type Params = { [key: string]: any };
20035
+ export type Result = Data;
20036
+ }
20037
+ export namespace Create {
20038
+ export type Body = CreateBody;
20039
+ export type Result = Data;
20040
+ }
20041
+ export namespace Update {
20042
+ export type ID = StringId;
20043
+ export type Body = UpdateBody;
20044
+ export type Result = Data;
20045
+ }
20046
+ export namespace Patch {
20047
+ export type Body = PatchAction.UpdateBody;
20048
+ export interface Result {
20049
+ nFound: number;
20050
+ nModified: number;
20051
+ }
20052
+ }
20053
+ export namespace Remove {
20054
+ export type ID = string;
20055
+ export type Result = Data;
20056
+ }
20057
+ }
20058
+
20059
+ export namespace Line {
20060
+ export interface Data {
20061
+ _id: StringId;
20062
+ name: string;
20063
+ local_name?: string;
20064
+ disabled: boolean;
20065
+ icon?: string;
20066
+ icon_media?: StringId;
20067
+ company_namespace: string[];
20068
+ createdAt: string;
20069
+ updatedAt: string;
20070
+ __v?: number;
20071
+ }
20072
+ export interface CreateBody {
20073
+ company_namespace?: string[];
20074
+ name: string;
20075
+ local_name?: string;
20076
+ disabled?: boolean;
20077
+ icon?: string;
20078
+ icon_media?: StringId;
20079
+ }
20080
+ export type UpdateBody = Partial<Data>;
20081
+
20082
+ export type PopulatedDoc = Data & {
20083
+ icon_media: StringId | MediaDoc;
20084
+ };
20085
+
20086
+ type PopulatedKeys = "icon_media";
20087
+
20088
+ export namespace Find {
20089
+ export type Params = DefaultPaginationQueryParams & {
20090
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
20091
+ search?: string;
20092
+ _id?: StringId | StringId[];
20093
+ name?: string | string[];
20094
+ disabled?: boolean | boolean[];
20095
+ };
20096
+ export interface Result extends DefaultPaginationResult {
20097
+ data: PopulatedDoc[];
20098
+ }
20099
+ }
20100
+ export namespace Get {
20101
+ export type ID = string;
20102
+ export type Params = { populatedKeys?: PopulatedKeys[] };
20103
+ export type Result = PopulatedDoc;
20104
+ }
20105
+ export namespace Create {
20106
+ export type Body = CreateBody;
20107
+ export type Result = Data;
20108
+ }
20109
+ export namespace Update {
20110
+ export type ID = StringId;
20111
+ export type Body = UpdateBody;
20112
+ export type Result = Data;
20113
+ }
20114
+ export namespace Patch {
20115
+ export type Body = PatchAction.UpdateBody;
20116
+ export interface Result {
20117
+ nFound: number;
20118
+ nModified: number;
20119
+ }
20120
+ }
20121
+ export namespace Remove {
20122
+ export type ID = string;
20123
+ export type Result = Data;
20124
+ }
20125
+ }
20126
+
20127
+ export namespace ClientLine {
20128
+ export interface Data {
20129
+ _id: StringId;
20130
+ client: StringId;
20131
+ classification: StringId;
20132
+ line: StringId;
20133
+ company_namespace: string[];
20134
+ createdAt: string;
20135
+ updatedAt: string;
20136
+ __v?: number;
20137
+ }
20138
+ export interface CreateBody {
20139
+ company_namespace?: string[];
20140
+ client: StringId;
20141
+ classification: StringId;
20142
+ line: StringId;
20143
+ }
20144
+ export type UpdateBody = Partial<Data>;
20145
+
20146
+ export type PopulatedDoc = Data & {
20147
+ client: StringId | Client.Data;
20148
+ classification: StringId | LineClassification.Data;
20149
+ line: StringId | Line.Data;
20150
+ };
20151
+
20152
+ type PopulatedKeys = "client" | "classification" | "line";
20153
+
20154
+ export namespace Find {
20155
+ export type Params = DefaultPaginationQueryParams & {
20156
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
20157
+ _id?: StringId | StringId[];
20158
+ client?: StringId | StringId[];
20159
+ line?: StringId | StringId[];
20160
+ classification?: StringId | StringId[];
20161
+ };
20162
+ export interface Result extends DefaultPaginationResult {
20163
+ data: PopulatedDoc[];
20164
+ }
20165
+ }
20166
+ export namespace Get {
20167
+ export type ID = string;
20168
+ export type Params = { populatedKeys?: PopulatedKeys[] };
20169
+ export type Result = PopulatedDoc;
20170
+ }
20171
+ export namespace Create {
20172
+ export type Body = CreateBody;
20173
+ export type Result = Data;
20174
+ }
20175
+ export namespace Update {
20176
+ export type ID = StringId;
20177
+ export type Body = UpdateBody;
20178
+ export type Result = Data;
20179
+ }
20180
+ export namespace Remove {
20181
+ export type ID = string;
20182
+ export type Result = Data;
20183
+ }
20184
+ }
19999
20185
  }
20000
20186
 
20001
20187
  export type StringId = string;