repzo 1.0.86 → 1.0.88

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
@@ -1147,4 +1147,66 @@ export default class Repzo {
1147
1147
  body: Service.StoreAssetPartUnit.Patch.Body
1148
1148
  ) => Promise<Service.StoreAssetPartUnit.Patch.Result>;
1149
1149
  };
1150
+ ocrInvoiceJobTemplate: {
1151
+ _path: string;
1152
+ find: (
1153
+ params?: Service.OcrInvoiceJobTemplate.Find.Params
1154
+ ) => Promise<Service.OcrInvoiceJobTemplate.Find.Result>;
1155
+ get: (
1156
+ id: Service.OcrInvoiceJobTemplate.Get.ID
1157
+ ) => Promise<Service.OcrInvoiceJobTemplate.Get.Result>;
1158
+ create: (
1159
+ body: Service.OcrInvoiceJobTemplate.Create.Body
1160
+ ) => Promise<Service.OcrInvoiceJobTemplate.Create.Result>;
1161
+ update: (
1162
+ id: Service.OcrInvoiceJobTemplate.Update.ID,
1163
+ body: Service.OcrInvoiceJobTemplate.Update.Body
1164
+ ) => Promise<Service.OcrInvoiceJobTemplate.Update.Result>;
1165
+ };
1166
+ ocrInvoiceJobGroup: {
1167
+ _path: string;
1168
+ find: (
1169
+ params?: Service.OcrInvoiceJobGroup.Find.Params
1170
+ ) => Promise<Service.OcrInvoiceJobGroup.Find.Result>;
1171
+ get: (
1172
+ id: Service.OcrInvoiceJobGroup.Get.ID
1173
+ ) => Promise<Service.OcrInvoiceJobGroup.Get.Result>;
1174
+ create: (
1175
+ body: Service.OcrInvoiceJobGroup.Create.Body
1176
+ ) => Promise<Service.OcrInvoiceJobGroup.Create.Result>;
1177
+ };
1178
+ activityAiSalesOrder: {
1179
+ _path: string;
1180
+ find: (
1181
+ params?: Service.ActivityAiSalesOrder.Find.Params
1182
+ ) => Promise<Service.ActivityAiSalesOrder.Find.Result>;
1183
+ get: (
1184
+ id: Service.ActivityAiSalesOrder.Get.ID
1185
+ ) => Promise<Service.ActivityAiSalesOrder.Get.Result>;
1186
+ create: (
1187
+ body: Service.ActivityAiSalesOrder.Create.Body
1188
+ ) => Promise<Service.ActivityAiSalesOrder.Create.Result>;
1189
+ };
1190
+ ocrInvoiceJob: {
1191
+ _path: string;
1192
+ find: (
1193
+ params?: Service.OcrInvoiceJob.Find.Params
1194
+ ) => Promise<Service.OcrInvoiceJob.Find.Result>;
1195
+ get: (
1196
+ id: Service.OcrInvoiceJob.Get.ID
1197
+ ) => Promise<Service.OcrInvoiceJob.Get.Result>;
1198
+ };
1199
+ ocrInvoiceJobPage: {
1200
+ _path: string;
1201
+ find: (
1202
+ params?: Service.OcrInvoiceJobPage.Find.Params
1203
+ ) => Promise<Service.OcrInvoiceJobPage.Find.Result>;
1204
+ get: (
1205
+ id: Service.OcrInvoiceJobPage.Get.ID
1206
+ ) => Promise<Service.OcrInvoiceJobPage.Get.Result>;
1207
+ update: (
1208
+ id: Service.OcrInvoiceJobPage.Update.ID,
1209
+ body: Service.OcrInvoiceJobPage.Update.Body
1210
+ ) => Promise<Service.OcrInvoiceJobPage.Update.Result>;
1211
+ };
1150
1212
  }
package/lib/index.js CHANGED
@@ -2161,6 +2161,131 @@ export default class Repzo {
2161
2161
  return res;
2162
2162
  },
2163
2163
  };
