merchi_sdk_ts 1.12.0 → 1.14.0
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/dist/entities/product.js +9 -0
- package/dist/entities/product_form.js +92 -0
- package/dist/entities/product_form_version.js +95 -0
- package/dist/index.js +3 -1
- package/dist/merchi.js +4 -0
- package/merchi_sdk_ts-1.13.1.tgz +0 -0
- package/package.json +1 -1
- package/src/entities/product.ts +7 -0
- package/src/entities/product_form.ts +51 -0
- package/src/entities/product_form_version.ts +51 -0
- package/src/index.ts +4 -0
- package/src/merchi.ts +6 -0
package/dist/entities/product.js
CHANGED
|
@@ -35,6 +35,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
35
35
|
};
|
|
36
36
|
import * as _ from 'lodash';
|
|
37
37
|
import { Component } from './component.js';
|
|
38
|
+
import { ProductForm } from './product_form.js';
|
|
38
39
|
import { CountryTax } from './country_tax.js';
|
|
39
40
|
import { Domain } from './domain.js';
|
|
40
41
|
import { Entity } from '../entity.js';
|
|
@@ -486,6 +487,10 @@ var Product = /** @class */ (function (_super) {
|
|
|
486
487
|
Product.property({ type: Component }),
|
|
487
488
|
__metadata("design:type", Object)
|
|
488
489
|
], Product.prototype, "component", void 0);
|
|
490
|
+
__decorate([
|
|
491
|
+
Product.property({ type: ProductForm }),
|
|
492
|
+
__metadata("design:type", Object)
|
|
493
|
+
], Product.prototype, "productForm", void 0);
|
|
489
494
|
__decorate([
|
|
490
495
|
Product.property({ arrayType: 'MerchiFile' }),
|
|
491
496
|
__metadata("design:type", Array)
|
|
@@ -550,6 +555,10 @@ var Product = /** @class */ (function (_super) {
|
|
|
550
555
|
Product.property(),
|
|
551
556
|
__metadata("design:type", Boolean)
|
|
552
557
|
], Product.prototype, "inventoriesOpen", void 0);
|
|
558
|
+
__decorate([
|
|
559
|
+
Product.property(),
|
|
560
|
+
__metadata("design:type", Boolean)
|
|
561
|
+
], Product.prototype, "clientSideCalculation", void 0);
|
|
553
562
|
__decorate([
|
|
554
563
|
Product.property(),
|
|
555
564
|
__metadata("design:type", Boolean)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
import { Entity } from '../entity.js';
|
|
26
|
+
var ProductForm = /** @class */ (function (_super) {
|
|
27
|
+
__extends(ProductForm, _super);
|
|
28
|
+
function ProductForm() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
ProductForm.resourceName = 'product_forms';
|
|
32
|
+
ProductForm.singularName = 'productForm';
|
|
33
|
+
ProductForm.pluralName = 'productForms';
|
|
34
|
+
__decorate([
|
|
35
|
+
ProductForm.property({ type: Date }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ProductForm.prototype, "archived", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
ProductForm.property({ type: Date }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], ProductForm.prototype, "created", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ProductForm.property({ type: Date }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], ProductForm.prototype, "updated", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ProductForm.property({ type: Number }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ProductForm.prototype, "id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
ProductForm.property({ type: String }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ProductForm.prototype, "name", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
ProductForm.property({ type: String }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ProductForm.prototype, "description", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ProductForm.property(),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], ProductForm.prototype, "tags", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
ProductForm.property({ type: String }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], ProductForm.prototype, "source", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
ProductForm.property({ type: String }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], ProductForm.prototype, "sdkVersion", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
ProductForm.property({ type: String }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], ProductForm.prototype, "status", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
ProductForm.property({ type: 'ProductFormVersion' }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], ProductForm.prototype, "activeVersion", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
ProductForm.property({ arrayType: 'ProductFormVersion' }),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], ProductForm.prototype, "versions", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
ProductForm.property({ type: 'User' }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], ProductForm.prototype, "createdBy", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
ProductForm.property({ type: 'User' }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], ProductForm.prototype, "updatedBy", void 0);
|
|
90
|
+
return ProductForm;
|
|
91
|
+
}(Entity));
|
|
92
|
+
export { ProductForm };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
import { Entity } from '../entity.js';
|
|
26
|
+
// Sentinel type for passthrough JSON columns (mirrors other entities). Must not
|
|
27
|
+
// be `Object`, which the property decorator rejects ("Bad attribute type").
|
|
28
|
+
var jsonPropertyType = /** @class */ (function () {
|
|
29
|
+
function jsonPropertyType() {
|
|
30
|
+
}
|
|
31
|
+
return jsonPropertyType;
|
|
32
|
+
}());
|
|
33
|
+
var ProductFormVersion = /** @class */ (function (_super) {
|
|
34
|
+
__extends(ProductFormVersion, _super);
|
|
35
|
+
function ProductFormVersion() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
ProductFormVersion.resourceName = 'product_form_versions';
|
|
39
|
+
ProductFormVersion.singularName = 'productFormVersion';
|
|
40
|
+
ProductFormVersion.pluralName = 'productFormVersions';
|
|
41
|
+
__decorate([
|
|
42
|
+
ProductFormVersion.property({ type: Date }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], ProductFormVersion.prototype, "created", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
ProductFormVersion.property({ type: Number }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ProductFormVersion.prototype, "id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
ProductFormVersion.property({ type: Number }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ProductFormVersion.prototype, "versionNumber", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ProductFormVersion.property({ type: String }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ProductFormVersion.prototype, "source", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
ProductFormVersion.property({ type: String }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], ProductFormVersion.prototype, "sdkVersion", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
ProductFormVersion.property({ type: String }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], ProductFormVersion.prototype, "compiledBundleUrl", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
ProductFormVersion.property({ type: String }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ProductFormVersion.prototype, "bundleSha", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
ProductFormVersion.property({ type: String }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ProductFormVersion.prototype, "compiledError", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
ProductFormVersion.property({ type: jsonPropertyType }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ProductFormVersion.prototype, "staticGateReport", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
ProductFormVersion.property({ type: String }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ProductFormVersion.prototype, "status", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
ProductFormVersion.property({ type: Date }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], ProductFormVersion.prototype, "approvedAt", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
ProductFormVersion.property({ type: 'User' }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], ProductFormVersion.prototype, "approvedBy", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
ProductFormVersion.property({ type: 'User' }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], ProductFormVersion.prototype, "createdBy", void 0);
|
|
93
|
+
return ProductFormVersion;
|
|
94
|
+
}(Entity));
|
|
95
|
+
export { ProductFormVersion };
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,8 @@ import { CompanyInvitation } from './entities/company_invitation.js';
|
|
|
19
19
|
import { Component } from './entities/component.js';
|
|
20
20
|
import { ComponentTag } from './entities/component_tag.js';
|
|
21
21
|
import { ComponentVersion } from './entities/component_version.js';
|
|
22
|
+
import { ProductForm } from './entities/product_form.js';
|
|
23
|
+
import { ProductFormVersion } from './entities/product_form_version.js';
|
|
22
24
|
import { CountryTax } from './entities/country_tax.js';
|
|
23
25
|
import { Discount } from './entities/discount.js';
|
|
24
26
|
import { DiscountGroup } from './entities/discount_group.js';
|
|
@@ -86,4 +88,4 @@ import * as request from './request.js';
|
|
|
86
88
|
import * as util from './util/index.js';
|
|
87
89
|
import * as pricing from './pricing/index.js';
|
|
88
90
|
import { toastNotifications } from './toasts.js';
|
|
89
|
-
export { constants, request, util, pricing, toastNotifications, Address, AgentConversation, AgentSkill, AgentSkillVersion, AgentSkillApproval, DomainChatSettings, SupportConversation, SupportMessage, Assignment, AutomaticPaymentRelationship, Bank, Cart, CartItem, CartShipmentGroup, CartShipmentQuote, Category, Company, CompanyInvitation, Component, ComponentTag, ComponentVersion, CountryTax, Discount, DiscountGroup, Domain, DomainInvitation, DomainTag, Draft, DraftComment, DraftTemplate, EmailAddress, EmailCounter, EnrolledDomain, Entity, ExchangeRate, InternalTag, Inventory, InventoryUnitVariation, Invoice, Item, Job, JobComment, JobNote, JobOperationLog, MatchingInventory, Menu, MenuItem, Merchi, MerchiFile, Notification, Page, Payment, PaymentDevice, PhoneNumber, Product, ProductReview, ProductionComment, Quote, QuoteItem, Reminder, apiFetch, apiFetchWithProgress, Session, Shipment, ShipmentLog, ShipmentItem, ShipmentItemFulfillment, ShipmentMethod, ShipmentMethodVariation, ShortUrl, SubscriptionPlan, SupplyDomain, SystemRole, Theme, ThemeCssSetting, User, UserCompany, Variation, VariationField, VariationFieldsOption, VariationOption, VariationsGroup, generateUUID, getCookie };
|
|
91
|
+
export { constants, request, util, pricing, toastNotifications, Address, AgentConversation, AgentSkill, AgentSkillVersion, AgentSkillApproval, DomainChatSettings, SupportConversation, SupportMessage, Assignment, AutomaticPaymentRelationship, Bank, Cart, CartItem, CartShipmentGroup, CartShipmentQuote, Category, Company, CompanyInvitation, Component, ComponentTag, ComponentVersion, ProductForm, ProductFormVersion, CountryTax, Discount, DiscountGroup, Domain, DomainInvitation, DomainTag, Draft, DraftComment, DraftTemplate, EmailAddress, EmailCounter, EnrolledDomain, Entity, ExchangeRate, InternalTag, Inventory, InventoryUnitVariation, Invoice, Item, Job, JobComment, JobNote, JobOperationLog, MatchingInventory, Menu, MenuItem, Merchi, MerchiFile, Notification, Page, Payment, PaymentDevice, PhoneNumber, Product, ProductReview, ProductionComment, Quote, QuoteItem, Reminder, apiFetch, apiFetchWithProgress, Session, Shipment, ShipmentLog, ShipmentItem, ShipmentItemFulfillment, ShipmentMethod, ShipmentMethodVariation, ShortUrl, SubscriptionPlan, SupplyDomain, SystemRole, Theme, ThemeCssSetting, User, UserCompany, Variation, VariationField, VariationFieldsOption, VariationOption, VariationsGroup, generateUUID, getCookie };
|
package/dist/merchi.js
CHANGED
|
@@ -50,6 +50,8 @@ import { Theme } from './entities/theme.js';
|
|
|
50
50
|
import { ThemeCssSetting } from './entities/theme_css_setting.js';
|
|
51
51
|
import { Component } from './entities/component.js';
|
|
52
52
|
import { ComponentVersion } from './entities/component_version.js';
|
|
53
|
+
import { ProductForm } from './entities/product_form.js';
|
|
54
|
+
import { ProductFormVersion } from './entities/product_form_version.js';
|
|
53
55
|
import { MerchiFile } from './entities/file.js';
|
|
54
56
|
import { EmailAddress } from './entities/email_address.js';
|
|
55
57
|
import { SeoDomainPage } from './entities/seo_domain_page.js';
|
|
@@ -216,6 +218,8 @@ var Merchi = /** @class */ (function () {
|
|
|
216
218
|
this.DraftComment = this.setupClass(DraftComment);
|
|
217
219
|
this.Component = this.setupClass(Component);
|
|
218
220
|
this.ComponentVersion = this.setupClass(ComponentVersion);
|
|
221
|
+
this.ProductForm = this.setupClass(ProductForm);
|
|
222
|
+
this.ProductFormVersion = this.setupClass(ProductFormVersion);
|
|
219
223
|
this.Theme = this.setupClass(Theme);
|
|
220
224
|
this.ThemeCssSetting = this.setupClass(ThemeCssSetting);
|
|
221
225
|
this.Company = this.setupClass(Company);
|
|
Binary file
|
package/package.json
CHANGED
package/src/entities/product.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CartItem } from './cart_item.js';
|
|
|
3
3
|
import { Category } from './category.js';
|
|
4
4
|
import { Company } from './company.js';
|
|
5
5
|
import { Component } from './component.js';
|
|
6
|
+
import { ProductForm } from './product_form.js';
|
|
6
7
|
import { CountryTax } from './country_tax.js';
|
|
7
8
|
import { DiscountGroup } from './discount_group.js';
|
|
8
9
|
import { Domain } from './domain.js';
|
|
@@ -264,6 +265,9 @@ export class Product extends Entity {
|
|
|
264
265
|
@Product.property({type: Component})
|
|
265
266
|
public component?: Component | null;
|
|
266
267
|
|
|
268
|
+
@Product.property({type: ProductForm})
|
|
269
|
+
public productForm?: ProductForm | null;
|
|
270
|
+
|
|
267
271
|
@Product.property({arrayType: 'MerchiFile'})
|
|
268
272
|
public images?: MerchiFile[];
|
|
269
273
|
|
|
@@ -312,6 +316,9 @@ export class Product extends Entity {
|
|
|
312
316
|
@Product.property()
|
|
313
317
|
public inventoriesOpen?: boolean;
|
|
314
318
|
|
|
319
|
+
@Product.property()
|
|
320
|
+
public clientSideCalculation?: boolean;
|
|
321
|
+
|
|
315
322
|
@Product.property()
|
|
316
323
|
public supplyChainDisabled?: boolean;
|
|
317
324
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { ProductFormVersion } from './product_form_version.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
|
|
5
|
+
export class ProductForm extends Entity {
|
|
6
|
+
protected static resourceName = 'product_forms';
|
|
7
|
+
protected static singularName = 'productForm';
|
|
8
|
+
protected static pluralName = 'productForms';
|
|
9
|
+
|
|
10
|
+
@ProductForm.property({type: Date})
|
|
11
|
+
public archived?: Date | null;
|
|
12
|
+
|
|
13
|
+
@ProductForm.property({type: Date})
|
|
14
|
+
public created?: Date;
|
|
15
|
+
|
|
16
|
+
@ProductForm.property({type: Date})
|
|
17
|
+
public updated?: Date;
|
|
18
|
+
|
|
19
|
+
@ProductForm.property({type: Number})
|
|
20
|
+
public id?: number;
|
|
21
|
+
|
|
22
|
+
@ProductForm.property({type: String})
|
|
23
|
+
public name?: string;
|
|
24
|
+
|
|
25
|
+
@ProductForm.property({type: String})
|
|
26
|
+
public description?: string;
|
|
27
|
+
|
|
28
|
+
@ProductForm.property()
|
|
29
|
+
public tags?: string[];
|
|
30
|
+
|
|
31
|
+
@ProductForm.property({type: String})
|
|
32
|
+
public source?: string;
|
|
33
|
+
|
|
34
|
+
@ProductForm.property({type: String})
|
|
35
|
+
public sdkVersion?: string;
|
|
36
|
+
|
|
37
|
+
@ProductForm.property({type: String})
|
|
38
|
+
public status?: string;
|
|
39
|
+
|
|
40
|
+
@ProductForm.property({type: 'ProductFormVersion'})
|
|
41
|
+
public activeVersion?: ProductFormVersion | null;
|
|
42
|
+
|
|
43
|
+
@ProductForm.property({arrayType: 'ProductFormVersion'})
|
|
44
|
+
public versions?: ProductFormVersion[];
|
|
45
|
+
|
|
46
|
+
@ProductForm.property({type: 'User'})
|
|
47
|
+
public createdBy?: User | null;
|
|
48
|
+
|
|
49
|
+
@ProductForm.property({type: 'User'})
|
|
50
|
+
public updatedBy?: User | null;
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { User } from './user.js';
|
|
3
|
+
|
|
4
|
+
// Sentinel type for passthrough JSON columns (mirrors other entities). Must not
|
|
5
|
+
// be `Object`, which the property decorator rejects ("Bad attribute type").
|
|
6
|
+
const jsonPropertyType = class {};
|
|
7
|
+
|
|
8
|
+
export class ProductFormVersion extends Entity {
|
|
9
|
+
protected static resourceName = 'product_form_versions';
|
|
10
|
+
protected static singularName = 'productFormVersion';
|
|
11
|
+
protected static pluralName = 'productFormVersions';
|
|
12
|
+
|
|
13
|
+
@ProductFormVersion.property({type: Date})
|
|
14
|
+
public created?: Date;
|
|
15
|
+
|
|
16
|
+
@ProductFormVersion.property({type: Number})
|
|
17
|
+
public id?: number;
|
|
18
|
+
|
|
19
|
+
@ProductFormVersion.property({type: Number})
|
|
20
|
+
public versionNumber?: number;
|
|
21
|
+
|
|
22
|
+
@ProductFormVersion.property({type: String})
|
|
23
|
+
public source?: string;
|
|
24
|
+
|
|
25
|
+
@ProductFormVersion.property({type: String})
|
|
26
|
+
public sdkVersion?: string;
|
|
27
|
+
|
|
28
|
+
@ProductFormVersion.property({type: String})
|
|
29
|
+
public compiledBundleUrl?: string | null;
|
|
30
|
+
|
|
31
|
+
@ProductFormVersion.property({type: String})
|
|
32
|
+
public bundleSha?: string | null;
|
|
33
|
+
|
|
34
|
+
@ProductFormVersion.property({type: String})
|
|
35
|
+
public compiledError?: string | null;
|
|
36
|
+
|
|
37
|
+
@ProductFormVersion.property({type: jsonPropertyType})
|
|
38
|
+
public staticGateReport?: any;
|
|
39
|
+
|
|
40
|
+
@ProductFormVersion.property({type: String})
|
|
41
|
+
public status?: string;
|
|
42
|
+
|
|
43
|
+
@ProductFormVersion.property({type: Date})
|
|
44
|
+
public approvedAt?: Date | null;
|
|
45
|
+
|
|
46
|
+
@ProductFormVersion.property({type: 'User'})
|
|
47
|
+
public approvedBy?: User | null;
|
|
48
|
+
|
|
49
|
+
@ProductFormVersion.property({type: 'User'})
|
|
50
|
+
public createdBy?: User | null;
|
|
51
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { CompanyInvitation } from './entities/company_invitation.js';
|
|
|
19
19
|
import { Component } from './entities/component.js';
|
|
20
20
|
import { ComponentTag } from './entities/component_tag.js';
|
|
21
21
|
import { ComponentVersion } from './entities/component_version.js';
|
|
22
|
+
import { ProductForm } from './entities/product_form.js';
|
|
23
|
+
import { ProductFormVersion } from './entities/product_form_version.js';
|
|
22
24
|
import { CountryTax } from './entities/country_tax.js';
|
|
23
25
|
import { Discount } from './entities/discount.js';
|
|
24
26
|
import { DiscountGroup } from './entities/discount_group.js';
|
|
@@ -118,6 +120,8 @@ export {
|
|
|
118
120
|
Component,
|
|
119
121
|
ComponentTag,
|
|
120
122
|
ComponentVersion,
|
|
123
|
+
ProductForm,
|
|
124
|
+
ProductFormVersion,
|
|
121
125
|
CountryTax,
|
|
122
126
|
Discount,
|
|
123
127
|
DiscountGroup,
|
package/src/merchi.ts
CHANGED
|
@@ -44,6 +44,8 @@ import { Theme } from './entities/theme.js';
|
|
|
44
44
|
import { ThemeCssSetting } from './entities/theme_css_setting.js';
|
|
45
45
|
import { Component } from './entities/component.js';
|
|
46
46
|
import { ComponentVersion } from './entities/component_version.js';
|
|
47
|
+
import { ProductForm } from './entities/product_form.js';
|
|
48
|
+
import { ProductFormVersion } from './entities/product_form_version.js';
|
|
47
49
|
import { MerchiFile } from './entities/file.js';
|
|
48
50
|
import { EmailAddress } from './entities/email_address.js';
|
|
49
51
|
import { SeoDomainPage } from './entities/seo_domain_page.js';
|
|
@@ -199,6 +201,8 @@ export class Merchi {
|
|
|
199
201
|
public Quote: typeof Quote;
|
|
200
202
|
public Component: typeof Component;
|
|
201
203
|
public ComponentVersion : typeof ComponentVersion;
|
|
204
|
+
public ProductForm: typeof ProductForm;
|
|
205
|
+
public ProductFormVersion: typeof ProductFormVersion;
|
|
202
206
|
public QuoteItem: typeof QuoteItem;
|
|
203
207
|
public Reminder: typeof Reminder;
|
|
204
208
|
public MatchingInventory: typeof MatchingInventory;
|
|
@@ -277,6 +281,8 @@ export class Merchi {
|
|
|
277
281
|
this.DraftComment = this.setupClass(DraftComment) as typeof DraftComment;
|
|
278
282
|
this.Component = this.setupClass(Component) as typeof Component;
|
|
279
283
|
this.ComponentVersion = this.setupClass(ComponentVersion) as typeof ComponentVersion;
|
|
284
|
+
this.ProductForm = this.setupClass(ProductForm) as typeof ProductForm;
|
|
285
|
+
this.ProductFormVersion = this.setupClass(ProductFormVersion) as typeof ProductFormVersion;
|
|
280
286
|
this.Theme = this.setupClass(Theme) as typeof Theme;
|
|
281
287
|
this.ThemeCssSetting = this.setupClass(ThemeCssSetting) as typeof ThemeCssSetting;
|
|
282
288
|
this.Company = this.setupClass(Company) as typeof Company;
|