@reachu/database 1.0.90 → 1.0.91
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/entity/index.d.ts +2 -1
- package/dist/entity/index.js +3 -1
- package/dist/entity/index.js.map +1 -1
- package/dist/entity/modules/templates/UserTemplateEcommerce.d.ts +2 -0
- package/dist/entity/modules/templates/UserTemplateEcommerce.js +5 -0
- package/dist/entity/modules/templates/UserTemplateEcommerce.js.map +1 -1
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.d.ts +14 -0
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.js +65 -0
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.js.map +1 -0
- package/dist/migrations/1688489173526-add-webhook-template.d.ts +6 -0
- package/dist/migrations/1688489173526-add-webhook-template.js +31 -0
- package/dist/migrations/1688489173526-add-webhook-template.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -2
- package/dist/repositories/index.js +2 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/templates/index.d.ts +3 -0
- package/dist/repositories/templates/index.js +8 -1
- package/dist/repositories/templates/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +43 -10
- package/package.json +3 -3
- package/src/entity/index.ts +2 -0
- package/src/entity/modules/templates/UserTemplateEcommerce.ts +9 -0
- package/src/entity/modules/templates/WebhookTemplateEcommerce.ts +49 -0
- package/src/migrations/1688489173526-add-webhook-template.ts +16 -0
- package/src/repositories/index.ts +2 -0
- package/src/repositories/templates/index.ts +4 -0
package/dist/entity/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ import AuthMethod from './modules/templates/AuthMethod';
|
|
|
78
78
|
import EndpointTemplateEcommerce from './modules/templates/EndpointTemplateEcommerce';
|
|
79
79
|
import TemplateEcommerce from './modules/templates/TemplateEcommerce';
|
|
80
80
|
import UserTemplateEcommerce from './modules/templates/UserTemplateEcommerce';
|
|
81
|
+
import WebhookTemplateEcommerce from './modules/templates/WebhookTemplateEcommerce';
|
|
81
82
|
import ReachuSchemeConfigOrder from './modules/templates/schemeOrder/ReachuSchemeConfigOrder';
|
|
82
83
|
import TemplateEcommerceSchemeConfigOrder from './modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder';
|
|
83
84
|
import TemplateEcommerceSchemeConfigOrderMapped from './modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped';
|
|
@@ -92,4 +93,4 @@ import Subscription from './modules/subscriptions/Subscription';
|
|
|
92
93
|
import UserCountPlan from './modules/subscriptions/UserCountPlan';
|
|
93
94
|
import Translate from './Translate';
|
|
94
95
|
import Connection from './Connection';
|
|
95
|
-
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, ExternalRequest, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod, EndpointTemplateEcommerce, TemplateEcommerce, UserTemplateEcommerce, TemplateEcommerceSchemeConfigOrder, TemplateEcommerceSchemeConfigOrderMapped, ReachuSchemeConfigOrder, TemplateEcommerceSchemeConfigProduct, TemplateEcommerceSchemeConfigProductMapped, ReachuSchemeConfigProduct, TemplateEcommerceSchemeConfigVariant, TemplateEcommerceSchemeConfigVariantMapped, ReachuSchemeConfigVariant, Plan, Subscription, UserCountPlan, EnvironmentConfiguration, Translate, Connection, };
|
|
96
|
+
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, ExternalRequest, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, AuthInfo, AuthMethod, EndpointTemplateEcommerce, WebhookTemplateEcommerce, TemplateEcommerce, UserTemplateEcommerce, TemplateEcommerceSchemeConfigOrder, TemplateEcommerceSchemeConfigOrderMapped, ReachuSchemeConfigOrder, TemplateEcommerceSchemeConfigProduct, TemplateEcommerceSchemeConfigProductMapped, ReachuSchemeConfigProduct, TemplateEcommerceSchemeConfigVariant, TemplateEcommerceSchemeConfigVariantMapped, ReachuSchemeConfigVariant, Plan, Subscription, UserCountPlan, EnvironmentConfiguration, Translate, Connection, };
|
package/dist/entity/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Role = exports.ReturnAddress = exports.Return = exports.ExternalRequest = exports.Request = exports.Product = exports.Price = exports.Permission = exports.PaymentShopify = exports.Payment = exports.OrderTracking = exports.OrderShipping = exports.OrderItem = exports.OrderCustomer = exports.Order = exports.Option = exports.Notification = exports.MetricActiveUser = exports.MagentoConnection = exports.ImportedProduct = exports.Image = exports.Fulfillment = exports.FlatRateCountry = exports.FlatRate = exports.Courier = exports.Country = exports.Contact = exports.CheckoutMetadata = exports.Check = exports.Channel = exports.Category = exports.CardRegistration = exports.BusinessProducts = exports.Business = exports.BankAccount = exports.AuditedModel = exports.ApiCredential = exports.Address = exports.ShippingCountry = exports.Shipping = exports.ProductShipping = exports.PriceData = exports.CheckoutShippingAddress = exports.CheckoutBillingAddress = exports.Checkout = exports.CartItem = exports.Cart = exports.CustomProductImage = exports.CustomProduct = exports.CustomVariant = void 0;
|
|
7
|
-
exports.Connection = exports.Translate = exports.EnvironmentConfiguration = exports.UserCountPlan = exports.Subscription = exports.Plan = exports.ReachuSchemeConfigVariant = exports.TemplateEcommerceSchemeConfigVariantMapped = exports.TemplateEcommerceSchemeConfigVariant = exports.ReachuSchemeConfigProduct = exports.TemplateEcommerceSchemeConfigProductMapped = exports.TemplateEcommerceSchemeConfigProduct = exports.ReachuSchemeConfigOrder = exports.TemplateEcommerceSchemeConfigOrderMapped = exports.TemplateEcommerceSchemeConfigOrder = exports.UserTemplateEcommerce = exports.TemplateEcommerce = exports.EndpointTemplateEcommerce = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = void 0;
|
|
7
|
+
exports.Connection = exports.Translate = exports.EnvironmentConfiguration = exports.UserCountPlan = exports.Subscription = exports.Plan = exports.ReachuSchemeConfigVariant = exports.TemplateEcommerceSchemeConfigVariantMapped = exports.TemplateEcommerceSchemeConfigVariant = exports.ReachuSchemeConfigProduct = exports.TemplateEcommerceSchemeConfigProductMapped = exports.TemplateEcommerceSchemeConfigProduct = exports.ReachuSchemeConfigOrder = exports.TemplateEcommerceSchemeConfigOrderMapped = exports.TemplateEcommerceSchemeConfigOrder = exports.UserTemplateEcommerce = exports.TemplateEcommerce = exports.WebhookTemplateEcommerce = exports.EndpointTemplateEcommerce = exports.AuthMethod = exports.AuthInfo = exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = exports.RolePermission = void 0;
|
|
8
8
|
const Address_1 = __importDefault(require("./Address"));
|
|
9
9
|
exports.Address = Address_1.default;
|
|
10
10
|
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
@@ -165,6 +165,8 @@ const TemplateEcommerce_1 = __importDefault(require("./modules/templates/Templat
|
|
|
165
165
|
exports.TemplateEcommerce = TemplateEcommerce_1.default;
|
|
166
166
|
const UserTemplateEcommerce_1 = __importDefault(require("./modules/templates/UserTemplateEcommerce"));
|
|
167
167
|
exports.UserTemplateEcommerce = UserTemplateEcommerce_1.default;
|
|
168
|
+
const WebhookTemplateEcommerce_1 = __importDefault(require("./modules/templates/WebhookTemplateEcommerce"));
|
|
169
|
+
exports.WebhookTemplateEcommerce = WebhookTemplateEcommerce_1.default;
|
|
168
170
|
const ReachuSchemeConfigOrder_1 = __importDefault(require("./modules/templates/schemeOrder/ReachuSchemeConfigOrder"));
|
|
169
171
|
exports.ReachuSchemeConfigOrder = ReachuSchemeConfigOrder_1.default;
|
|
170
172
|
const TemplateEcommerceSchemeConfigOrder_1 = __importDefault(require("./modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder"));
|
package/dist/entity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;AA2H9B,kBA3HK,iBAAO,CA2HL;AA1HT,oEAA4C;AA2H1C,wBA3HK,uBAAa,CA2HL;AA1Hf,kEAA0C;AA2HxC,uBA3HK,sBAAY,CA2HL;AA1Hd,gEAAwC;AA2HtC,sBA3HK,qBAAW,CA2HL;AA1Hb,0DAAkC;AA2HhC,mBA3HK,kBAAQ,CA2HL;AA1HV,0EAAkD;AA2HhD,2BA3HK,0BAAgB,CA2HL;AA1HlB,0EAAkD;AA2HhD,2BA3HK,0BAAgB,CA2HL;AA1HlB,0DAAkC;AA2HhC,mBA3HK,kBAAQ,CA2HL;AA1HV,wDAAgC;AA2H9B,kBA3HK,iBAAO,CA2HL;AA1HT,oDAA4B;AA2H1B,gBA3HK,eAAK,CA2HL;AA1HP,0EAAkD;AA2HhD,2BA3HK,0BAAgB,CA2HL;AA1HlB,wDAAgC;AA2H9B,kBA3HK,iBAAO,CA2HL;AA1HT,wDAAgC;AA2H9B,kBA3HK,iBAAO,CA2HL;AA1HT,wDAAgC;AA2H9B,kBA3HK,iBAAO,CA2HL;AA1HT,0DAAkC;AA2HhC,mBA3HK,kBAAQ,CA2HL;AA1HV,wEAAgD;AA2H9C,0BA3HK,yBAAe,CA2HL;AA1HjB,gEAAwC;AA2HtC,sBA3HK,qBAAW,CA2HL;AA1Hb,oDAA4B;AA2H1B,gBA3HK,eAAK,CA2HL;AA1HP,wEAAgD;AA2H9C,0BA3HK,yBAAe,CA2HL;AA1HjB,yEAA+D;AA2H7D,kGA3HO,4CAAiB,OA2HP;AA1HnB,0EAAkD;AA2HhD,2BA3HK,0BAAgB,CA2HL;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CAwGL;AAvGX,0EAAkD;AAwGhD,2BAxGK,0BAAgB,CAwGL;AAvGlB,sEAA8C;AAwG5C,yBAxGK,wBAAc,CAwGL;AArGhB,4EAAoD;AAsGlD,mBAtGK,kBAAQ,CAsGL;AArGV,gFAAwD;AAsGtD,qBAtGK,oBAAU,CAsGL;AArGZ,8GAAsF;AAsGpF,oCAtGK,mCAAyB,CAsGL;AArG3B,8FAAsE;AAuGpE,4BAvGK,2BAAiB,CAuGL;AAtGnB,sGAA8E;AAuG5E,gCAvGK,+BAAqB,CAuGL;AAtGvB,4GAAoF;AAoGlF,mCApGK,kCAAwB,CAoGL;AAlG1B,sHAA8F;AAuG5F,kCAvGK,iCAAuB,CAuGL;AAtGzB,4IAAoH;AAoGlH,6CApGK,4CAAkC,CAoGL;AAnGpC,wJAAgI;AAoG9H,mDApGK,kDAAwC,CAoGL;AAlG1C,4HAAoG;AAsGlG,oCAtGK,mCAAyB,CAsGL;AArG3B,kJAA0H;AAmGxH,+CAnGK,8CAAoC,CAmGL;AAlGtC,8JAAsI;AAmGpI,qDAnGK,oDAA0C,CAmGL;AAjG5C,4HAAoG;AAqGlG,oCArGK,mCAAyB,CAqGL;AApG3B,kJAA0H;AAkGxH,+CAlGK,8CAAoC,CAkGL;AAjGtC,8JAAsI;AAkGpI,qDAlGK,oDAA0C,CAkGL;AA/F5C,wEAAgD;AAiG9C,eAjGK,cAAI,CAiGL;AAhGN,wFAAgE;AAiG9D,uBAjGK,sBAAY,CAiGL;AAhGd,0FAAkE;AAiGhE,wBAjGK,uBAAa,CAiGL;AA/Ff,4DAAoC;AAiGlC,oBAjGK,mBAAS,CAiGL;AAhGX,8DAAsC;AAiGpC,qBAjGK,oBAAU,CAiGL"}
|
|
@@ -3,11 +3,13 @@ import AuditedModel from '../../AuditedModel';
|
|
|
3
3
|
import EndpointTemplateEcommerce from './EndpointTemplateEcommerce';
|
|
4
4
|
import AuthInfo from './AuthInfo';
|
|
5
5
|
import TemplateEcommerce from './TemplateEcommerce';
|
|
6
|
+
import WebhookTemplateEcommerce from './WebhookTemplateEcommerce';
|
|
6
7
|
export default class UserTemplateEcommerce extends AuditedModel {
|
|
7
8
|
id: number;
|
|
8
9
|
deletedAt: Date;
|
|
9
10
|
user: User;
|
|
10
11
|
endpointTemplateEcommerce: EndpointTemplateEcommerce[];
|
|
12
|
+
webhookTemplateEcommerce: WebhookTemplateEcommerce[];
|
|
11
13
|
authInfo: AuthInfo;
|
|
12
14
|
templateEcommerce: TemplateEcommerce;
|
|
13
15
|
}
|
|
@@ -18,6 +18,7 @@ const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
|
18
18
|
const EndpointTemplateEcommerce_1 = __importDefault(require("./EndpointTemplateEcommerce"));
|
|
19
19
|
const AuthInfo_1 = __importDefault(require("./AuthInfo"));
|
|
20
20
|
const TemplateEcommerce_1 = __importDefault(require("./TemplateEcommerce"));
|
|
21
|
+
const WebhookTemplateEcommerce_1 = __importDefault(require("./WebhookTemplateEcommerce"));
|
|
21
22
|
let UserTemplateEcommerce = class UserTemplateEcommerce extends AuditedModel_1.default {
|
|
22
23
|
};
|
|
23
24
|
__decorate([
|
|
@@ -37,6 +38,10 @@ __decorate([
|
|
|
37
38
|
typeorm_1.OneToMany(() => EndpointTemplateEcommerce_1.default, (endpointTemplateEcommerce) => endpointTemplateEcommerce.userTemplateEcommerce, { cascade: true }),
|
|
38
39
|
__metadata("design:type", Array)
|
|
39
40
|
], UserTemplateEcommerce.prototype, "endpointTemplateEcommerce", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.OneToMany(() => WebhookTemplateEcommerce_1.default, (webhookTemplateEcommerce) => webhookTemplateEcommerce.userTemplateEcommerce, { cascade: true }),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], UserTemplateEcommerce.prototype, "webhookTemplateEcommerce", void 0);
|
|
40
45
|
__decorate([
|
|
41
46
|
typeorm_1.OneToOne(() => AuthInfo_1.default),
|
|
42
47
|
typeorm_1.JoinColumn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserTemplateEcommerce.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/UserTemplateEcommerce.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,qCASiB;AACjB,sEAA8C;AAC9C,4FAAoE;AACpE,0DAAkC;AAClC,4EAAoD;
|
|
1
|
+
{"version":3,"file":"UserTemplateEcommerce.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/UserTemplateEcommerce.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,qCASiB;AACjB,sEAA8C;AAC9C,4FAAoE;AACpE,0DAAkC;AAClC,4EAAoD;AACpD,0FAAkE;AAGlE,IAAqB,qBAAqB,GAA1C,MAAqB,qBAAsB,SAAQ,sBAAY;CAwC9D,CAAA;AAtCC;IADC,gCAAsB,EAAE;;iDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;wDAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvE,oBAAU,EAAE;8BACP,cAAI;mDAAC;AAQX;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,mCAAyB,EAC/B,CAAC,yBAAoD,EAAE,EAAE,CACvD,yBAAyB,CAAC,qBAAqB,EACjD,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;;wEACsD;AAQvD;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,kCAAwB,EAC9B,CAAC,wBAAkD,EAAE,EAAE,CACrD,wBAAwB,CAAC,qBAAqB,EAChD,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;;uEACoD;AAIrD;IAFC,kBAAQ,CAAC,GAAG,EAAE,CAAC,kBAAQ,CAAC;IACxB,oBAAU,EAAE;8BACH,kBAAQ;uDAAC;AAUnB;IARC,mBAAS,CACR,GAAG,EAAE,CAAC,2BAAiB,EACvB,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,EACjF;QACE,QAAQ,EAAE,SAAS;KACpB,CACF;IACA,oBAAU,EAAE;8BACM,2BAAiB;gEAAC;AAvClB,qBAAqB;IADzC,gBAAM,EAAE;GACY,qBAAqB,CAwCzC;kBAxCoB,qBAAqB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import UserTemplateEcommerce from './UserTemplateEcommerce';
|
|
3
|
+
export default class WebhookTemplateEcommerce extends AuditedModel {
|
|
4
|
+
id: number;
|
|
5
|
+
deletedAt: Date;
|
|
6
|
+
url: string;
|
|
7
|
+
connection: boolean;
|
|
8
|
+
response: string;
|
|
9
|
+
type: string;
|
|
10
|
+
urlParams: string;
|
|
11
|
+
body: string;
|
|
12
|
+
title: string;
|
|
13
|
+
userTemplateEcommerce: UserTemplateEcommerce;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
17
|
+
const UserTemplateEcommerce_1 = __importDefault(require("./UserTemplateEcommerce"));
|
|
18
|
+
let WebhookTemplateEcommerce = class WebhookTemplateEcommerce extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], WebhookTemplateEcommerce.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], WebhookTemplateEcommerce.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WebhookTemplateEcommerce.prototype, "url", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column({ type: 'boolean', default: false }),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], WebhookTemplateEcommerce.prototype, "connection", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], WebhookTemplateEcommerce.prototype, "response", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], WebhookTemplateEcommerce.prototype, "type", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WebhookTemplateEcommerce.prototype, "urlParams", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], WebhookTemplateEcommerce.prototype, "body", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], WebhookTemplateEcommerce.prototype, "title", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
typeorm_1.ManyToOne(() => UserTemplateEcommerce_1.default, (userTemplateEcommerce) => userTemplateEcommerce.webhookTemplateEcommerce, { onDelete: 'CASCADE' }),
|
|
58
|
+
typeorm_1.JoinColumn(),
|
|
59
|
+
__metadata("design:type", UserTemplateEcommerce_1.default)
|
|
60
|
+
], WebhookTemplateEcommerce.prototype, "userTemplateEcommerce", void 0);
|
|
61
|
+
WebhookTemplateEcommerce = __decorate([
|
|
62
|
+
typeorm_1.Entity()
|
|
63
|
+
], WebhookTemplateEcommerce);
|
|
64
|
+
exports.default = WebhookTemplateEcommerce;
|
|
65
|
+
//# sourceMappingURL=WebhookTemplateEcommerce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhookTemplateEcommerce.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/WebhookTemplateEcommerce.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,wBAAwB,GAA7C,MAAqB,wBAAyB,SAAQ,sBAAY;CAoCjE,CAAA;AAlCC;IADC,gCAAsB,EAAE;;oDACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2DAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDAC3B;AAGZ;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4DACxB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACtC;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACzB;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC1C;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDACzB;AASd;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,+BAAqB,EAC3B,CAAC,qBAA4C,EAAE,EAAE,CAC/C,qBAAqB,CAAC,wBAAwB,EAChD,EAAE,QAAQ,EAAE,SAAS,EAAE,CACxB;IACA,oBAAU,EAAE;8BACU,+BAAqB;uEAAC;AAnC1B,wBAAwB;IAD5C,gBAAM,EAAE;GACY,wBAAwB,CAoC5C;kBApCoB,wBAAwB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.addWebhookTemplate1688489173526 = void 0;
|
|
13
|
+
class addWebhookTemplate1688489173526 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'addWebhookTemplate1688489173526';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`webhook_template_ecommerce\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`connection\` tinyint NOT NULL DEFAULT 0, \`response\` varchar(21844) NULL, \`type\` varchar(255) NULL, \`url_params\` varchar(255) NULL, \`body\` varchar(21844) NULL, \`title\` varchar(255) NOT NULL, \`user_template_ecommerce_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
yield queryRunner.query(`ALTER TABLE \`webhook_template_ecommerce\` ADD CONSTRAINT \`FK_b05fbf9109c855ceedd94df1b09\` FOREIGN KEY (\`user_template_ecommerce_id\`) REFERENCES \`user_template_ecommerce\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
down(queryRunner) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
yield queryRunner.query(`ALTER TABLE \`webhook_template_ecommerce\` DROP FOREIGN KEY \`FK_b05fbf9109c855ceedd94df1b09\``);
|
|
26
|
+
yield queryRunner.query(`DROP TABLE \`webhook_template_ecommerce\``);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.addWebhookTemplate1688489173526 = addWebhookTemplate1688489173526;
|
|
31
|
+
//# sourceMappingURL=1688489173526-add-webhook-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1688489173526-add-webhook-template.js","sourceRoot":"","sources":["../../src/migrations/1688489173526-add-webhook-template.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,+BAA+B;IAA5C;QACI,SAAI,GAAG,iCAAiC,CAAA;IAY5C,CAAC;IAVgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,4kBAA4kB,CAAC,CAAC;YACtmB,MAAM,WAAW,CAAC,KAAK,CAAC,gOAAgO,CAAC,CAAC;QAC9P,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,gGAAgG,CAAC,CAAC;YAC1H,MAAM,WAAW,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACzE,CAAC;KAAA;CAEJ;AAbD,0EAaC"}
|
|
@@ -58,7 +58,7 @@ import Translate from '../entity/Translate';
|
|
|
58
58
|
import Connection from '../entity/Connection';
|
|
59
59
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
60
60
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
61
|
-
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
61
|
+
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
62
62
|
import { PlanRepository, SubscriptionRepository, UserCountPlanRepository } from './subscriptions';
|
|
63
63
|
import { Repository } from 'typeorm';
|
|
64
64
|
export declare class CategoryImagesRepository extends Repository<CategoryImages> {
|
|
@@ -178,6 +178,6 @@ export declare class TranslateRepository extends Repository<Translate> {
|
|
|
178
178
|
export declare class ConnectionRepository extends Repository<Connection> {
|
|
179
179
|
}
|
|
180
180
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
181
|
-
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
181
|
+
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, WebhookTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
182
182
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
183
183
|
export { PlanRepository, SubscriptionRepository, UserCountPlanRepository };
|
|
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChannelGroupRepository = exports.CollectionSharedRepository = exports.CollectionItemRepository = exports.CollectionRepository = exports.PaymentMethodRepository = exports.UserSettingsRepository = exports.UserTokenWoltRepository = exports.WooConnectionRepository = exports.WalletRepository = exports.VariantRepository = exports.UserRoleRepository = exports.UserRepository = exports.SubcategoryRepository = exports.ShopifyConnectionRepository = exports.ShippingPackageRepository = exports.RolePermissionRepository = exports.RoleRepository = exports.ExternalRequestRepository = exports.RequestRepository = exports.ProductRepository = exports.PermissionRepository = exports.PaymentShopifyRepository = exports.PaymentRepository = exports.OrderTrackingRepository = exports.OrderShippingRepository = exports.OrderItemRepository = exports.OrderRepository = exports.OptionRepository = exports.NotificationRepository = exports.MetricActiveUserRepository = exports.MagentoConnectionRepository = exports.ImportedProductRepository = exports.ImageRepository = exports.FlatRateCountryRepository = exports.FlatRateRepository = exports.CourierRepository = exports.CountryRepository = exports.CheckoutMetadataRepository = exports.ChannelRepository = exports.CategoryRepository = exports.CardRegistrationRepository = exports.BusinessRepository = exports.BankAccountRepository = exports.ApiCredentialRepository = exports.CustomProductImageRepository = exports.CustomProductRepository = exports.CustomVariantRepository = exports.AttributeRepository = exports.ProductAttributeRepository = exports.CategoryImagesRepository = void 0;
|
|
13
|
-
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
13
|
+
exports.UserCountPlanRepository = exports.SubscriptionRepository = exports.PlanRepository = exports.ShippingRepository = exports.ShippingCountryRepository = exports.ProductShippingRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceRepository = exports.ReachuSchemeConfigVariantRepository = exports.ReachuSchemeConfigProductRepository = exports.ReachuSchemeConfigOrderRepository = exports.WebhookTemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = exports.PriceDataRepository = exports.CheckoutShippingAddressRepository = exports.CheckoutRepository = exports.CheckoutBillingAddressRepository = exports.CartRepository = exports.CartItemRepository = exports.ConnectionRepository = exports.TranslateRepository = exports.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = exports.ChannelUserRepository = void 0;
|
|
14
14
|
const ApiCredential_1 = __importDefault(require("../entity/ApiCredential"));
|
|
15
15
|
const BankAccount_1 = __importDefault(require("../entity/BankAccount"));
|
|
16
16
|
const Business_1 = __importDefault(require("../entity/Business"));
|
|
@@ -84,6 +84,7 @@ const templates_1 = require("./templates");
|
|
|
84
84
|
Object.defineProperty(exports, "AuthInfoRepository", { enumerable: true, get: function () { return templates_1.AuthInfoRepository; } });
|
|
85
85
|
Object.defineProperty(exports, "AuthMethodRepository", { enumerable: true, get: function () { return templates_1.AuthMethodRepository; } });
|
|
86
86
|
Object.defineProperty(exports, "EndpointTemplateEcommerceRepository", { enumerable: true, get: function () { return templates_1.EndpointTemplateEcommerceRepository; } });
|
|
87
|
+
Object.defineProperty(exports, "WebhookTemplateEcommerceRepository", { enumerable: true, get: function () { return templates_1.WebhookTemplateEcommerceRepository; } });
|
|
87
88
|
Object.defineProperty(exports, "ReachuSchemeConfigOrderRepository", { enumerable: true, get: function () { return templates_1.ReachuSchemeConfigOrderRepository; } });
|
|
88
89
|
Object.defineProperty(exports, "ReachuSchemeConfigProductRepository", { enumerable: true, get: function () { return templates_1.ReachuSchemeConfigProductRepository; } });
|
|
89
90
|
Object.defineProperty(exports, "ReachuSchemeConfigVariantRepository", { enumerable: true, get: function () { return templates_1.ReachuSchemeConfigVariantRepository; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD,4EAAoD;AACpD,sEAA8C;AAC9C,8EAAsD;AACtD,kFAA0D;AAC1D,0EAAkD;AAClD,wEAAgD;AAChD,8FAAsE;AACtE,oFAA4D;AAC5D,kEAA0C;AAC1C,0EAAkD;AAElD,4EAAoD;AACpD,2DAAwD;AACxD,sFAA8D;AAE9D,oEAA4C;AAC5C,kFAA0D;AAC1D,8EAAsD;AAEtD,kGAA0E;AAE1E,oEAA4C;AAC5C,sEAA8C;AAE9C,yCAOoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4EAAoD;AACpD,wEAAgD;AAChD,kEAA0C;AAC1C,kFAA0D;AAC1D,kEAA0C;AAC1C,gEAAwC;AACxC,kFAA0D;AAC1D,gEAAwC;AACxC,gEAAwC;AACxC,kEAA0C;AAC1C,gFAAwD;AACxD,4DAAoC;AACpC,gFAAwD;AACxD,iFAAuE;AACvE,kFAA0D;AAC1D,0EAAkD;AAClD,8DAAsC;AACtC,4DAAoC;AACpC,oEAA4C;AAC5C,4EAAoD;AACpD,4EAAoD;AACpD,gEAAwC;AACxC,8EAAsD;AACtD,sEAA8C;AAC9C,6DAAmD;AACnD,gEAAwC;AACxC,gFAAwD;AACxD,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,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nC,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,oBAAoC;CAAG,CAAA;AAAlF,kCAAkC;IAD9C,0BAAgB,CAAC,kCAAwB,CAAC;GAC9B,kCAAkC,CAAgD;AAAlF,gFAAkC;AAG/C,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,oBAAqB;CAAG,CAAA;AAApD,mBAAmB;IAD/B,0BAAgB,CAAC,mBAAS,CAAC;GACf,mBAAmB,CAAiC;AAApD,kDAAmB;AAGhC,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,oBAAsB;CAAG,CAAA;AAAtD,oBAAoB;IADhC,0BAAgB,CAAC,oBAAU,CAAC;GAChB,oBAAoB,CAAkC;AAAtD,oDAAoB"}
|
|
@@ -4,6 +4,7 @@ import AuthMethod from '../../entity/modules/templates/AuthMethod';
|
|
|
4
4
|
import EndpointTemplateEcommerce from '../../entity/modules/templates/EndpointTemplateEcommerce';
|
|
5
5
|
import TemplateEcommerce from '../../entity/modules/templates/TemplateEcommerce';
|
|
6
6
|
import UserTemplateEcommerce from '../../entity/modules/templates/UserTemplateEcommerce';
|
|
7
|
+
import WebhookTemplateEcommerce from '../../entity/modules/templates/WebhookTemplateEcommerce';
|
|
7
8
|
import ReachuSchemeConfigOrder from '../../entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder';
|
|
8
9
|
import TemplateEcommerceSchemeConfigOrder from '../../entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder';
|
|
9
10
|
import TemplateEcommerceSchemeConfigOrderMapped from '../../entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped';
|
|
@@ -41,3 +42,5 @@ export declare class TemplateEcommerceSchemeConfigVariantRepository extends Repo
|
|
|
41
42
|
}
|
|
42
43
|
export declare class TemplateEcommerceSchemeConfigVariantMappedRepository extends Repository<TemplateEcommerceSchemeConfigVariantMapped> {
|
|
43
44
|
}
|
|
45
|
+
export declare class WebhookTemplateEcommerceRepository extends Repository<WebhookTemplateEcommerce> {
|
|
46
|
+
}
|
|
@@ -9,13 +9,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.ReachuSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.ReachuSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.ReachuSchemeConfigOrderRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = void 0;
|
|
12
|
+
exports.WebhookTemplateEcommerceRepository = exports.TemplateEcommerceSchemeConfigVariantMappedRepository = exports.TemplateEcommerceSchemeConfigVariantRepository = exports.ReachuSchemeConfigVariantRepository = exports.TemplateEcommerceSchemeConfigProductMappedRepository = exports.TemplateEcommerceSchemeConfigProductRepository = exports.ReachuSchemeConfigProductRepository = exports.TemplateEcommerceSchemeConfigOrderMappedRepository = exports.TemplateEcommerceSchemeConfigOrderRepository = exports.ReachuSchemeConfigOrderRepository = exports.UserTemplateEcommerceRepository = exports.TemplateEcommerceRepository = exports.EndpointTemplateEcommerceRepository = exports.AuthMethodRepository = exports.AuthInfoRepository = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const AuthInfo_1 = __importDefault(require("../../entity/modules//templates/AuthInfo"));
|
|
15
15
|
const AuthMethod_1 = __importDefault(require("../../entity/modules/templates/AuthMethod"));
|
|
16
16
|
const EndpointTemplateEcommerce_1 = __importDefault(require("../../entity/modules/templates/EndpointTemplateEcommerce"));
|
|
17
17
|
const TemplateEcommerce_1 = __importDefault(require("../../entity/modules/templates/TemplateEcommerce"));
|
|
18
18
|
const UserTemplateEcommerce_1 = __importDefault(require("../../entity/modules/templates/UserTemplateEcommerce"));
|
|
19
|
+
const WebhookTemplateEcommerce_1 = __importDefault(require("../../entity/modules/templates/WebhookTemplateEcommerce"));
|
|
19
20
|
const ReachuSchemeConfigOrder_1 = __importDefault(require("../../entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder"));
|
|
20
21
|
const TemplateEcommerceSchemeConfigOrder_1 = __importDefault(require("../../entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder"));
|
|
21
22
|
const TemplateEcommerceSchemeConfigOrderMapped_1 = __importDefault(require("../../entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped"));
|
|
@@ -109,4 +110,10 @@ TemplateEcommerceSchemeConfigVariantMappedRepository = __decorate([
|
|
|
109
110
|
typeorm_1.EntityRepository(TemplateEcommerceSchemeConfigVariantMapped_1.default)
|
|
110
111
|
], TemplateEcommerceSchemeConfigVariantMappedRepository);
|
|
111
112
|
exports.TemplateEcommerceSchemeConfigVariantMappedRepository = TemplateEcommerceSchemeConfigVariantMappedRepository;
|
|
113
|
+
let WebhookTemplateEcommerceRepository = class WebhookTemplateEcommerceRepository extends typeorm_1.Repository {
|
|
114
|
+
};
|
|
115
|
+
WebhookTemplateEcommerceRepository = __decorate([
|
|
116
|
+
typeorm_1.EntityRepository(WebhookTemplateEcommerce_1.default)
|
|
117
|
+
], WebhookTemplateEcommerceRepository);
|
|
118
|
+
exports.WebhookTemplateEcommerceRepository = WebhookTemplateEcommerceRepository;
|
|
112
119
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AACvD,wFAAgE;AAChE,2FAAmE;AACnE,yHAAiG;AACjG,yGAAiF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AqD,SAAQ,oBAAsD;CAAG,CAAA;AAAtH,oDAAoD;IADhE,0BAAgB,CAAC,oDAA0C,CAAC;GAChD,oDAAoD,CAAkE;AAAtH,oHAAoD;AAGjE,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,oBAAoC;CAAG,CAAA;AAAlF,kCAAkC;IAD9C,0BAAgB,CAAC,kCAAwB,CAAC;GAC9B,kCAAkC,CAAgD;AAAlF,gFAAkC"}
|
|
@@ -2706,9 +2706,14 @@
|
|
|
2706
2706
|
"signature": "6a67837b865232d7582f049e46601a26c9467784ecce29739c01974128831377",
|
|
2707
2707
|
"affectsGlobalScope": false
|
|
2708
2708
|
},
|
|
2709
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts": {
|
|
2710
|
+
"version": "8b7d8bb064a0c60c40f40ba45fafa91da2417ac737faf224683abca734e3437c",
|
|
2711
|
+
"signature": "394905d06c8dd7fc867a560f0596ba131a1f97134a207479eca8a1e0f50fa2d1",
|
|
2712
|
+
"affectsGlobalScope": false
|
|
2713
|
+
},
|
|
2709
2714
|
"../src/entity/modules/templates/usertemplateecommerce.ts": {
|
|
2710
|
-
"version": "
|
|
2711
|
-
"signature": "
|
|
2715
|
+
"version": "d479eadbdfd24c57aefba03ba60dfd3cdeb757350f32a919407668f98f62c9f6",
|
|
2716
|
+
"signature": "ed9db0182e69d861ed780a1352d2c2fee542b17785db65ee23dcdba949444a2d",
|
|
2712
2717
|
"affectsGlobalScope": false
|
|
2713
2718
|
},
|
|
2714
2719
|
"../src/entity/modules/templates/authinfo.ts": {
|
|
@@ -2727,8 +2732,8 @@
|
|
|
2727
2732
|
"affectsGlobalScope": false
|
|
2728
2733
|
},
|
|
2729
2734
|
"../src/entity/index.ts": {
|
|
2730
|
-
"version": "
|
|
2731
|
-
"signature": "
|
|
2735
|
+
"version": "d18e3d146fee1cf3ec35948463c64f6e5df9de479b19f95b225a71bbe73f5771",
|
|
2736
|
+
"signature": "a5bad58a4a97dcb70db89f2f1cfa4f6af93fd28e2e952fc9ef3275e7f0097827",
|
|
2732
2737
|
"affectsGlobalScope": false
|
|
2733
2738
|
},
|
|
2734
2739
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2797,8 +2802,8 @@
|
|
|
2797
2802
|
"affectsGlobalScope": false
|
|
2798
2803
|
},
|
|
2799
2804
|
"../src/repositories/templates/index.ts": {
|
|
2800
|
-
"version": "
|
|
2801
|
-
"signature": "
|
|
2805
|
+
"version": "d758f006b9295ae17c5cb546aef90dee3f9a3f278e4e7dc8db8fef37b1382082",
|
|
2806
|
+
"signature": "6ac131ac4c0f68f7633bd98018a4da95244aeebd16304d7b2f3a90b5a1758b51",
|
|
2802
2807
|
"affectsGlobalScope": false
|
|
2803
2808
|
},
|
|
2804
2809
|
"../src/repositories/subscriptions/index.ts": {
|
|
@@ -2807,8 +2812,8 @@
|
|
|
2807
2812
|
"affectsGlobalScope": false
|
|
2808
2813
|
},
|
|
2809
2814
|
"../src/repositories/index.ts": {
|
|
2810
|
-
"version": "
|
|
2811
|
-
"signature": "
|
|
2815
|
+
"version": "08156ccf413c57517172f41086e6cf69d9eaf6a3ca30e7922589babe95b6f419",
|
|
2816
|
+
"signature": "31b4d779028a1f9f22dc052b4db468fd2f6726afdd3aae21db34797629655053",
|
|
2812
2817
|
"affectsGlobalScope": false
|
|
2813
2818
|
},
|
|
2814
2819
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3351,6 +3356,11 @@
|
|
|
3351
3356
|
"signature": "06e95c632f07baf87755f449183c9093b760c51393e0114aea440e0d929c2823",
|
|
3352
3357
|
"affectsGlobalScope": false
|
|
3353
3358
|
},
|
|
3359
|
+
"../src/migrations/1688489173526-add-webhook-template.ts": {
|
|
3360
|
+
"version": "da51d4fdb2b4c4fd2b8162497d1cddfe4709c811bbc5d073236d3c63bfc15fb2",
|
|
3361
|
+
"signature": "8cd3f783cc6a2fd4f9fe1ae4da675196568d5f2a62545c4c91e12103646af565",
|
|
3362
|
+
"affectsGlobalScope": false
|
|
3363
|
+
},
|
|
3354
3364
|
"../src/migrations/execute/index.ts": {
|
|
3355
3365
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3356
3366
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5533,6 +5543,7 @@
|
|
|
5533
5543
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariantmapped.ts",
|
|
5534
5544
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
5535
5545
|
"../src/entity/modules/templates/usertemplateecommerce.ts",
|
|
5546
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts",
|
|
5536
5547
|
"../src/entity/notification.ts",
|
|
5537
5548
|
"../src/entity/option.ts",
|
|
5538
5549
|
"../src/entity/order.ts",
|
|
@@ -5734,8 +5745,14 @@
|
|
|
5734
5745
|
"../src/entity/modules/templates/authinfo.ts",
|
|
5735
5746
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts",
|
|
5736
5747
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
5748
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts",
|
|
5737
5749
|
"../src/entity/user.ts"
|
|
5738
5750
|
],
|
|
5751
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts": [
|
|
5752
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5753
|
+
"../src/entity/auditedmodel.ts",
|
|
5754
|
+
"../src/entity/modules/templates/usertemplateecommerce.ts"
|
|
5755
|
+
],
|
|
5739
5756
|
"../src/entity/notification.ts": [
|
|
5740
5757
|
"../node_modules/typeorm/index.d.ts",
|
|
5741
5758
|
"../src/entity/auditedmodel.ts",
|
|
@@ -6230,6 +6247,9 @@
|
|
|
6230
6247
|
"../src/migrations/1688049065964-add-title-endpoint.ts": [
|
|
6231
6248
|
"../node_modules/typeorm/index.d.ts"
|
|
6232
6249
|
],
|
|
6250
|
+
"../src/migrations/1688489173526-add-webhook-template.ts": [
|
|
6251
|
+
"../node_modules/typeorm/index.d.ts"
|
|
6252
|
+
],
|
|
6233
6253
|
"../src/migrations/execute/index.ts": [
|
|
6234
6254
|
"../src/config/connect.ts"
|
|
6235
6255
|
],
|
|
@@ -6346,7 +6366,8 @@
|
|
|
6346
6366
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariant.ts",
|
|
6347
6367
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariantmapped.ts",
|
|
6348
6368
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
6349
|
-
"../src/entity/modules/templates/usertemplateecommerce.ts"
|
|
6369
|
+
"../src/entity/modules/templates/usertemplateecommerce.ts",
|
|
6370
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts"
|
|
6350
6371
|
],
|
|
6351
6372
|
"../src/staticdata/index.ts": [
|
|
6352
6373
|
"../src/staticdata/channelname.ts",
|
|
@@ -8359,6 +8380,7 @@
|
|
|
8359
8380
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariantmapped.ts",
|
|
8360
8381
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
8361
8382
|
"../src/entity/modules/templates/usertemplateecommerce.ts",
|
|
8383
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts",
|
|
8362
8384
|
"../src/entity/notification.ts",
|
|
8363
8385
|
"../src/entity/option.ts",
|
|
8364
8386
|
"../src/entity/order.ts",
|
|
@@ -8529,8 +8551,13 @@
|
|
|
8529
8551
|
"../src/entity/modules/templates/authinfo.ts",
|
|
8530
8552
|
"../src/entity/modules/templates/endpointtemplateecommerce.ts",
|
|
8531
8553
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
8554
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts",
|
|
8532
8555
|
"../src/entity/user.ts"
|
|
8533
8556
|
],
|
|
8557
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts": [
|
|
8558
|
+
"../src/entity/auditedmodel.ts",
|
|
8559
|
+
"../src/entity/modules/templates/usertemplateecommerce.ts"
|
|
8560
|
+
],
|
|
8534
8561
|
"../src/entity/notification.ts": [
|
|
8535
8562
|
"../src/entity/auditedmodel.ts",
|
|
8536
8563
|
"../src/entity/order.ts",
|
|
@@ -8964,6 +8991,9 @@
|
|
|
8964
8991
|
"../src/migrations/1688049065964-add-title-endpoint.ts": [
|
|
8965
8992
|
"../node_modules/typeorm/index.d.ts"
|
|
8966
8993
|
],
|
|
8994
|
+
"../src/migrations/1688489173526-add-webhook-template.ts": [
|
|
8995
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8996
|
+
],
|
|
8967
8997
|
"../src/migrations/index.ts": [
|
|
8968
8998
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8969
8999
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -9077,7 +9107,8 @@
|
|
|
9077
9107
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariant.ts",
|
|
9078
9108
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariantmapped.ts",
|
|
9079
9109
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
9080
|
-
"../src/entity/modules/templates/usertemplateecommerce.ts"
|
|
9110
|
+
"../src/entity/modules/templates/usertemplateecommerce.ts",
|
|
9111
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts"
|
|
9081
9112
|
],
|
|
9082
9113
|
"../src/staticdata/index.ts": [
|
|
9083
9114
|
"../src/staticdata/channelname.ts",
|
|
@@ -9654,6 +9685,7 @@
|
|
|
9654
9685
|
"../src/entity/modules/templates/schemevariant/templateecommerceschemeconfigvariantmapped.ts",
|
|
9655
9686
|
"../src/entity/modules/templates/templateecommerce.ts",
|
|
9656
9687
|
"../src/entity/modules/templates/usertemplateecommerce.ts",
|
|
9688
|
+
"../src/entity/modules/templates/webhooktemplateecommerce.ts",
|
|
9657
9689
|
"../src/entity/notification.ts",
|
|
9658
9690
|
"../src/entity/option.ts",
|
|
9659
9691
|
"../src/entity/order.ts",
|
|
@@ -9782,6 +9814,7 @@
|
|
|
9782
9814
|
"../src/migrations/1687993176652-add-info-to-auth-2.ts",
|
|
9783
9815
|
"../src/migrations/1687997223199-migration-pre-develop-api-key-channel.ts",
|
|
9784
9816
|
"../src/migrations/1688049065964-add-title-endpoint.ts",
|
|
9817
|
+
"../src/migrations/1688489173526-add-webhook-template.ts",
|
|
9785
9818
|
"../src/migrations/execute/index.ts",
|
|
9786
9819
|
"../src/migrations/index.ts",
|
|
9787
9820
|
"../src/repositories/index.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.91",
|
|
25
|
+
"@reachu/utils": "1.0.91",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
package/src/entity/index.ts
CHANGED
|
@@ -86,6 +86,7 @@ import AuthMethod from './modules/templates/AuthMethod';
|
|
|
86
86
|
import EndpointTemplateEcommerce from './modules/templates/EndpointTemplateEcommerce';
|
|
87
87
|
import TemplateEcommerce from './modules/templates/TemplateEcommerce';
|
|
88
88
|
import UserTemplateEcommerce from './modules/templates/UserTemplateEcommerce';
|
|
89
|
+
import WebhookTemplateEcommerce from './modules/templates/WebhookTemplateEcommerce';
|
|
89
90
|
|
|
90
91
|
import ReachuSchemeConfigOrder from './modules/templates/schemeOrder/ReachuSchemeConfigOrder';
|
|
91
92
|
import TemplateEcommerceSchemeConfigOrder from './modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder';
|
|
@@ -185,6 +186,7 @@ export {
|
|
|
185
186
|
AuthInfo,
|
|
186
187
|
AuthMethod,
|
|
187
188
|
EndpointTemplateEcommerce,
|
|
189
|
+
WebhookTemplateEcommerce,
|
|
188
190
|
TemplateEcommerce,
|
|
189
191
|
UserTemplateEcommerce,
|
|
190
192
|
TemplateEcommerceSchemeConfigOrder,
|
|
@@ -13,6 +13,7 @@ import AuditedModel from '../../AuditedModel';
|
|
|
13
13
|
import EndpointTemplateEcommerce from './EndpointTemplateEcommerce';
|
|
14
14
|
import AuthInfo from './AuthInfo';
|
|
15
15
|
import TemplateEcommerce from './TemplateEcommerce';
|
|
16
|
+
import WebhookTemplateEcommerce from './WebhookTemplateEcommerce';
|
|
16
17
|
|
|
17
18
|
@Entity()
|
|
18
19
|
export default class UserTemplateEcommerce extends AuditedModel {
|
|
@@ -34,6 +35,14 @@ export default class UserTemplateEcommerce extends AuditedModel {
|
|
|
34
35
|
)
|
|
35
36
|
endpointTemplateEcommerce: EndpointTemplateEcommerce[];
|
|
36
37
|
|
|
38
|
+
@OneToMany(
|
|
39
|
+
() => WebhookTemplateEcommerce,
|
|
40
|
+
(webhookTemplateEcommerce: WebhookTemplateEcommerce) =>
|
|
41
|
+
webhookTemplateEcommerce.userTemplateEcommerce,
|
|
42
|
+
{ cascade: true },
|
|
43
|
+
)
|
|
44
|
+
webhookTemplateEcommerce: WebhookTemplateEcommerce[];
|
|
45
|
+
|
|
37
46
|
@OneToOne(() => AuthInfo)
|
|
38
47
|
@JoinColumn()
|
|
39
48
|
authInfo: AuthInfo;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
Column,
|
|
5
|
+
DeleteDateColumn,
|
|
6
|
+
ManyToOne,
|
|
7
|
+
JoinColumn,
|
|
8
|
+
} from 'typeorm';
|
|
9
|
+
import AuditedModel from '../../AuditedModel';
|
|
10
|
+
import UserTemplateEcommerce from './UserTemplateEcommerce';
|
|
11
|
+
|
|
12
|
+
@Entity()
|
|
13
|
+
export default class WebhookTemplateEcommerce extends AuditedModel {
|
|
14
|
+
@PrimaryGeneratedColumn()
|
|
15
|
+
id: number;
|
|
16
|
+
|
|
17
|
+
@DeleteDateColumn()
|
|
18
|
+
deletedAt: Date;
|
|
19
|
+
|
|
20
|
+
@Column('varchar', { nullable: false })
|
|
21
|
+
url: string;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'boolean', default: false })
|
|
24
|
+
connection: boolean;
|
|
25
|
+
|
|
26
|
+
@Column('varchar', { length: '21844', nullable: true })
|
|
27
|
+
response: string;
|
|
28
|
+
|
|
29
|
+
@Column('varchar', { nullable: true })
|
|
30
|
+
type: string;
|
|
31
|
+
|
|
32
|
+
@Column('varchar', { nullable: true })
|
|
33
|
+
urlParams: string;
|
|
34
|
+
|
|
35
|
+
@Column('varchar', { length: '21844', nullable: true })
|
|
36
|
+
body: string;
|
|
37
|
+
|
|
38
|
+
@Column('varchar', { nullable: false })
|
|
39
|
+
title: string;
|
|
40
|
+
|
|
41
|
+
@ManyToOne(
|
|
42
|
+
() => UserTemplateEcommerce,
|
|
43
|
+
(userTemplateEcommerce: UserTemplateEcommerce) =>
|
|
44
|
+
userTemplateEcommerce.webhookTemplateEcommerce,
|
|
45
|
+
{ onDelete: 'CASCADE' },
|
|
46
|
+
)
|
|
47
|
+
@JoinColumn()
|
|
48
|
+
userTemplateEcommerce: UserTemplateEcommerce;
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class addWebhookTemplate1688489173526 implements MigrationInterface {
|
|
4
|
+
name = 'addWebhookTemplate1688489173526'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`webhook_template_ecommerce\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`connection\` tinyint NOT NULL DEFAULT 0, \`response\` varchar(21844) NULL, \`type\` varchar(255) NULL, \`url_params\` varchar(255) NULL, \`body\` varchar(21844) NULL, \`title\` varchar(255) NOT NULL, \`user_template_ecommerce_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`webhook_template_ecommerce\` ADD CONSTRAINT \`FK_b05fbf9109c855ceedd94df1b09\` FOREIGN KEY (\`user_template_ecommerce_id\`) REFERENCES \`user_template_ecommerce\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`webhook_template_ecommerce\` DROP FOREIGN KEY \`FK_b05fbf9109c855ceedd94df1b09\``);
|
|
13
|
+
await queryRunner.query(`DROP TABLE \`webhook_template_ecommerce\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
AuthInfoRepository,
|
|
81
81
|
AuthMethodRepository,
|
|
82
82
|
EndpointTemplateEcommerceRepository,
|
|
83
|
+
WebhookTemplateEcommerceRepository,
|
|
83
84
|
ReachuSchemeConfigOrderRepository,
|
|
84
85
|
ReachuSchemeConfigProductRepository,
|
|
85
86
|
ReachuSchemeConfigVariantRepository,
|
|
@@ -284,6 +285,7 @@ export {
|
|
|
284
285
|
AuthInfoRepository,
|
|
285
286
|
AuthMethodRepository,
|
|
286
287
|
EndpointTemplateEcommerceRepository,
|
|
288
|
+
WebhookTemplateEcommerceRepository,
|
|
287
289
|
ReachuSchemeConfigOrderRepository,
|
|
288
290
|
ReachuSchemeConfigProductRepository,
|
|
289
291
|
ReachuSchemeConfigVariantRepository,
|
|
@@ -4,6 +4,7 @@ import AuthMethod from '../../entity/modules/templates/AuthMethod';
|
|
|
4
4
|
import EndpointTemplateEcommerce from '../../entity/modules/templates/EndpointTemplateEcommerce';
|
|
5
5
|
import TemplateEcommerce from '../../entity/modules/templates/TemplateEcommerce';
|
|
6
6
|
import UserTemplateEcommerce from '../../entity/modules/templates/UserTemplateEcommerce';
|
|
7
|
+
import WebhookTemplateEcommerce from '../../entity/modules/templates/WebhookTemplateEcommerce';
|
|
7
8
|
|
|
8
9
|
import ReachuSchemeConfigOrder from '../../entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder';
|
|
9
10
|
import TemplateEcommerceSchemeConfigOrder from '../../entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder';
|
|
@@ -58,3 +59,6 @@ export class TemplateEcommerceSchemeConfigVariantRepository extends Repository<T
|
|
|
58
59
|
|
|
59
60
|
@EntityRepository(TemplateEcommerceSchemeConfigVariantMapped)
|
|
60
61
|
export class TemplateEcommerceSchemeConfigVariantMappedRepository extends Repository<TemplateEcommerceSchemeConfigVariantMapped> {}
|
|
62
|
+
|
|
63
|
+
@EntityRepository(WebhookTemplateEcommerce)
|
|
64
|
+
export class WebhookTemplateEcommerceRepository extends Repository<WebhookTemplateEcommerce> {}
|