2164
+ this.ocrInvoiceJobTemplate = {
2165
+ _path: "/ocr-invoice-job-template",
2166
+ find: async (params) => {
2167
+ let res = await this._fetch(
2168
+ this.svAPIEndpoint,
2169
+ this.ocrInvoiceJobTemplate._path,
2170
+ params
2171
+ );
2172
+ return res;
2173
+ },
2174
+ get: async (id) => {
2175
+ return await this._fetch(
2176
+ this.svAPIEndpoint,
2177
+ this.ocrInvoiceJobTemplate._path + `/${id}`
2178
+ );
2179
+ },
2180
+ create: async (body) => {
2181
+ let res = await this._create(
2182
+ this.svAPIEndpoint,
2183
+ this.ocrInvoiceJobTemplate._path,
2184
+ body
2185
+ );
2186
+ return res;
2187
+ },
2188
+ update: async (id, body) => {
2189
+ let res = await this._update(
2190
+ this.svAPIEndpoint,
2191
+ this.ocrInvoiceJobTemplate._path + `/${id}`,
2192
+ body
2193
+ );
2194
+ return res;
2195
+ },
2196
+ };
2197
+ this.ocrInvoiceJobGroup = {
2198
+ _path: "/ocr-invoice-job-group",
2199
+ find: async (params) => {
2200
+ let res = await this._fetch(
2201
+ this.svAPIEndpoint,
2202
+ this.ocrInvoiceJobGroup._path,
2203
+ params
2204
+ );
2205
+ return res;
2206
+ },
2207
+ get: async (id) => {
2208
+ return await this._fetch(
2209
+ this.svAPIEndpoint,
2210
+ this.ocrInvoiceJobGroup._path + `/${id}`
2211
+ );
2212
+ },
2213
+ create: async (body) => {
2214
+ let res = await this._create(
2215
+ this.svAPIEndpoint,
2216
+ this.ocrInvoiceJobGroup._path,
2217
+ body
2218
+ );
2219
+ return res;
2220
+ },
2221
+ };
2222
+ this.activityAiSalesOrder = {
2223
+ _path: "/activity-ai-sales-order",
2224
+ find: async (params) => {
2225
+ let res = await this._fetch(
2226
+ this.svAPIEndpoint,
2227
+ this.activityAiSalesOrder._path,
2228
+ params
2229
+ );
2230
+ return res;
2231
+ },
2232
+ get: async (id) => {
2233
+ return await this._fetch(
2234
+ this.svAPIEndpoint,
2235
+ this.activityAiSalesOrder._path + `/${id}`
2236
+ );
2237
+ },
2238
+ create: async (body) => {
2239
+ let res = await this._create(
2240
+ this.svAPIEndpoint,
2241
+ this.activityAiSalesOrder._path,
2242
+ body
2243
+ );
2244
+ return res;
2245
+ },
2246
+ };
2247
+ this.ocrInvoiceJob = {
2248
+ _path: "/ocr-invoice-job",
2249
+ find: async (params) => {
2250
+ let res = await this._fetch(
2251
+ this.svAPIEndpoint,
2252
+ this.ocrInvoiceJob._path,
2253
+ params
2254
+ );
2255
+ return res;
2256
+ },
2257
+ get: async (id) => {
2258
+ return await this._fetch(
2259
+ this.svAPIEndpoint,
2260
+ this.ocrInvoiceJob._path + `/${id}`
2261
+ );
2262
+ },
2263
+ };
2264
+ this.ocrInvoiceJobPage = {
2265
+ _path: "/ocr-invoice-job-page",
2266
+ find: async (params) => {
2267
+ let res = await this._fetch(
2268
+ this.svAPIEndpoint,
2269
+ this.ocrInvoiceJobPage._path,
2270
+ params
2271
+ );
2272
+ return res;
2273
+ },
2274
+ get: async (id) => {
2275
+ return await this._fetch(
2276
+ this.svAPIEndpoint,
2277
+ this.ocrInvoiceJobPage._path + `/${id}`
2278
+ );
2279
+ },
2280
+ update: async (id, body) => {
2281
+ let res = await this._update(
2282
+ this.svAPIEndpoint,
2283
+ this.ocrInvoiceJobPage._path + `/${id}`,
2284
+ body
2285
+ );
2286
+ return res;
2287
+ },
2288
+ };
2164
2289
  this.svAPIEndpoint =
2165
2290
  !options?.env || options?.env == "production"
2166
2291
  ? "https://sv.api.repzo.me"