@schally/node-akeneo-api-client 1.1.3 → 1.1.4
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.
|
@@ -2,11 +2,14 @@ import { AkeneoApiClient } from '../akeneo-api-client';
|
|
|
2
2
|
export type LaunchJobResponse = {
|
|
3
3
|
execution_id: string;
|
|
4
4
|
};
|
|
5
|
+
export type LaunchImportJobOptions = {
|
|
6
|
+
import_mode?: 'create_only' | 'update_only' | 'create_or_update';
|
|
7
|
+
};
|
|
5
8
|
export declare class JobsApi {
|
|
6
9
|
private readonly client;
|
|
7
10
|
private readonly endpoint;
|
|
8
11
|
constructor(client: AkeneoApiClient);
|
|
9
12
|
launchExportJob(code: string): Promise<LaunchJobResponse>;
|
|
10
|
-
launchImportJob(code: string): Promise<LaunchJobResponse>;
|
|
13
|
+
launchImportJob(code: string, options?: LaunchImportJobOptions): Promise<LaunchJobResponse>;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=jobs-api.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/jobs-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qBAAa,OAAO;IAGN,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;gBAEnB,MAAM,EAAE,eAAe;IAE9C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIzD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"jobs-api.service.d.ts","sourceRoot":"","sources":["../../../src/services/api/jobs-api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;CAClE,CAAC;AAEF,qBAAa,OAAO;IAGN,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;gBAEnB,MAAM,EAAE,eAAe;IAE9C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIzD,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGtG"}
|
|
@@ -9,8 +9,8 @@ class JobsApi {
|
|
|
9
9
|
async launchExportJob(code) {
|
|
10
10
|
return this.client.httpClient.post(`${this.endpoint}/export/${code}`, {}).then((response) => response.data);
|
|
11
11
|
}
|
|
12
|
-
async launchImportJob(code) {
|
|
13
|
-
return this.client.httpClient.post(`${this.endpoint}/import/${code}`,
|
|
12
|
+
async launchImportJob(code, options = {}) {
|
|
13
|
+
return this.client.httpClient.post(`${this.endpoint}/import/${code}`, options).then((response) => response.data);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.JobsApi = JobsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs-api.service.js","sourceRoot":"","sources":["../../../src/services/api/jobs-api.service.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"jobs-api.service.js","sourceRoot":"","sources":["../../../src/services/api/jobs-api.service.ts"],"names":[],"mappings":";;;AAUA,MAAa,OAAO;IAGlB,YAA6B,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;QAFnC,aAAQ,GAAG,mBAAmB,CAAC;IAEO,CAAC;IAExD,KAAK,CAAC,eAAe,CAAC,IAAY;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,WAAW,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9G,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAY,EAAE,UAAkC,EAAE;QACtE,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACnH,CAAC;CACF;AAZD,0BAYC"}
|