merchi_sdk_js 0.0.56 → 0.0.58
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/package.json +1 -1
- package/src/merchi.js +2 -4
- package/src/product.js +2 -0
package/package.json
CHANGED
package/src/merchi.js
CHANGED
@@ -584,10 +584,8 @@ export function merchi(backendUri, websocketUri) {
|
|
584
584
|
}
|
585
585
|
|
586
586
|
function getJobQuote(job, success, error) {
|
587
|
-
var
|
588
|
-
|
589
|
-
request = new Request(),
|
590
|
-
data = serialise(slimJob)[0];
|
587
|
+
var request = new Request(),
|
588
|
+
data = serialise(job, {}, '', [], {excludeOld: true});
|
591
589
|
request.resource('/specialised-order-estimate/');
|
592
590
|
request.method('POST');
|
593
591
|
request.data().merge(data);
|
package/src/product.js
CHANGED
@@ -23,6 +23,7 @@ import { User } from './user.js';
|
|
23
23
|
import { Job } from './job.js';
|
24
24
|
import { SeoDomainPage } from './seo_domain_page.js';
|
25
25
|
import { InternalTag } from './internal_tag.js';
|
26
|
+
import { DraftPreview } from './draft_preview.js';
|
26
27
|
|
27
28
|
export function Product() {
|
28
29
|
this.resource = '/products';
|
@@ -108,6 +109,7 @@ export function Product() {
|
|
108
109
|
addPropertyTo(this, 'taxType', CountryTax);
|
109
110
|
addPropertyTo(this, 'defaultJob', Job);
|
110
111
|
addPropertyTo(this, 'supplyChainRequestJobs', Job);
|
112
|
+
addPropertyTo(this, 'draftPreviews', DraftPreview);
|
111
113
|
addPropertyTo(this, 'draftTemplates', DraftTemplate);
|
112
114
|
addPropertyTo(this, 'shipmentMethods', ShipmentMethod);
|
113
115
|
addPropertyTo(this, 'seoDomainPages', SeoDomainPage);
|