repzo 1.0.71 → 1.0.72
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 +17 -0
- package/lib/index.js +34 -0
- package/lib/types/index.d.ts +198 -11
- package/package.json +1 -1
- package/src/index.ts +48 -0
- package/src/types/index.ts +203 -11
package/lib/index.d.ts
CHANGED
|
@@ -778,6 +778,23 @@ export default class Repzo {
|
|
|
778
778
|
id: Service.StorecheckTemplate.Remove.ID
|
|
779
779
|
) => Promise<Service.StorecheckTemplate.Remove.Result>;
|
|
780
780
|
};
|
|
781
|
+
activityStorecheck: {
|
|
782
|
+
_path: string;
|
|
783
|
+
find: (
|
|
784
|
+
params?: Service.ActivityStorecheck.Find.Params
|
|
785
|
+
) => Promise<Service.ActivityStorecheck.Find.Result>;
|
|
786
|
+
get: (
|
|
787
|
+
id: Service.ActivityStorecheck.Get.ID,
|
|
788
|
+
params?: Service.ActivityStorecheck.Get.Params
|
|
789
|
+
) => Promise<Service.ActivityStorecheck.Get.Result>;
|
|
790
|
+
create: (
|
|
791
|
+
body: Service.ActivityStorecheck.Create.Body
|
|
792
|
+
) => Promise<Service.ActivityStorecheck.Create.Result>;
|
|
793
|
+
update: (
|
|
794
|
+
id: Service.ActivityStorecheck.Update.ID,
|
|
795
|
+
body: Service.ActivityStorecheck.Update.Body
|
|
796
|
+
) => Promise<Service.ActivityStorecheck.Update.Result>;
|
|
797
|
+
};
|
|
781
798
|
adjustInventory: {
|
|
782
799
|
_path: string;
|
|
783
800
|
find: (
|
package/lib/index.js
CHANGED
|
@@ -1584,6 +1584,40 @@ export default class Repzo {
|
|
|
1584
1584
|
return res;
|
|
1585
1585
|
},
|
|
1586
1586
|
};
|
|
1587
|
+
this.activityStorecheck = {
|
|
1588
|
+
_path: "/activity-storecheck",
|
|
1589
|
+
find: async (params) => {
|
|
1590
|
+
let res = await this._fetch(
|
|
1591
|
+
this.svAPIEndpoint,
|
|
1592
|
+
this.activityStorecheck._path,
|
|
1593
|
+
params
|
|
1594
|
+
);
|
|
1595
|
+
return res;
|
|
1596
|
+
},
|
|
1597
|
+
get: async (id, params) => {
|
|
1598
|
+
return await this._fetch(
|
|
1599
|
+
this.svAPIEndpoint,
|
|
1600
|
+
this.activityStorecheck._path + `/${id}`,
|
|
1601
|
+
params
|
|
1602
|
+
);
|
|
1603
|
+
},
|
|
1604
|
+
create: async (body) => {
|
|
1605
|
+
let res = await this._create(
|
|
1606
|
+
this.svAPIEndpoint,
|
|
1607
|
+
this.activityStorecheck._path,
|
|
1608
|
+
body
|
|
1609
|
+
);
|
|
1610
|
+
return res;
|
|
1611
|
+
},
|
|
1612
|
+
update: async (id, body) => {
|
|
1613
|
+
let res = await this._update(
|
|
1614
|
+
this.svAPIEndpoint,
|
|
1615
|
+
this.activityStorecheck._path + `/${id}`,
|
|
1616
|
+
body
|
|
1617
|
+
);
|
|
1618
|
+
return res;
|
|
1619
|
+
},
|
|
1620
|
+
};
|
|
1587
1621
|
this.adjustInventory = {
|
|
1588
1622
|
_path: "/adjust-inventory",
|
|
1589
1623
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -223,6 +223,17 @@ export type Day =
|
|
|
223
223
|
| "Fri"
|
|
224
224
|
| "Sat"
|
|
225
225
|
| string;
|
|
226
|
+
export type FieldType =
|
|
227
|
+
| "Text"
|
|
228
|
+
| "String"
|
|
229
|
+
| "Date"
|
|
230
|
+
| "Image"
|
|
231
|
+
| "Boolean"
|
|
232
|
+
| "Number"
|
|
233
|
+
| "List"
|
|
234
|
+
| "Separator"
|
|
235
|
+
| "Heading"
|
|
236
|
+
| "Media";
|
|
226
237
|
export interface WeeklyDetails {
|
|
227
238
|
every: number;
|
|
228
239
|
days: Day[];
|
|
@@ -373,6 +384,10 @@ export interface GeoTag {
|
|
|
373
384
|
lng: number;
|
|
374
385
|
formatted_address: string;
|
|
375
386
|
}
|
|
387
|
+
interface GeoPoint {
|
|
388
|
+
type: "Point";
|
|
389
|
+
coordinates: number[];
|
|
390
|
+
}
|
|
376
391
|
export declare namespace Service {
|
|
377
392
|
namespace Client {
|
|
378
393
|
interface Financials {
|
|
@@ -1859,17 +1874,6 @@ export declare namespace Service {
|
|
|
1859
1874
|
| "product-sub-category"
|
|
1860
1875
|
| "product-brand"
|
|
1861
1876
|
| "product-group";
|
|
1862
|
-
type FieldType =
|
|
1863
|
-
| "Text"
|
|
1864
|
-
| "String"
|
|
1865
|
-
| "Date"
|
|
1866
|
-
| "Image"
|
|
1867
|
-
| "Boolean"
|
|
1868
|
-
| "Number"
|
|
1869
|
-
| "List"
|
|
1870
|
-
| "Separator"
|
|
1871
|
-
| "Heading"
|
|
1872
|
-
| "Media";
|
|
1873
1877
|
type DataType =
|
|
1874
1878
|
| "Separator"
|
|
1875
1879
|
| "timestamp"
|
|
@@ -2042,6 +2046,189 @@ export declare namespace Service {
|
|
|
2042
2046
|
}
|
|
2043
2047
|
export {};
|
|
2044
2048
|
}
|
|
2049
|
+
namespace ActivityStorecheck {
|
|
2050
|
+
interface Field {
|
|
2051
|
+
_id?: string;
|
|
2052
|
+
name: string;
|
|
2053
|
+
type: FieldType;
|
|
2054
|
+
isArray: boolean;
|
|
2055
|
+
isRequired?: boolean;
|
|
2056
|
+
is_calculated_field?: boolean;
|
|
2057
|
+
formula_key?: string;
|
|
2058
|
+
parent_field?: string;
|
|
2059
|
+
custom_list?: string;
|
|
2060
|
+
field_id: string;
|
|
2061
|
+
result: any[];
|
|
2062
|
+
result_custom_list_ids?: any[];
|
|
2063
|
+
calculation_status?: "success" | "failed";
|
|
2064
|
+
calculation_error?: string | any[];
|
|
2065
|
+
company_namespace?: string[];
|
|
2066
|
+
}
|
|
2067
|
+
export interface Division {
|
|
2068
|
+
fields: Field[];
|
|
2069
|
+
}
|
|
2070
|
+
interface Result {
|
|
2071
|
+
source_id: string;
|
|
2072
|
+
source_name: string;
|
|
2073
|
+
divisions: Division[];
|
|
2074
|
+
}
|
|
2075
|
+
interface Entry {
|
|
2076
|
+
entry_id: string;
|
|
2077
|
+
source:
|
|
2078
|
+
| "product"
|
|
2079
|
+
| "variant"
|
|
2080
|
+
| "product-category"
|
|
2081
|
+
| "product-sub-category"
|
|
2082
|
+
| "product-brand"
|
|
2083
|
+
| "product-group";
|
|
2084
|
+
results: Result[];
|
|
2085
|
+
}
|
|
2086
|
+
export interface ActivityStorecheckSchema {
|
|
2087
|
+
_id: string;
|
|
2088
|
+
company_namespace: string[];
|
|
2089
|
+
client: string;
|
|
2090
|
+
client_name: string;
|
|
2091
|
+
sync_id: string;
|
|
2092
|
+
time_zone: string;
|
|
2093
|
+
template_id: string;
|
|
2094
|
+
visit?: string;
|
|
2095
|
+
visit_id: string;
|
|
2096
|
+
battery_level?: number;
|
|
2097
|
+
user: string;
|
|
2098
|
+
user_name: string;
|
|
2099
|
+
time: number;
|
|
2100
|
+
geo_tag?: GeoTag;
|
|
2101
|
+
geoPoint: GeoPoint;
|
|
2102
|
+
teams?: string[];
|
|
2103
|
+
route?: string;
|
|
2104
|
+
tags?: string[];
|
|
2105
|
+
entries: Entry[];
|
|
2106
|
+
platform?: string;
|
|
2107
|
+
version_name?: string;
|
|
2108
|
+
device_brand?: string;
|
|
2109
|
+
device_os?: string;
|
|
2110
|
+
device_os_version?: string;
|
|
2111
|
+
device_model?: string;
|
|
2112
|
+
identifier?: number;
|
|
2113
|
+
device_id?: string;
|
|
2114
|
+
device_unique_id?: string;
|
|
2115
|
+
network_state?: number;
|
|
2116
|
+
serial_number?: SerialNumber;
|
|
2117
|
+
job_start_time?: number;
|
|
2118
|
+
job_end_time?: number;
|
|
2119
|
+
job_duration?: number;
|
|
2120
|
+
}
|
|
2121
|
+
export interface CreateBody {
|
|
2122
|
+
company_namespace: string[];
|
|
2123
|
+
client: string;
|
|
2124
|
+
client_name: string;
|
|
2125
|
+
time_zone: string;
|
|
2126
|
+
template_id: string;
|
|
2127
|
+
visit?: string;
|
|
2128
|
+
visit_id: string;
|
|
2129
|
+
user: string;
|
|
2130
|
+
user_name: string;
|
|
2131
|
+
time: number;
|
|
2132
|
+
geo_tag?: GeoTag;
|
|
2133
|
+
geoPoint: GeoPoint;
|
|
2134
|
+
teams?: string[];
|
|
2135
|
+
route?: string;
|
|
2136
|
+
tags?: string[];
|
|
2137
|
+
entries: Entry[];
|
|
2138
|
+
}
|
|
2139
|
+
export interface UpdateBody {
|
|
2140
|
+
_id?: string;
|
|
2141
|
+
company_namespace?: string[];
|
|
2142
|
+
client?: string;
|
|
2143
|
+
client_name?: string;
|
|
2144
|
+
sync_id?: string;
|
|
2145
|
+
time_zone?: string;
|
|
2146
|
+
template_id?: string;
|
|
2147
|
+
visit?: string;
|
|
2148
|
+
visit_id?: string;
|
|
2149
|
+
battery_level?: number;
|
|
2150
|
+
user?: string;
|
|
2151
|
+
user_name?: string;
|
|
2152
|
+
time?: number;
|
|
2153
|
+
geo_tag?: GeoTag;
|
|
2154
|
+
geoPoint?: GeoPoint;
|
|
2155
|
+
teams?: string[];
|
|
2156
|
+
route?: string;
|
|
2157
|
+
tags?: string[];
|
|
2158
|
+
entries?: Entry[];
|
|
2159
|
+
platform?: string;
|
|
2160
|
+
version_name?: string;
|
|
2161
|
+
device_brand?: string;
|
|
2162
|
+
device_os?: string;
|
|
2163
|
+
device_os_version?: string;
|
|
2164
|
+
device_model?: string;
|
|
2165
|
+
identifier?: number;
|
|
2166
|
+
device_id?: string;
|
|
2167
|
+
device_unique_id?: string;
|
|
2168
|
+
network_state?: number;
|
|
2169
|
+
serial_number?: SerialNumber;
|
|
2170
|
+
job_start_time?: number;
|
|
2171
|
+
job_end_time?: number;
|
|
2172
|
+
job_duration?: number;
|
|
2173
|
+
}
|
|
2174
|
+
type PopulatedKeys =
|
|
2175
|
+
| "teams"
|
|
2176
|
+
| "tags"
|
|
2177
|
+
| "client"
|
|
2178
|
+
| "user"
|
|
2179
|
+
| "route"
|
|
2180
|
+
| "visit"
|
|
2181
|
+
| "template_id";
|
|
2182
|
+
export type ActivityStoreCheckWithPopulatedKeysSchema = ActivityStorecheckSchema & {
|
|
2183
|
+
teams_populated: Team.TeamSchema[] | string[];
|
|
2184
|
+
tags_populated: Tag.TagSchema[] | string[];
|
|
2185
|
+
client_populated: Client.ClientSchema | string;
|
|
2186
|
+
user_populated: Rep.RepSchema | string;
|
|
2187
|
+
route_populated: Route.RouteSchema | string;
|
|
2188
|
+
visit_populated: Visit.VisitSchema | string;
|
|
2189
|
+
template_id_populated:
|
|
2190
|
+
| StorecheckTemplate.StorecheckTemplateSchema
|
|
2191
|
+
| string;
|
|
2192
|
+
};
|
|
2193
|
+
export namespace Find {
|
|
2194
|
+
type Params = DefaultPaginationQueryParams & {
|
|
2195
|
+
_id?: string[] | string;
|
|
2196
|
+
search?: string;
|
|
2197
|
+
name?: string[] | string;
|
|
2198
|
+
local_name?: string[] | string;
|
|
2199
|
+
disabled?: boolean;
|
|
2200
|
+
from_updatedAt?: number;
|
|
2201
|
+
from_time?: number;
|
|
2202
|
+
to_time?: number;
|
|
2203
|
+
client?: string;
|
|
2204
|
+
user?: string;
|
|
2205
|
+
tags?: string[];
|
|
2206
|
+
template_id?: string;
|
|
2207
|
+
teams?: string[];
|
|
2208
|
+
route?: string;
|
|
2209
|
+
populatedKeys?: PopulatedKeys[];
|
|
2210
|
+
[key: string]: any;
|
|
2211
|
+
};
|
|
2212
|
+
interface Result extends DefaultPaginationResult {
|
|
2213
|
+
data: ActivityStoreCheckWithPopulatedKeysSchema[];
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
export namespace Get {
|
|
2217
|
+
type ID = string;
|
|
2218
|
+
interface Params {}
|
|
2219
|
+
type Result = ActivityStorecheckSchema;
|
|
2220
|
+
}
|
|
2221
|
+
export namespace Create {
|
|
2222
|
+
type Body = CreateBody;
|
|
2223
|
+
type Result = ActivityStorecheckSchema;
|
|
2224
|
+
}
|
|
2225
|
+
export namespace Update {
|
|
2226
|
+
type ID = string;
|
|
2227
|
+
type Body = UpdateBody;
|
|
2228
|
+
type Result = ActivityStorecheckSchema;
|
|
2229
|
+
}
|
|
2230
|
+
export {};
|
|
2231
|
+
}
|
|
2045
2232
|
namespace Msl {
|
|
2046
2233
|
interface MslSchema {
|
|
2047
2234
|
_id: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2268,6 +2268,54 @@ export default class Repzo {
|
|
|
2268
2268
|
},
|
|
2269
2269
|
};
|
|
2270
2270
|
|
|
2271
|
+
activityStorecheck = {
|
|
2272
|
+
_path: "/activity-storecheck",
|
|
2273
|
+
find: async (
|
|
2274
|
+
params?: Service.ActivityStorecheck.Find.Params
|
|
2275
|
+
): Promise<Service.ActivityStorecheck.Find.Result> => {
|
|
2276
|
+
let res: Service.ActivityStorecheck.Find.Result = await this._fetch(
|
|
2277
|
+
this.svAPIEndpoint,
|
|
2278
|
+
this.activityStorecheck._path,
|
|
2279
|
+
params
|
|
2280
|
+
);
|
|
2281
|
+
return res;
|
|
2282
|
+
},
|
|
2283
|
+
|
|
2284
|
+
get: async (
|
|
2285
|
+
id: Service.ActivityStorecheck.Get.ID,
|
|
2286
|
+
params?: Service.ActivityStorecheck.Get.Params
|
|
2287
|
+
): Promise<Service.ActivityStorecheck.Get.Result> => {
|
|
2288
|
+
return await this._fetch(
|
|
2289
|
+
this.svAPIEndpoint,
|
|
2290
|
+
this.activityStorecheck._path + `/${id}`,
|
|
2291
|
+
params
|
|
2292
|
+
);
|
|
2293
|
+
},
|
|
2294
|
+
|
|
2295
|
+
create: async (
|
|
2296
|
+
body: Service.ActivityStorecheck.Create.Body
|
|
2297
|
+
): Promise<Service.ActivityStorecheck.Create.Result> => {
|
|
2298
|
+
let res = await this._create(
|
|
2299
|
+
this.svAPIEndpoint,
|
|
2300
|
+
this.activityStorecheck._path,
|
|
2301
|
+
body
|
|
2302
|
+
);
|
|
2303
|
+
return res;
|
|
2304
|
+
},
|
|
2305
|
+
|
|
2306
|
+
update: async (
|
|
2307
|
+
id: Service.ActivityStorecheck.Update.ID,
|
|
2308
|
+
body: Service.ActivityStorecheck.Update.Body
|
|
2309
|
+
): Promise<Service.ActivityStorecheck.Update.Result> => {
|
|
2310
|
+
let res: Service.ActivityStorecheck.Update.Result = await this._update(
|
|
2311
|
+
this.svAPIEndpoint,
|
|
2312
|
+
this.activityStorecheck._path + `/${id}`,
|
|
2313
|
+
body
|
|
2314
|
+
);
|
|
2315
|
+
return res;
|
|
2316
|
+
},
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2271
2319
|
adjustInventory = {
|
|
2272
2320
|
_path: "/adjust-inventory",
|
|
2273
2321
|
find: async (
|
package/src/types/index.ts
CHANGED
|
@@ -225,6 +225,18 @@ export type Day =
|
|
|
225
225
|
| "Fri"
|
|
226
226
|
| "Sat"
|
|
227
227
|
| string;
|
|
228
|
+
|
|
229
|
+
export type FieldType =
|
|
230
|
+
| "Text"
|
|
231
|
+
| "String"
|
|
232
|
+
| "Date"
|
|
233
|
+
| "Image"
|
|
234
|
+
| "Boolean"
|
|
235
|
+
| "Number"
|
|
236
|
+
| "List"
|
|
237
|
+
| "Separator"
|
|
238
|
+
| "Heading"
|
|
239
|
+
| "Media";
|
|
228
240
|
export interface WeeklyDetails {
|
|
229
241
|
every: number;
|
|
230
242
|
days: Day[];
|
|
@@ -377,6 +389,11 @@ export interface GeoTag {
|
|
|
377
389
|
lng: number;
|
|
378
390
|
formatted_address: string;
|
|
379
391
|
}
|
|
392
|
+
interface GeoPoint {
|
|
393
|
+
type: "Point";
|
|
394
|
+
coordinates: number[];
|
|
395
|
+
}
|
|
396
|
+
|
|
380
397
|
// <reference path = "vehicle.ts" />
|
|
381
398
|
export namespace Service {
|
|
382
399
|
export namespace Client {
|
|
@@ -1893,17 +1910,6 @@ export namespace Service {
|
|
|
1893
1910
|
| "product-brand"
|
|
1894
1911
|
| "product-group";
|
|
1895
1912
|
|
|
1896
|
-
type FieldType =
|
|
1897
|
-
| "Text"
|
|
1898
|
-
| "String"
|
|
1899
|
-
| "Date"
|
|
1900
|
-
| "Image"
|
|
1901
|
-
| "Boolean"
|
|
1902
|
-
| "Number"
|
|
1903
|
-
| "List"
|
|
1904
|
-
| "Separator"
|
|
1905
|
-
| "Heading"
|
|
1906
|
-
| "Media";
|
|
1907
1913
|
type DataType =
|
|
1908
1914
|
| "Separator"
|
|
1909
1915
|
| "timestamp"
|
|
@@ -2074,6 +2080,192 @@ export namespace Service {
|
|
|
2074
2080
|
}
|
|
2075
2081
|
}
|
|
2076
2082
|
|
|
2083
|
+
export namespace ActivityStorecheck {
|
|
2084
|
+
interface Field {
|
|
2085
|
+
_id?: string;
|
|
2086
|
+
name: string;
|
|
2087
|
+
type: FieldType;
|
|
2088
|
+
isArray: boolean;
|
|
2089
|
+
isRequired?: boolean;
|
|
2090
|
+
is_calculated_field?: boolean;
|
|
2091
|
+
formula_key?: string;
|
|
2092
|
+
parent_field?: string;
|
|
2093
|
+
custom_list?: string;
|
|
2094
|
+
field_id: string;
|
|
2095
|
+
result: any[];
|
|
2096
|
+
result_custom_list_ids?: any[];
|
|
2097
|
+
calculation_status?: "success" | "failed";
|
|
2098
|
+
calculation_error?: string | any[];
|
|
2099
|
+
company_namespace?: string[];
|
|
2100
|
+
}
|
|
2101
|
+
export interface Division {
|
|
2102
|
+
fields: Field[];
|
|
2103
|
+
}
|
|
2104
|
+
interface Result {
|
|
2105
|
+
source_id: string;
|
|
2106
|
+
source_name: string;
|
|
2107
|
+
divisions: Division[];
|
|
2108
|
+
}
|
|
2109
|
+
interface Entry {
|
|
2110
|
+
entry_id: string;
|
|
2111
|
+
source:
|
|
2112
|
+
| "product"
|
|
2113
|
+
| "variant"
|
|
2114
|
+
| "product-category"
|
|
2115
|
+
| "product-sub-category"
|
|
2116
|
+
| "product-brand"
|
|
2117
|
+
| "product-group";
|
|
2118
|
+
results: Result[];
|
|
2119
|
+
}
|
|
2120
|
+
export interface ActivityStorecheckSchema {
|
|
2121
|
+
_id: string;
|
|
2122
|
+
company_namespace: string[];
|
|
2123
|
+
client: string;
|
|
2124
|
+
client_name: string;
|
|
2125
|
+
sync_id: string;
|
|
2126
|
+
time_zone: string;
|
|
2127
|
+
template_id: string;
|
|
2128
|
+
visit?: string;
|
|
2129
|
+
visit_id: string;
|
|
2130
|
+
battery_level?: number;
|
|
2131
|
+
user: string;
|
|
2132
|
+
user_name: string;
|
|
2133
|
+
time: number;
|
|
2134
|
+
geo_tag?: GeoTag;
|
|
2135
|
+
geoPoint: GeoPoint;
|
|
2136
|
+
teams?: string[];
|
|
2137
|
+
route?: string;
|
|
2138
|
+
tags?: string[];
|
|
2139
|
+
entries: Entry[];
|
|
2140
|
+
platform?: string;
|
|
2141
|
+
version_name?: string;
|
|
2142
|
+
device_brand?: string;
|
|
2143
|
+
device_os?: string;
|
|
2144
|
+
device_os_version?: string;
|
|
2145
|
+
device_model?: string;
|
|
2146
|
+
identifier?: number;
|
|
2147
|
+
device_id?: string;
|
|
2148
|
+
device_unique_id?: string;
|
|
2149
|
+
network_state?: number;
|
|
2150
|
+
serial_number?: SerialNumber;
|
|
2151
|
+
job_start_time?: number;
|
|
2152
|
+
job_end_time?: number;
|
|
2153
|
+
job_duration?: number;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
export interface CreateBody {
|
|
2157
|
+
company_namespace: string[];
|
|
2158
|
+
client: string;
|
|
2159
|
+
client_name: string;
|
|
2160
|
+
time_zone: string;
|
|
2161
|
+
template_id: string;
|
|
2162
|
+
visit?: string;
|
|
2163
|
+
visit_id: string;
|
|
2164
|
+
user: string;
|
|
2165
|
+
user_name: string;
|
|
2166
|
+
time: number;
|
|
2167
|
+
geo_tag?: GeoTag;
|
|
2168
|
+
geoPoint: GeoPoint;
|
|
2169
|
+
teams?: string[];
|
|
2170
|
+
route?: string;
|
|
2171
|
+
tags?: string[];
|
|
2172
|
+
entries: Entry[];
|
|
2173
|
+
}
|
|
2174
|
+
export interface UpdateBody {
|
|
2175
|
+
_id?: string;
|
|
2176
|
+
company_namespace?: string[];
|
|
2177
|
+
client?: string;
|
|
2178
|
+
client_name?: string;
|
|
2179
|
+
sync_id?: string;
|
|
2180
|
+
time_zone?: string;
|
|
2181
|
+
template_id?: string;
|
|
2182
|
+
visit?: string;
|
|
2183
|
+
visit_id?: string;
|
|
2184
|
+
battery_level?: number;
|
|
2185
|
+
user?: string;
|
|
2186
|
+
user_name?: string;
|
|
2187
|
+
time?: number;
|
|
2188
|
+
geo_tag?: GeoTag;
|
|
2189
|
+
geoPoint?: GeoPoint;
|
|
2190
|
+
teams?: string[];
|
|
2191
|
+
route?: string;
|
|
2192
|
+
tags?: string[];
|
|
2193
|
+
entries?: Entry[];
|
|
2194
|
+
platform?: string;
|
|
2195
|
+
version_name?: string;
|
|
2196
|
+
device_brand?: string;
|
|
2197
|
+
device_os?: string;
|
|
2198
|
+
device_os_version?: string;
|
|
2199
|
+
device_model?: string;
|
|
2200
|
+
identifier?: number;
|
|
2201
|
+
device_id?: string;
|
|
2202
|
+
device_unique_id?: string;
|
|
2203
|
+
network_state?: number;
|
|
2204
|
+
serial_number?: SerialNumber;
|
|
2205
|
+
job_start_time?: number;
|
|
2206
|
+
job_end_time?: number;
|
|
2207
|
+
job_duration?: number;
|
|
2208
|
+
}
|
|
2209
|
+
type PopulatedKeys =
|
|
2210
|
+
| "teams"
|
|
2211
|
+
| "tags"
|
|
2212
|
+
| "client"
|
|
2213
|
+
| "user"
|
|
2214
|
+
| "route"
|
|
2215
|
+
| "visit"
|
|
2216
|
+
| "template_id";
|
|
2217
|
+
|
|
2218
|
+
export type ActivityStoreCheckWithPopulatedKeysSchema = ActivityStorecheckSchema & {
|
|
2219
|
+
teams_populated: Team.TeamSchema[] | string[];
|
|
2220
|
+
tags_populated: Tag.TagSchema[] | string[];
|
|
2221
|
+
client_populated: Client.ClientSchema | string;
|
|
2222
|
+
user_populated: Rep.RepSchema | string;
|
|
2223
|
+
route_populated: Route.RouteSchema | string;
|
|
2224
|
+
visit_populated: Visit.VisitSchema | string;
|
|
2225
|
+
template_id_populated:
|
|
2226
|
+
| StorecheckTemplate.StorecheckTemplateSchema
|
|
2227
|
+
| string;
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
export namespace Find {
|
|
2231
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
2232
|
+
_id?: string[] | string;
|
|
2233
|
+
search?: string;
|
|
2234
|
+
name?: string[] | string;
|
|
2235
|
+
local_name?: string[] | string;
|
|
2236
|
+
disabled?: boolean;
|
|
2237
|
+
from_updatedAt?: number;
|
|
2238
|
+
from_time?: number;
|
|
2239
|
+
to_time?: number;
|
|
2240
|
+
client?: string;
|
|
2241
|
+
user?: string;
|
|
2242
|
+
tags?: string[];
|
|
2243
|
+
template_id?: string;
|
|
2244
|
+
teams?: string[];
|
|
2245
|
+
route?: string;
|
|
2246
|
+
populatedKeys?: PopulatedKeys[];
|
|
2247
|
+
[key: string]: any;
|
|
2248
|
+
};
|
|
2249
|
+
export interface Result extends DefaultPaginationResult {
|
|
2250
|
+
data: ActivityStoreCheckWithPopulatedKeysSchema[];
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
export namespace Get {
|
|
2254
|
+
export type ID = string;
|
|
2255
|
+
export interface Params {}
|
|
2256
|
+
export type Result = ActivityStorecheckSchema;
|
|
2257
|
+
}
|
|
2258
|
+
export namespace Create {
|
|
2259
|
+
export type Body = CreateBody;
|
|
2260
|
+
export type Result = ActivityStorecheckSchema;
|
|
2261
|
+
}
|
|
2262
|
+
export namespace Update {
|
|
2263
|
+
export type ID = string;
|
|
2264
|
+
export type Body = UpdateBody;
|
|
2265
|
+
export type Result = ActivityStorecheckSchema;
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2077
2269
|
export namespace Msl {
|
|
2078
2270
|
export interface MslSchema {
|
|
2079
2271
|
_id: string;
|