repzo 1.0.269 → 1.0.271
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 +19 -7
- package/package.json +1 -1
- package/src/types/index.ts +26 -8
package/lib/types/index.d.ts
CHANGED
|
@@ -7176,7 +7176,7 @@ export declare namespace Service {
|
|
|
7176
7176
|
field: "_id";
|
|
7177
7177
|
type: "asc" | "desc";
|
|
7178
7178
|
}[];
|
|
7179
|
-
nodeCycles?:
|
|
7179
|
+
nodeCycles?: StringId[] | StringId;
|
|
7180
7180
|
withCycle?: boolean;
|
|
7181
7181
|
conversion_status?: "converted" | "not_converted" | "all";
|
|
7182
7182
|
};
|
|
@@ -8218,7 +8218,7 @@ export declare namespace Service {
|
|
|
8218
8218
|
name: string;
|
|
8219
8219
|
disabled: boolean;
|
|
8220
8220
|
company_namespace: string[];
|
|
8221
|
-
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8221
|
+
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8222
8222
|
position?: number;
|
|
8223
8223
|
description?: string;
|
|
8224
8224
|
rules: {
|
|
@@ -8248,7 +8248,7 @@ export declare namespace Service {
|
|
|
8248
8248
|
}
|
|
8249
8249
|
export interface CreateBody {
|
|
8250
8250
|
name: string;
|
|
8251
|
-
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8251
|
+
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8252
8252
|
creator?: AdminCreator;
|
|
8253
8253
|
disabled?: boolean;
|
|
8254
8254
|
company_namespace?: string[];
|
|
@@ -8290,7 +8290,7 @@ export declare namespace Service {
|
|
|
8290
8290
|
name?: string;
|
|
8291
8291
|
disabled?: boolean;
|
|
8292
8292
|
company_namespace?: string[];
|
|
8293
|
-
type?: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8293
|
+
type?: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8294
8294
|
position?: number;
|
|
8295
8295
|
description?: string;
|
|
8296
8296
|
rules?: {
|
|
@@ -8383,7 +8383,7 @@ export declare namespace Service {
|
|
|
8383
8383
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
8384
8384
|
export interface Schema {
|
|
8385
8385
|
_id: string;
|
|
8386
|
-
document_type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8386
|
+
document_type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8387
8387
|
document_id: string;
|
|
8388
8388
|
status: CycleStatus;
|
|
8389
8389
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -8582,7 +8582,7 @@ export declare namespace Service {
|
|
|
8582
8582
|
status?: TransferStatus | TransferStatus[];
|
|
8583
8583
|
custom_status?: string[] | string;
|
|
8584
8584
|
creator?: string[] | string;
|
|
8585
|
-
nodeCycles?:
|
|
8585
|
+
nodeCycles?: StringId[] | StringId;
|
|
8586
8586
|
from__id?: string;
|
|
8587
8587
|
to__id?: string;
|
|
8588
8588
|
populatedKeys?: PopulatedKeys[];
|
|
@@ -12183,6 +12183,7 @@ export declare namespace Service {
|
|
|
12183
12183
|
address_1?: string;
|
|
12184
12184
|
address_2?: string;
|
|
12185
12185
|
prevent_negative_convert_to_invoice_stock?: boolean;
|
|
12186
|
+
prevent_negative_mobile_transfer_stock: boolean;
|
|
12186
12187
|
empty_proforma_cart_at_visit_start_by_same_creator?: boolean;
|
|
12187
12188
|
empty_proforma_cart_at_visit_start_by_any_creator?: boolean;
|
|
12188
12189
|
empty_fullinvoice_cart_at_visit_start_by_same_creator?: boolean;
|
|
@@ -18018,6 +18019,7 @@ export declare namespace Service {
|
|
|
18018
18019
|
route?: StringId;
|
|
18019
18020
|
workorder?: StringId;
|
|
18020
18021
|
sync_id: string;
|
|
18022
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
18021
18023
|
geo_tag?: GeoTag;
|
|
18022
18024
|
geoPoint?: GeoPoint;
|
|
18023
18025
|
platform?: string;
|
|
@@ -18077,6 +18079,7 @@ export declare namespace Service {
|
|
|
18077
18079
|
results: DivisionResult[];
|
|
18078
18080
|
score?: number;
|
|
18079
18081
|
is_completed?: boolean;
|
|
18082
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
18080
18083
|
company_namespace?: string[];
|
|
18081
18084
|
}
|
|
18082
18085
|
export type UpdateBody = Partial<Data>;
|
|
@@ -18086,6 +18089,7 @@ export declare namespace Service {
|
|
|
18086
18089
|
photo_media_populated?: PopulatedMediaStorage & {
|
|
18087
18090
|
ContentLength?: number;
|
|
18088
18091
|
};
|
|
18092
|
+
cycle?: Cycle.Data;
|
|
18089
18093
|
};
|
|
18090
18094
|
type PopulatedKeys = "custom_list" | "client" | "workorder" | "visit" | "route" | "form_id" | "teams" | "tags" | "media";
|
|
18091
18095
|
export namespace Find {
|
|
@@ -18112,6 +18116,9 @@ export declare namespace Service {
|
|
|
18112
18116
|
visit?: StringId | StringId[];
|
|
18113
18117
|
workorder?: StringId | StringId[];
|
|
18114
18118
|
"serial_number.formatted"?: string | string[];
|
|
18119
|
+
status?: Data["status"] | Data["status"][];
|
|
18120
|
+
nodeCycles?: StringId[] | StringId;
|
|
18121
|
+
withCycle?: boolean;
|
|
18115
18122
|
};
|
|
18116
18123
|
interface Result extends DefaultPaginationResult {
|
|
18117
18124
|
data: PopulatedDoc[];
|
|
@@ -18121,6 +18128,7 @@ export declare namespace Service {
|
|
|
18121
18128
|
type ID = string;
|
|
18122
18129
|
type Params = {
|
|
18123
18130
|
populatedKeys?: PopulatedKeys[];
|
|
18131
|
+
withCycle?: boolean;
|
|
18124
18132
|
};
|
|
18125
18133
|
type Result = PopulatedDoc & {
|
|
18126
18134
|
can_edit_types?: boolean;
|
|
@@ -18132,7 +18140,11 @@ export declare namespace Service {
|
|
|
18132
18140
|
}
|
|
18133
18141
|
export namespace Update {
|
|
18134
18142
|
type ID = StringId;
|
|
18135
|
-
type Body = UpdateBody
|
|
18143
|
+
type Body = UpdateBody & {
|
|
18144
|
+
isResubmitted?: boolean;
|
|
18145
|
+
note?: string;
|
|
18146
|
+
stage?: number;
|
|
18147
|
+
};
|
|
18136
18148
|
type Result = Data;
|
|
18137
18149
|
}
|
|
18138
18150
|
export {};
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -7792,7 +7792,7 @@ export namespace Service {
|
|
|
7792
7792
|
field: "_id";
|
|
7793
7793
|
type: "asc" | "desc";
|
|
7794
7794
|
}[];
|
|
7795
|
-
nodeCycles?:
|
|
7795
|
+
nodeCycles?: StringId[] | StringId;
|
|
7796
7796
|
withCycle?: boolean;
|
|
7797
7797
|
conversion_status?: "converted" | "not_converted" | "all";
|
|
7798
7798
|
};
|
|
@@ -8830,7 +8830,8 @@ export namespace Service {
|
|
|
8830
8830
|
| "asset-part-transfer"
|
|
8831
8831
|
| "adjust-inventory"
|
|
8832
8832
|
| "return-asset-part-unit"
|
|
8833
|
-
| "store-asset-part-unit"
|
|
8833
|
+
| "store-asset-part-unit"
|
|
8834
|
+
| "activity-form-v2-result";
|
|
8834
8835
|
position?: number;
|
|
8835
8836
|
description?: string;
|
|
8836
8837
|
rules: {
|
|
@@ -8867,7 +8868,8 @@ export namespace Service {
|
|
|
8867
8868
|
| "asset-part-transfer"
|
|
8868
8869
|
| "adjust-inventory"
|
|
8869
8870
|
| "return-asset-part-unit"
|
|
8870
|
-
| "store-asset-part-unit"
|
|
8871
|
+
| "store-asset-part-unit"
|
|
8872
|
+
| "activity-form-v2-result";
|
|
8871
8873
|
creator?: AdminCreator;
|
|
8872
8874
|
disabled?: boolean;
|
|
8873
8875
|
company_namespace?: string[];
|
|
@@ -8907,7 +8909,8 @@ export namespace Service {
|
|
|
8907
8909
|
| "asset-part-transfer"
|
|
8908
8910
|
| "adjust-inventory"
|
|
8909
8911
|
| "return-asset-part-unit"
|
|
8910
|
-
| "store-asset-part-unit"
|
|
8912
|
+
| "store-asset-part-unit"
|
|
8913
|
+
| "activity-form-v2-result";
|
|
8911
8914
|
position?: number;
|
|
8912
8915
|
description?: string;
|
|
8913
8916
|
rules?: {
|
|
@@ -8995,7 +8998,8 @@ export namespace Service {
|
|
|
8995
8998
|
| "asset-part-transfer"
|
|
8996
8999
|
| "adjust-inventory"
|
|
8997
9000
|
| "return-asset-part-unit"
|
|
8998
|
-
| "store-asset-part-unit"
|
|
9001
|
+
| "store-asset-part-unit"
|
|
9002
|
+
| "activity-form-v2-result";
|
|
8999
9003
|
document_id: string;
|
|
9000
9004
|
status: CycleStatus;
|
|
9001
9005
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -9194,7 +9198,7 @@ export namespace Service {
|
|
|
9194
9198
|
status?: TransferStatus | TransferStatus[];
|
|
9195
9199
|
custom_status?: string[] | string;
|
|
9196
9200
|
creator?: string[] | string;
|
|
9197
|
-
nodeCycles?:
|
|
9201
|
+
nodeCycles?: StringId[] | StringId;
|
|
9198
9202
|
from__id?: string;
|
|
9199
9203
|
to__id?: string;
|
|
9200
9204
|
populatedKeys?: PopulatedKeys[];
|
|
@@ -13059,6 +13063,7 @@ export namespace Service {
|
|
|
13059
13063
|
address_1?: string;
|
|
13060
13064
|
address_2?: string;
|
|
13061
13065
|
prevent_negative_convert_to_invoice_stock?: boolean;
|
|
13066
|
+
prevent_negative_mobile_transfer_stock: boolean;
|
|
13062
13067
|
empty_proforma_cart_at_visit_start_by_same_creator?: boolean;
|
|
13063
13068
|
empty_proforma_cart_at_visit_start_by_any_creator?: boolean;
|
|
13064
13069
|
empty_fullinvoice_cart_at_visit_start_by_same_creator?: boolean;
|
|
@@ -20185,6 +20190,7 @@ export namespace Service {
|
|
|
20185
20190
|
route?: StringId;
|
|
20186
20191
|
workorder?: StringId;
|
|
20187
20192
|
sync_id: string;
|
|
20193
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
20188
20194
|
// mobile data
|
|
20189
20195
|
geo_tag?: GeoTag;
|
|
20190
20196
|
geoPoint?: GeoPoint;
|
|
@@ -20246,6 +20252,7 @@ export namespace Service {
|
|
|
20246
20252
|
results: DivisionResult[];
|
|
20247
20253
|
score?: number;
|
|
20248
20254
|
is_completed?: boolean;
|
|
20255
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
20249
20256
|
company_namespace?: string[];
|
|
20250
20257
|
}
|
|
20251
20258
|
export type UpdateBody = Partial<Data>;
|
|
@@ -20259,6 +20266,7 @@ export namespace Service {
|
|
|
20259
20266
|
photo_media_populated?: PopulatedMediaStorage & {
|
|
20260
20267
|
ContentLength?: number;
|
|
20261
20268
|
};
|
|
20269
|
+
cycle?: Cycle.Data;
|
|
20262
20270
|
};
|
|
20263
20271
|
|
|
20264
20272
|
type PopulatedKeys =
|
|
@@ -20296,6 +20304,9 @@ export namespace Service {
|
|
|
20296
20304
|
visit?: StringId | StringId[];
|
|
20297
20305
|
workorder?: StringId | StringId[];
|
|
20298
20306
|
"serial_number.formatted"?: string | string[];
|
|
20307
|
+
status?: Data["status"] | Data["status"][];
|
|
20308
|
+
nodeCycles?: StringId[] | StringId;
|
|
20309
|
+
withCycle?: boolean;
|
|
20299
20310
|
};
|
|
20300
20311
|
export interface Result extends DefaultPaginationResult {
|
|
20301
20312
|
data: PopulatedDoc[];
|
|
@@ -20303,7 +20314,10 @@ export namespace Service {
|
|
|
20303
20314
|
}
|
|
20304
20315
|
export namespace Get {
|
|
20305
20316
|
export type ID = string;
|
|
20306
|
-
export type Params = {
|
|
20317
|
+
export type Params = {
|
|
20318
|
+
populatedKeys?: PopulatedKeys[];
|
|
20319
|
+
withCycle?: boolean;
|
|
20320
|
+
};
|
|
20307
20321
|
export type Result = PopulatedDoc & { can_edit_types?: boolean };
|
|
20308
20322
|
}
|
|
20309
20323
|
export namespace Create {
|
|
@@ -20312,7 +20326,11 @@ export namespace Service {
|
|
|
20312
20326
|
}
|
|
20313
20327
|
export namespace Update {
|
|
20314
20328
|
export type ID = StringId;
|
|
20315
|
-
export type Body = UpdateBody
|
|
20329
|
+
export type Body = UpdateBody & {
|
|
20330
|
+
isResubmitted?: boolean;
|
|
20331
|
+
note?: string;
|
|
20332
|
+
stage?: number;
|
|
20333
|
+
};
|
|
20316
20334
|
export type Result = Data;
|
|
20317
20335
|
}
|
|
20318
20336
|
}
|