@reachu/database 1.0.25 → 1.0.27

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.
Files changed (38) hide show
  1. package/dist/entity/EnvironmentConfiguration.d.ts +7 -0
  2. package/dist/entity/EnvironmentConfiguration.js +39 -0
  3. package/dist/entity/EnvironmentConfiguration.js.map +1 -0
  4. package/dist/entity/index.d.ts +4 -1
  5. package/dist/entity/index.js +7 -1
  6. package/dist/entity/index.js.map +1 -1
  7. package/dist/entity/modules/subscriptions/Plan.d.ts +8 -0
  8. package/dist/entity/modules/subscriptions/Plan.js +43 -0
  9. package/dist/entity/modules/subscriptions/Plan.js.map +1 -0
  10. package/dist/entity/modules/subscriptions/Subscription.d.ts +13 -0
  11. package/dist/entity/modules/subscriptions/Subscription.js +59 -0
  12. package/dist/entity/modules/subscriptions/Subscription.js.map +1 -0
  13. package/dist/entity/modules/templates/AuthInfo.d.ts +9 -5
  14. package/dist/entity/modules/templates/AuthInfo.js +21 -5
  15. package/dist/entity/modules/templates/AuthInfo.js.map +1 -1
  16. package/dist/migrations/1681741033630-Subscriptions.d.ts +6 -0
  17. package/dist/migrations/1681741033630-Subscriptions.js +37 -0
  18. package/dist/migrations/1681741033630-Subscriptions.js.map +1 -0
  19. package/dist/migrations/1681765500644-template-auth-fix.d.ts +6 -0
  20. package/dist/migrations/1681765500644-template-auth-fix.js +55 -0
  21. package/dist/migrations/1681765500644-template-auth-fix.js.map +1 -0
  22. package/dist/repositories/index.d.ts +5 -0
  23. package/dist/repositories/index.js +11 -1
  24. package/dist/repositories/index.js.map +1 -1
  25. package/dist/repositories/subscriptions/index.d.ts +7 -0
  26. package/dist/repositories/subscriptions/index.js +28 -0
  27. package/dist/repositories/subscriptions/index.js.map +1 -0
  28. package/dist/tsconfig.tsbuildinfo +99 -6
  29. package/package.json +3 -3
  30. package/src/entity/EnvironmentConfiguration.ts +17 -0
  31. package/src/entity/index.ts +8 -0
  32. package/src/entity/modules/subscriptions/Plan.ts +20 -0
  33. package/src/entity/modules/subscriptions/Subscription.ts +34 -0
  34. package/src/entity/modules/templates/AuthInfo.ts +17 -5
  35. package/src/migrations/1681741033630-Subscriptions.ts +22 -0
  36. package/src/migrations/1681765500644-template-auth-fix.ts +40 -0
  37. package/src/repositories/index.ts +9 -0
  38. package/src/repositories/subscriptions/index.ts +9 -0
@@ -0,0 +1,7 @@
1
+ import AuditedModel from './AuditedModel';
2
+ export default class EnvironmentConfiguration extends AuditedModel {
3
+ id: number;
4
+ key: string;
5
+ value: string;
6
+ stage: string;
7
+ }
@@ -0,0 +1,39 @@
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 AuditedModel_1 = __importDefault(require("./AuditedModel"));
16
+ const typeorm_1 = require("typeorm");
17
+ let EnvironmentConfiguration = class EnvironmentConfiguration extends AuditedModel_1.default {
18
+ };
19
+ __decorate([
20
+ typeorm_1.PrimaryGeneratedColumn(),
21
+ __metadata("design:type", Number)
22
+ ], EnvironmentConfiguration.prototype, "id", void 0);
23
+ __decorate([
24
+ typeorm_1.Column('varchar'),
25
+ __metadata("design:type", String)
26
+ ], EnvironmentConfiguration.prototype, "key", void 0);
27
+ __decorate([
28
+ typeorm_1.Column('varchar'),
29
+ __metadata("design:type", String)
30
+ ], EnvironmentConfiguration.prototype, "value", void 0);
31
+ __decorate([
32
+ typeorm_1.Column('varchar', { length: 20 }),
33
+ __metadata("design:type", String)
34
+ ], EnvironmentConfiguration.prototype, "stage", void 0);
35
+ EnvironmentConfiguration = __decorate([
36
+ typeorm_1.Entity()
37
+ ], EnvironmentConfiguration);
38
+ exports.default = EnvironmentConfiguration;
39
+ //# sourceMappingURL=EnvironmentConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentConfiguration.js","sourceRoot":"","sources":["../../src/entity/EnvironmentConfiguration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kEAA0C;AAC1C,qCAAiE;AAGjE,IAAqB,wBAAwB,GAA7C,MAAqB,wBAAyB,SAAQ,sBAAY;CAYjE,CAAA;AAVC;IADC,gCAAsB,EAAE;;oDACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;qDACN;AAGZ;IADC,gBAAM,CAAC,SAAS,CAAC;;uDACJ;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACpB;AAXK,wBAAwB;IAD5C,gBAAM,EAAE;GACY,wBAAwB,CAY5C;kBAZoB,wBAAwB"}
@@ -56,6 +56,7 @@ import ChannelUserProductSync from './ChannelUserProductSync';
56
56
  import UserChannelApiKey from './UserChannelApiKey';
57
57
  import Currency from './Currency';
58
58
  import ExchangeRate from './ExchangeRate';
59
+ import EnvironmentConfiguration from './EnvironmentConfiguration';
59
60
  import Cart from './modules/shopcart/Cart';
60
61
  import CartItem from './modules/shopcart/CartItem';
61
62
  import Checkout from './modules/shopcart/Checkout';
@@ -85,4 +86,6 @@ import TemplateEcommerceSchemeConfigProductMapped from './modules/templates/sche
85
86
  import ReachuSchemeConfigVariant from './modules/templates/schemeVariant/ReachuSchemeConfigVariant';
86
87
  import TemplateEcommerceSchemeConfigVariant from './modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant';
87
88
  import TemplateEcommerceSchemeConfigVariantMapped from './modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped';
88
- 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, 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, };
89
+ import Plan from './modules/subscriptions/Plan';
90
+ import Subscription from './modules/subscriptions/Subscription';
91
+ 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, 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, EnvironmentConfiguration, };
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.RolePermission = exports.Role = exports.ReturnAddress = exports.Return = 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.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 = void 0;
7
+ exports.EnvironmentConfiguration = 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 = 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"));
@@ -121,6 +121,8 @@ const Currency_1 = __importDefault(require("./Currency"));
121
121
  exports.Currency = Currency_1.default;
122
122
  const ExchangeRate_1 = __importDefault(require("./ExchangeRate"));
123
123
  exports.ExchangeRate = ExchangeRate_1.default;
124
+ const EnvironmentConfiguration_1 = __importDefault(require("./EnvironmentConfiguration"));
125
+ exports.EnvironmentConfiguration = EnvironmentConfiguration_1.default;
124
126
  const Cart_1 = __importDefault(require("./modules/shopcart/Cart"));
125
127
  exports.Cart = Cart_1.default;
126
128
  const CartItem_1 = __importDefault(require("./modules/shopcart/CartItem"));
@@ -179,4 +181,8 @@ const TemplateEcommerceSchemeConfigVariant_1 = __importDefault(require("./module
179
181
  exports.TemplateEcommerceSchemeConfigVariant = TemplateEcommerceSchemeConfigVariant_1.default;
180
182
  const TemplateEcommerceSchemeConfigVariantMapped_1 = __importDefault(require("./modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped"));
181
183
  exports.TemplateEcommerceSchemeConfigVariantMapped = TemplateEcommerceSchemeConfigVariantMapped_1.default;
184
+ const Plan_1 = __importDefault(require("./modules/subscriptions/Plan"));
185
+ exports.Plan = Plan_1.default;
186
+ const Subscription_1 = __importDefault(require("./modules/subscriptions/Subscription"));
187
+ exports.Subscription = Subscription_1.default;
182
188
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;AAgH9B,kBAhHK,iBAAO,CAgHL;AA/GT,oEAA4C;AAgH1C,wBAhHK,uBAAa,CAgHL;AA/Gf,kEAA0C;AAgHxC,uBAhHK,sBAAY,CAgHL;AA/Gd,gEAAwC;AAgHtC,sBAhHK,qBAAW,CAgHL;AA/Gb,0DAAkC;AAg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kG5C,yBAlGK,wBAAc,CAkGL;AA/FhB,4EAAoD;AAgGlD,mBAhGK,kBAAQ,CAgGL;AA/FV,gFAAwD;AAgGtD,qBAhGK,oBAAU,CAgGL;AA/FZ,8GAAsF;AAgGpF,oCAhGK,mCAAyB,CAgGL;AA/F3B,8FAAsE;AAgGpE,4BAhGK,2BAAiB,CAgGL;AA/FnB,sGAA8E;AAgG5E,gCAhGK,+BAAqB,CAgGL;AA9FvB,sHAA8F;AAiG5F,kCAjGK,iCAAuB,CAiGL;AAhGzB,4IAAoH;AA8FlH,6CA9FK,4CAAkC,CA8FL;AA7FpC,wJAAgI;AA8F9H,mDA9FK,kDAAwC,CA8FL;AA5F1C,4HAAoG;AAgGlG,oCAhGK,mCAAyB,CAgGL;AA/F3B,kJAA0H;AA6FxH,+CA7FK,8CAAoC,CA6FL;AA5FtC,8JAAsI;AA6FpI,qDA7FK,oDAA0C,CA6FL;AA3F5C,4HAAoG;AA+FlG,oCA/FK,mCAAyB,CA+FL;AA9F3B,kJAA0H;AA4FxH,+CA5FK,8CAAoC,CA4FL;AA3FtC,8JAAsI;AA4FpI,qDA5FK,oDAA0C,CA4FL;AAzF5C,wEAAgD;AA2F9C,eA3FK,cAAI,CA2FL;AA1FN,wFAAgE;AA2F9D,uBA3FK,sBAAY,CA2FL"}
@@ -0,0 +1,8 @@
1
+ import AuditedModel from '../../AuditedModel';
2
+ export default class Plan extends AuditedModel {
3
+ id: number;
4
+ name: string;
5
+ description: string;
6
+ originId: string;
7
+ response: string;
8
+ }
@@ -0,0 +1,43 @@
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 AuditedModel_1 = __importDefault(require("../../AuditedModel"));
16
+ const typeorm_1 = require("typeorm");
17
+ let Plan = class Plan extends AuditedModel_1.default {
18
+ };
19
+ __decorate([
20
+ typeorm_1.PrimaryGeneratedColumn(),
21
+ __metadata("design:type", Number)
22
+ ], Plan.prototype, "id", void 0);
23
+ __decorate([
24
+ typeorm_1.Column('varchar', { length: 100 }),
25
+ __metadata("design:type", String)
26
+ ], Plan.prototype, "name", void 0);
27
+ __decorate([
28
+ typeorm_1.Column('varchar', { nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], Plan.prototype, "description", void 0);
31
+ __decorate([
32
+ typeorm_1.Column('varchar', { nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], Plan.prototype, "originId", void 0);
35
+ __decorate([
36
+ typeorm_1.Column('varchar', { nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], Plan.prototype, "response", void 0);
39
+ Plan = __decorate([
40
+ typeorm_1.Entity()
41
+ ], Plan);
42
+ exports.default = Plan;
43
+ //# sourceMappingURL=Plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plan.js","sourceRoot":"","sources":["../../../../src/entity/modules/subscriptions/Plan.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sEAA8C;AAC9C,qCAAiE;AAGjE,IAAqB,IAAI,GAAzB,MAAqB,IAAK,SAAQ,sBAAY;CAe7C,CAAA;AAbC;IADC,gCAAsB,EAAE;;gCACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kCACtB;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAClB;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACrB;AAdE,IAAI;IADxB,gBAAM,EAAE;GACY,IAAI,CAexB;kBAfoB,IAAI"}
@@ -0,0 +1,13 @@
1
+ import AuditedModel from '../../AuditedModel';
2
+ import User from '../../User';
3
+ import Plan from './Plan';
4
+ export default class Subscription extends AuditedModel {
5
+ id: number;
6
+ user: User;
7
+ plan: Plan;
8
+ customerId: string;
9
+ isProd: boolean;
10
+ status: string;
11
+ originId: string;
12
+ response: string;
13
+ }
@@ -0,0 +1,59 @@
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 AuditedModel_1 = __importDefault(require("../../AuditedModel"));
16
+ const User_1 = __importDefault(require("../../User"));
17
+ const Plan_1 = __importDefault(require("./Plan"));
18
+ const typeorm_1 = require("typeorm");
19
+ let Subscription = class Subscription extends AuditedModel_1.default {
20
+ };
21
+ __decorate([
22
+ typeorm_1.PrimaryGeneratedColumn(),
23
+ __metadata("design:type", Number)
24
+ ], Subscription.prototype, "id", void 0);
25
+ __decorate([
26
+ typeorm_1.ManyToOne(() => User_1.default, (user) => user.id, { eager: true, onDelete: 'CASCADE' }),
27
+ typeorm_1.JoinColumn(),
28
+ __metadata("design:type", User_1.default)
29
+ ], Subscription.prototype, "user", void 0);
30
+ __decorate([
31
+ typeorm_1.ManyToOne(() => Plan_1.default, (plan) => plan.id, { eager: true, onDelete: 'CASCADE' }),
32
+ typeorm_1.JoinColumn(),
33
+ __metadata("design:type", Plan_1.default)
34
+ ], Subscription.prototype, "plan", void 0);
35
+ __decorate([
36
+ typeorm_1.Column('varchar', { nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], Subscription.prototype, "customerId", void 0);
39
+ __decorate([
40
+ typeorm_1.Column('boolean'),
41
+ __metadata("design:type", Boolean)
42
+ ], Subscription.prototype, "isProd", void 0);
43
+ __decorate([
44
+ typeorm_1.Column('varchar', { length: 100, nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Subscription.prototype, "status", void 0);
47
+ __decorate([
48
+ typeorm_1.Column('varchar', { nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Subscription.prototype, "originId", void 0);
51
+ __decorate([
52
+ typeorm_1.Column('varchar', { nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], Subscription.prototype, "response", void 0);
55
+ Subscription = __decorate([
56
+ typeorm_1.Entity()
57
+ ], Subscription);
58
+ exports.default = Subscription;
59
+ //# sourceMappingURL=Subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../src/entity/modules/subscriptions/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sEAA8C;AAC9C,sDAA8B;AAC9B,kDAA0B;AAE1B,qCAAwF;AAGxF,IAAqB,YAAY,GAAjC,MAAqB,YAAa,SAAQ,sBAAY;CA0BrD,CAAA;AAxBC;IADC,gCAAsB,EAAE;;wCACd;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,oBAAU,EAAE;8BACP,cAAI;0CAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACpF,oBAAU,EAAE;8BACP,cAAI;0CAAC;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,CAAC;;4CACF;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACpC;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAzBE,YAAY;IADhC,gBAAM,EAAE;GACY,YAAY,CA0BhC;kBA1BoB,YAAY"}
@@ -3,10 +3,14 @@ import UserTemplateEcommerce from './UserTemplateEcommerce';
3
3
  export default class AuthInfo extends AuditedModel {
4
4
  id: number;
5
5
  deletedAt: Date;
6
- token: string;
7
- apiKey: string;
8
- basic: string;
9
- publicKey: string;
10
- privateKey: string;
6
+ apiKeyKey: string;
7
+ apiKeyValue: string;
8
+ bearerToken: string;
9
+ basicAuthUsername: string;
10
+ basicAuthPassword: string;
11
+ oauthOneConsumerKey: string;
12
+ oauthOneConsumerSecret: string;
13
+ oauthTwoToken: string;
14
+ oauthTwoPrefix: string;
11
15
  userTemplateEcommerce: UserTemplateEcommerce[];
12
16
  }
@@ -28,23 +28,39 @@ __decorate([
28
28
  __decorate([
29
29
  typeorm_1.Column('varchar', { nullable: true }),
30
30
  __metadata("design:type", String)
31
- ], AuthInfo.prototype, "token", void 0);
31
+ ], AuthInfo.prototype, "apiKeyKey", void 0);
32
32
  __decorate([
33
33
  typeorm_1.Column('varchar', { nullable: true }),
34
34
  __metadata("design:type", String)
35
- ], AuthInfo.prototype, "apiKey", void 0);
35
+ ], AuthInfo.prototype, "apiKeyValue", void 0);
36
36
  __decorate([
37
37
  typeorm_1.Column('varchar', { nullable: true }),
38
38
  __metadata("design:type", String)
39
- ], AuthInfo.prototype, "basic", void 0);
39
+ ], AuthInfo.prototype, "bearerToken", void 0);
40
40
  __decorate([
41
41
  typeorm_1.Column('varchar', { nullable: true }),
42
42
  __metadata("design:type", String)
43
- ], AuthInfo.prototype, "publicKey", void 0);
43
+ ], AuthInfo.prototype, "basicAuthUsername", void 0);
44
44
  __decorate([
45
45
  typeorm_1.Column('varchar', { nullable: true }),
46
46
  __metadata("design:type", String)
47
- ], AuthInfo.prototype, "privateKey", void 0);
47
+ ], AuthInfo.prototype, "basicAuthPassword", void 0);
48
+ __decorate([
49
+ typeorm_1.Column('varchar', { nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], AuthInfo.prototype, "oauthOneConsumerKey", void 0);
52
+ __decorate([
53
+ typeorm_1.Column('varchar', { nullable: true }),
54
+ __metadata("design:type", String)
55
+ ], AuthInfo.prototype, "oauthOneConsumerSecret", void 0);
56
+ __decorate([
57
+ typeorm_1.Column('varchar', { nullable: true }),
58
+ __metadata("design:type", String)
59
+ ], AuthInfo.prototype, "oauthTwoToken", void 0);
60
+ __decorate([
61
+ typeorm_1.Column('varchar', { nullable: true }),
62
+ __metadata("design:type", String)
63
+ ], AuthInfo.prototype, "oauthTwoPrefix", void 0);
48
64
  __decorate([
49
65
  typeorm_1.OneToMany(() => UserTemplateEcommerce_1.default, (userTemplateEcommerce) => userTemplateEcommerce.authInfo, {
50
66
  cascade: true,
@@ -1 +1 @@
1
- {"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA8C;AAC9C,oFAA4D;AAG5D,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA8BjD,CAAA;AA5BC;IADC,gCAAsB,EAAE;;oCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxB;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACxB;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACnB;AASnB;IAPC,mBAAS,CACR,GAAG,EAAE,CAAC,+BAAqB,EAC3B,CAAC,qBAA4C,EAAE,EAAE,CAAC,qBAAqB,CAAC,QAAQ,EAChF;QACE,OAAO,EAAE,IAAI;KACd,CACF;;uDAC8C;AA7B5B,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA8B5B;kBA9BoB,QAAQ"}
1
+ {"version":3,"file":"AuthInfo.js","sourceRoot":"","sources":["../../../../src/entity/modules/templates/AuthInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA8F;AAC9F,sEAA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ationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,37 @@
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.Subscriptions1681741033630 = void 0;
13
+ class Subscriptions1681741033630 {
14
+ constructor() {
15
+ this.name = 'Subscriptions1681741033630';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE \`environment_configuration\` (\`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, \`key\` varchar(255) NOT NULL, \`value\` varchar(255) NOT NULL, \`stage\` varchar(20) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
20
+ yield queryRunner.query(`CREATE TABLE \`plan\` (\`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, \`name\` varchar(100) NOT NULL, \`description\` varchar(255) NULL, \`origin_id\` varchar(255) NULL, \`response\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
21
+ yield queryRunner.query(`CREATE TABLE \`subscription\` (\`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, \`customer_id\` varchar(255) NULL, \`is_prod\` tinyint NOT NULL, \`status\` varchar(100) NULL, \`origin_id\` varchar(255) NULL, \`response\` varchar(255) NULL, \`user_id\` int NULL, \`plan_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
22
+ yield queryRunner.query(`ALTER TABLE \`subscription\` ADD CONSTRAINT \`FK_940d49a105d50bbd616be540013\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
23
+ yield queryRunner.query(`ALTER TABLE \`subscription\` ADD CONSTRAINT \`FK_5fde988e5d9b9a522d70ebec27c\` FOREIGN KEY (\`plan_id\`) REFERENCES \`plan\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
24
+ });
25
+ }
26
+ down(queryRunner) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ yield queryRunner.query(`ALTER TABLE \`subscription\` DROP FOREIGN KEY \`FK_5fde988e5d9b9a522d70ebec27c\``);
29
+ yield queryRunner.query(`ALTER TABLE \`subscription\` DROP FOREIGN KEY \`FK_940d49a105d50bbd616be540013\``);
30
+ yield queryRunner.query(`DROP TABLE \`subscription\``);
31
+ yield queryRunner.query(`DROP TABLE \`plan\``);
32
+ yield queryRunner.query(`DROP TABLE \`environment_configuration\``);
33
+ });
34
+ }
35
+ }
36
+ exports.Subscriptions1681741033630 = Subscriptions1681741033630;
37
+ //# sourceMappingURL=1681741033630-Subscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1681741033630-Subscriptions.js","sourceRoot":"","sources":["../../src/migrations/1681741033630-Subscriptions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,0BAA0B;IAAvC;QACI,SAAI,GAAG,4BAA4B,CAAA;IAkBvC,CAAC;IAhBgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,wXAAwX,CAAC,CAAC;YAClZ,MAAM,WAAW,CAAC,KAAK,CAAC,uYAAuY,CAAC,CAAC;YACja,MAAM,WAAW,CAAC,KAAK,CAAC,udAAud,CAAC,CAAC;YACjf,MAAM,WAAW,CAAC,KAAK,CAAC,4KAA4K,CAAC,CAAC;YACtM,MAAM,WAAW,CAAC,KAAK,CAAC,4KAA4K,CAAC,CAAC;QAC1M,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;YAC5G,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;YAC/C,MAAM,WAAW,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;QACxE,CAAC;KAAA;CAEJ;AAnBD,gEAmBC"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class templateAuthFix1681765500644 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,55 @@
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.templateAuthFix1681765500644 = void 0;
13
+ class templateAuthFix1681765500644 {
14
+ constructor() {
15
+ this.name = 'templateAuthFix1681765500644';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`token\``);
20
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key\``);
21
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic\``);
22
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`public_key\``);
23
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`private_key\``);
24
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_key\` varchar(255) NULL`);
25
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_value\` varchar(255) NULL`);
26
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`bearer_token\` varchar(255) NULL`);
27
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_username\` varchar(255) NULL`);
28
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_password\` varchar(255) NULL`);
29
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_key\` varchar(255) NULL`);
30
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_secret\` varchar(255) NULL`);
31
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_token\` varchar(255) NULL`);
32
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_prefix\` varchar(255) NULL`);
33
+ });
34
+ }
35
+ down(queryRunner) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_prefix\``);
38
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_token\``);
39
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_secret\``);
40
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_key\``);
41
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_password\``);
42
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_username\``);
43
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`bearer_token\``);
44
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_value\``);
45
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_key\``);
46
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`private_key\` varchar(255) NULL`);
47
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`public_key\` varchar(255) NULL`);
48
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic\` varchar(255) NULL`);
49
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key\` varchar(255) NULL`);
50
+ yield queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`token\` varchar(255) NULL`);
51
+ });
52
+ }
53
+ }
54
+ exports.templateAuthFix1681765500644 = templateAuthFix1681765500644;
55
+ //# sourceMappingURL=1681765500644-template-auth-fix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1681765500644-template-auth-fix.js","sourceRoot":"","sources":["../../src/migrations/1681765500644-template-auth-fix.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,4BAA4B;IAAzC;QACI,SAAI,GAAG,8BAA8B,CAAA;IAoCzC,CAAC;IAlCgB,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AAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACjF,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;YAC3F,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAC1F,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;YACrF,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;YACvF,MAAM,WAAW,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACzF,CAAC;KAAA;CAEJ;AArCD,oEAqCC"}
@@ -52,9 +52,11 @@ import CustomProductImage from '../entity/CustomProductImage';
52
52
  import Attribute from '../entity/Attribute';
53
53
  import ProductAttribute from '../entity/ProductAttribute';
54
54
  import CategoryImages from '../entity/CategoryImages';
55
+ import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
55
56
  import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
56
57
  import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
57
58
  import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
59
+ import { PlanRepository, SubscriptionRepository } from './subscriptions';
58
60
  import { Repository } from 'typeorm';
59
61
  export declare class CategoryImagesRepository extends Repository<CategoryImages> {
60
62
  }
@@ -164,6 +166,9 @@ export declare class CurrencyRepository extends Repository<Currency> {
164
166
  }
165
167
  export declare class ExchangeRateRepository extends Repository<ExchangeRate> {
166
168
  }
169
+ export declare class EnvironmentConfigurationRepository extends Repository<EnvironmentConfiguration> {
170
+ }
167
171
  export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
168
172
  export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
169
173
  export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
174
+ export { PlanRepository, SubscriptionRepository };
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelUserRepository = 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.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.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.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = void 0;
13
+ 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.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = 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"));
@@ -65,6 +65,7 @@ const CustomProductImage_1 = __importDefault(require("../entity/CustomProductIma
65
65
  const Attribute_1 = __importDefault(require("../entity/Attribute"));
66
66
  const ProductAttribute_1 = __importDefault(require("../entity/ProductAttribute"));
67
67
  const CategoryImages_1 = __importDefault(require("../entity/CategoryImages"));
68
+ const EnvironmentConfiguration_1 = __importDefault(require("../entity/EnvironmentConfiguration"));
68
69
  const shopcart_1 = require("./shopcart");
69
70
  Object.defineProperty(exports, "CartItemRepository", { enumerable: true, get: function () { return shopcart_1.CartItemRepository; } });
70
71
  Object.defineProperty(exports, "CartRepository", { enumerable: true, get: function () { return shopcart_1.CartRepository; } });
@@ -91,6 +92,9 @@ Object.defineProperty(exports, "TemplateEcommerceSchemeConfigProductRepository",
91
92
  Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantMappedRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantMappedRepository; } });
92
93
  Object.defineProperty(exports, "TemplateEcommerceSchemeConfigVariantRepository", { enumerable: true, get: function () { return templates_1.TemplateEcommerceSchemeConfigVariantRepository; } });
93
94
  Object.defineProperty(exports, "UserTemplateEcommerceRepository", { enumerable: true, get: function () { return templates_1.UserTemplateEcommerceRepository; } });
95
+ const subscriptions_1 = require("./subscriptions");
96
+ Object.defineProperty(exports, "PlanRepository", { enumerable: true, get: function () { return subscriptions_1.PlanRepository; } });
97
+ Object.defineProperty(exports, "SubscriptionRepository", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRepository; } });
94
98
  const typeorm_1 = require("typeorm");
95
99
  let CategoryImagesRepository = class CategoryImagesRepository extends typeorm_1.Repository {
96
100
  };
@@ -416,4 +420,10 @@ ExchangeRateRepository = __decorate([
416
420
  typeorm_1.EntityRepository(ExchangeRate_1.default)
417
421
  ], ExchangeRateRepository);
418
422
  exports.ExchangeRateRepository = ExchangeRateRepository;
423
+ let EnvironmentConfigurationRepository = class EnvironmentConfigurationRepository extends typeorm_1.Repository {
424
+ };
425
+ EnvironmentConfigurationRepository = __decorate([
426
+ typeorm_1.EntityRepository(EnvironmentConfiguration_1.default)
427
+ ], EnvironmentConfigurationRepository);
428
+ exports.EnvironmentConfigurationRepository = EnvironmentConfigurationRepository;
419
429
  //# sourceMappingURL=index.js.map
@@ -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,0DAAkC;AAClC,8EAAsD;AACtD,gFAAwD;AACxD,oFAA4D;AAC5D,wEAAgD;AAChD,0DAAkC;AAClC,kEAA0C;AAC1C,gEAAwC;AACxC,8DAAsC;AACtC,4EAAoD;AACpD,4EAAoD;AACpD,0EAAkD;AAClD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AQ,oBAAoC;CAAG,CAAA;AAAlF,kCAAkC;IAD9C,0BAAgB,CAAC,kCAAwB,CAAC;GAC9B,kCAAkC,CAAgD;AAAlF,gFAAkC"}
@@ -0,0 +1,7 @@
1
+ import { Repository } from 'typeorm';
2
+ import Plan from '../../entity/modules/subscriptions/Plan';
3
+ import Subscription from '../../entity/modules/subscriptions/Subscription';
4
+ export declare class PlanRepository extends Repository<Plan> {
5
+ }
6
+ export declare class SubscriptionRepository extends Repository<Subscription> {
7
+ }
@@ -0,0 +1,28 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SubscriptionRepository = exports.PlanRepository = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const Plan_1 = __importDefault(require("../../entity/modules/subscriptions/Plan"));
15
+ const Subscription_1 = __importDefault(require("../../entity/modules/subscriptions/Subscription"));
16
+ let PlanRepository = class PlanRepository extends typeorm_1.Repository {
17
+ };
18
+ PlanRepository = __decorate([
19
+ typeorm_1.EntityRepository(Plan_1.default)
20
+ ], PlanRepository);
21
+ exports.PlanRepository = PlanRepository;
22
+ let SubscriptionRepository = class SubscriptionRepository extends typeorm_1.Repository {
23
+ };
24
+ SubscriptionRepository = __decorate([
25
+ typeorm_1.EntityRepository(Subscription_1.default)
26
+ ], SubscriptionRepository);
27
+ exports.SubscriptionRepository = SubscriptionRepository;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/subscriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AACvD,mFAA2D;AAC3D,mGAA2E;AAG3E,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,oBAAgB;CAAG,CAAA;AAA1C,cAAc;IAD1B,0BAAgB,CAAC,cAAI,CAAC;GACV,cAAc,CAA4B;AAA1C,wCAAc;AAG3B,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAwB;CAAG,CAAA;AAA1D,sBAAsB;IADlC,0BAAgB,CAAC,sBAAY,CAAC;GAClB,sBAAsB,CAAoC;AAA1D,wDAAsB"}
@@ -2621,6 +2621,11 @@
2621
2621
  "signature": "edfc427eed5128dec1fecd84338bbbf23d9737b2b637ef70601411e733545186",
2622
2622
  "affectsGlobalScope": false
2623
2623
  },
2624
+ "../src/entity/environmentconfiguration.ts": {
2625
+ "version": "4c5880a7be44ce1b1b0a0e38a29c5528fb16d519157fa3a2d64739d0596da4d4",
2626
+ "signature": "7fcdec100c9f2117182bee40540c09ef5c38cc643a1dca4a483fdf44f5059c40",
2627
+ "affectsGlobalScope": false
2628
+ },
2624
2629
  "../src/entity/modules/templates/endpointtemplateecommerce.ts": {
2625
2630
  "version": "3f2087a47674670eec0ea9ce95b916ff464a30e6b4e96f00216e0e8cfbc3af45",
2626
2631
  "signature": "78be799e286e35e9a4006d0974e5c73b85a5a7b73f7c7ae3302834f690dc5d92",
@@ -2687,13 +2692,23 @@
2687
2692
  "affectsGlobalScope": false
2688
2693
  },
2689
2694
  "../src/entity/modules/templates/authinfo.ts": {
2690
- "version": "f64cb65016e7b6865e1425e70d295b683ab3f4ea5506f5734933c795cc0c6f8f",
2691
- "signature": "60080c55ede647941c0ab1932f7a3484fb629cd4ba5d90dbe4e10e5c37b5cda6",
2695
+ "version": "0896dae7a7b6a640ee94d70c5c30519be1b1fc234ed3827d06787306335bd4fe",
2696
+ "signature": "ccbd78937bdc68df6cc2031fa99c097ed29396842593cbc934039ea589b1ab6e",
2697
+ "affectsGlobalScope": false
2698
+ },
2699
+ "../src/entity/modules/subscriptions/plan.ts": {
2700
+ "version": "b35778da21802a48cd07e936de75ae8a85d038497f0d74a52908065b83b2b799",
2701
+ "signature": "40da83598233ac7d7916fdf2958126f3b1b11cdfb54f07efa6d63c68112a8990",
2702
+ "affectsGlobalScope": false
2703
+ },
2704
+ "../src/entity/modules/subscriptions/subscription.ts": {
2705
+ "version": "ca1280cfb7e02bcef83dbdc7e4249bcc3bde354987b35aa308f3b03cd40d688a",
2706
+ "signature": "7eff71f603580974d59982e4388e11cf90e4dbe8b05a2d0b1f27f62242559590",
2692
2707
  "affectsGlobalScope": false
2693
2708
  },
2694
2709
  "../src/entity/index.ts": {
2695
- "version": "cf2970757dcdeb8014445e23ee40bd2a77586a3e5ad1630964cdf92b74958a8b",
2696
- "signature": "2b8844a84ee9d0ff9cfa0ea5fe337f4b42db98b6e8c595eb46c92d0cb9a2ccf8",
2710
+ "version": "2290e81a9b74eb041717bb247c1efac35457dcda359a972b6885d42c8eae064a",
2711
+ "signature": "b314027d68a484e41e4f6e2a86f7607679987ee03d973eb9afe059588f735596",
2697
2712
  "affectsGlobalScope": false
2698
2713
  },
2699
2714
  "../src/staticdata/productorigin.ts": {
@@ -2766,9 +2781,14 @@
2766
2781
  "signature": "fd822c40807b9622276013800239377094976c7abc6dd30837569da3097afee7",
2767
2782
  "affectsGlobalScope": false
2768
2783
  },
2784
+ "../src/repositories/subscriptions/index.ts": {
2785
+ "version": "a4b854981256f03ee5d161aa7217584be0b4e5dae7493f9c044f93b37537cde0",
2786
+ "signature": "5acfd1d20663293dafb88d0837cc307ec13a3e8ac578899f228492ced33f7b03",
2787
+ "affectsGlobalScope": false
2788
+ },
2769
2789
  "../src/repositories/index.ts": {
2770
- "version": "520c47138fa6ed95c5b2a5db32cfebda8b45cdffe585424cbe7f3700f06f9bae",
2771
- "signature": "84ed3da60023ec7770a53aba65e0a2273d986acae6b35cf7e543218036d270e0",
2790
+ "version": "2264dc4bf25966b73472cb6917431c830ae7f4eabbbcc748a0917fdf20818bce",
2791
+ "signature": "03b8252e8893161e233d1b11d74a4045f7e78094508b969947f7b4a8df65e876",
2772
2792
  "affectsGlobalScope": false
2773
2793
  },
2774
2794
  "../src/subscribers/productsubscriber.ts": {
@@ -3141,6 +3161,16 @@
3141
3161
  "signature": "c954fe3cd013dd874cd5754bef83552b5600b19563092a8c699b2c490a9c9cb4",
3142
3162
  "affectsGlobalScope": false
3143
3163
  },
3164
+ "../src/migrations/1681741033630-subscriptions.ts": {
3165
+ "version": "084c6e083664a66125a81e97074d06fbd1c095a54053484a957c935eefae376d",
3166
+ "signature": "a5083d4216fe33cafecb5b62bd8af8e186c7bc9bbf4296ae5c1a31fc169ab0e7",
3167
+ "affectsGlobalScope": false
3168
+ },
3169
+ "../src/migrations/1681765500644-template-auth-fix.ts": {
3170
+ "version": "86c79053489f9d5d98b920c5829bc79ca352964ce93050cf632e524d6a3e0109",
3171
+ "signature": "539f78b38f388da52ce133b617adcb97f7316beb5b62d2fb0a532f8c93e4b6bc",
3172
+ "affectsGlobalScope": false
3173
+ },
3144
3174
  "../src/migrations/execute/index.ts": {
3145
3175
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3146
3176
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -5216,6 +5246,10 @@
5216
5246
  "../src/entity/customproduct.ts",
5217
5247
  "../src/entity/variant.ts"
5218
5248
  ],
5249
+ "../src/entity/environmentconfiguration.ts": [
5250
+ "../node_modules/typeorm/index.d.ts",
5251
+ "../src/entity/auditedmodel.ts"
5252
+ ],
5219
5253
  "../src/entity/exchangerate.ts": [
5220
5254
  "../node_modules/typeorm/index.d.ts",
5221
5255
  "../src/entity/auditedmodel.ts"
@@ -5268,6 +5302,7 @@
5268
5302
  "../src/entity/customproduct.ts",
5269
5303
  "../src/entity/customproductimage.ts",
5270
5304
  "../src/entity/customvariant.ts",
5305
+ "../src/entity/environmentconfiguration.ts",
5271
5306
  "../src/entity/exchangerate.ts",
5272
5307
  "../src/entity/flatrate.ts",
5273
5308
  "../src/entity/flatratecountry.ts",
@@ -5285,6 +5320,8 @@
5285
5320
  "../src/entity/modules/shopcart/checkoutbillingaddress.ts",
5286
5321
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
5287
5322
  "../src/entity/modules/shopcart/pricedata.ts",
5323
+ "../src/entity/modules/subscriptions/plan.ts",
5324
+ "../src/entity/modules/subscriptions/subscription.ts",
5288
5325
  "../src/entity/modules/templates/authinfo.ts",
5289
5326
  "../src/entity/modules/templates/authmethod.ts",
5290
5327
  "../src/entity/modules/templates/endpointtemplateecommerce.ts",
@@ -5390,6 +5427,16 @@
5390
5427
  "../node_modules/typeorm/index.d.ts",
5391
5428
  "../src/entity/modules/shopcart/cartitem.ts"
5392
5429
  ],
5430
+ "../src/entity/modules/subscriptions/plan.ts": [
5431
+ "../node_modules/typeorm/index.d.ts",
5432
+ "../src/entity/auditedmodel.ts"
5433
+ ],
5434
+ "../src/entity/modules/subscriptions/subscription.ts": [
5435
+ "../node_modules/typeorm/index.d.ts",
5436
+ "../src/entity/auditedmodel.ts",
5437
+ "../src/entity/modules/subscriptions/plan.ts",
5438
+ "../src/entity/user.ts"
5439
+ ],
5393
5440
  "../src/entity/modules/templates/authinfo.ts": [
5394
5441
  "../node_modules/typeorm/index.d.ts",
5395
5442
  "../src/entity/auditedmodel.ts",
@@ -5867,6 +5914,12 @@
5867
5914
  "../src/migrations/1681485990275-template-ecommerce-two.ts": [
5868
5915
  "../node_modules/typeorm/index.d.ts"
5869
5916
  ],
5917
+ "../src/migrations/1681741033630-subscriptions.ts": [
5918
+ "../node_modules/typeorm/index.d.ts"
5919
+ ],
5920
+ "../src/migrations/1681765500644-template-auth-fix.ts": [
5921
+ "../node_modules/typeorm/index.d.ts"
5922
+ ],
5870
5923
  "../src/migrations/execute/index.ts": [
5871
5924
  "../src/config/connect.ts"
5872
5925
  ],
@@ -5905,6 +5958,7 @@
5905
5958
  "../src/entity/customproduct.ts",
5906
5959
  "../src/entity/customproductimage.ts",
5907
5960
  "../src/entity/customvariant.ts",
5961
+ "../src/entity/environmentconfiguration.ts",
5908
5962
  "../src/entity/exchangerate.ts",
5909
5963
  "../src/entity/flatrate.ts",
5910
5964
  "../src/entity/flatratecountry.ts",
@@ -5940,6 +5994,7 @@
5940
5994
  "../src/entity/wooconnection.ts",
5941
5995
  "../src/repositories/shipping/index.ts",
5942
5996
  "../src/repositories/shopcart/index.ts",
5997
+ "../src/repositories/subscriptions/index.ts",
5943
5998
  "../src/repositories/templates/index.ts"
5944
5999
  ],
5945
6000
  "../src/repositories/shipping/index.ts": [
@@ -5957,6 +6012,11 @@
5957
6012
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
5958
6013
  "../src/entity/modules/shopcart/pricedata.ts"
5959
6014
  ],
6015
+ "../src/repositories/subscriptions/index.ts": [
6016
+ "../node_modules/typeorm/index.d.ts",
6017
+ "../src/entity/modules/subscriptions/plan.ts",
6018
+ "../src/entity/modules/subscriptions/subscription.ts"
6019
+ ],
5960
6020
  "../src/repositories/templates/index.ts": [
5961
6021
  "../node_modules/typeorm/index.d.ts",
5962
6022
  "../src/entity/modules/templates/authinfo.ts",
@@ -7889,6 +7949,9 @@
7889
7949
  "../src/entity/customproduct.ts",
7890
7950
  "../src/entity/variant.ts"
7891
7951
  ],
7952
+ "../src/entity/environmentconfiguration.ts": [
7953
+ "../src/entity/auditedmodel.ts"
7954
+ ],
7892
7955
  "../src/entity/exchangerate.ts": [
7893
7956
  "../src/entity/auditedmodel.ts"
7894
7957
  ],
@@ -7933,6 +7996,7 @@
7933
7996
  "../src/entity/customproduct.ts",
7934
7997
  "../src/entity/customproductimage.ts",
7935
7998
  "../src/entity/customvariant.ts",
7999
+ "../src/entity/environmentconfiguration.ts",
7936
8000
  "../src/entity/exchangerate.ts",
7937
8001
  "../src/entity/flatrate.ts",
7938
8002
  "../src/entity/flatratecountry.ts",
@@ -7950,6 +8014,8 @@
7950
8014
  "../src/entity/modules/shopcart/checkoutbillingaddress.ts",
7951
8015
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
7952
8016
  "../src/entity/modules/shopcart/pricedata.ts",
8017
+ "../src/entity/modules/subscriptions/plan.ts",
8018
+ "../src/entity/modules/subscriptions/subscription.ts",
7953
8019
  "../src/entity/modules/templates/authinfo.ts",
7954
8020
  "../src/entity/modules/templates/authmethod.ts",
7955
8021
  "../src/entity/modules/templates/endpointtemplateecommerce.ts",
@@ -8042,6 +8108,14 @@
8042
8108
  "../src/entity/modules/shopcart/pricedata.ts": [
8043
8109
  "../src/entity/modules/shopcart/cartitem.ts"
8044
8110
  ],
8111
+ "../src/entity/modules/subscriptions/plan.ts": [
8112
+ "../src/entity/auditedmodel.ts"
8113
+ ],
8114
+ "../src/entity/modules/subscriptions/subscription.ts": [
8115
+ "../src/entity/auditedmodel.ts",
8116
+ "../src/entity/modules/subscriptions/plan.ts",
8117
+ "../src/entity/user.ts"
8118
+ ],
8045
8119
  "../src/entity/modules/templates/authinfo.ts": [
8046
8120
  "../src/entity/auditedmodel.ts",
8047
8121
  "../src/entity/modules/templates/usertemplateecommerce.ts"
@@ -8445,6 +8519,12 @@
8445
8519
  "../src/migrations/1681485990275-template-ecommerce-two.ts": [
8446
8520
  "../node_modules/typeorm/index.d.ts"
8447
8521
  ],
8522
+ "../src/migrations/1681741033630-subscriptions.ts": [
8523
+ "../node_modules/typeorm/index.d.ts"
8524
+ ],
8525
+ "../src/migrations/1681765500644-template-auth-fix.ts": [
8526
+ "../node_modules/typeorm/index.d.ts"
8527
+ ],
8448
8528
  "../src/migrations/index.ts": [
8449
8529
  "../src/migrations/1628474597284-initialschema.ts",
8450
8530
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -8480,6 +8560,7 @@
8480
8560
  "../src/entity/customproduct.ts",
8481
8561
  "../src/entity/customproductimage.ts",
8482
8562
  "../src/entity/customvariant.ts",
8563
+ "../src/entity/environmentconfiguration.ts",
8483
8564
  "../src/entity/exchangerate.ts",
8484
8565
  "../src/entity/flatrate.ts",
8485
8566
  "../src/entity/flatratecountry.ts",
@@ -8515,6 +8596,7 @@
8515
8596
  "../src/entity/wooconnection.ts",
8516
8597
  "../src/repositories/shipping/index.ts",
8517
8598
  "../src/repositories/shopcart/index.ts",
8599
+ "../src/repositories/subscriptions/index.ts",
8518
8600
  "../src/repositories/templates/index.ts"
8519
8601
  ],
8520
8602
  "../src/repositories/shipping/index.ts": [
@@ -8532,6 +8614,11 @@
8532
8614
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
8533
8615
  "../src/entity/modules/shopcart/pricedata.ts"
8534
8616
  ],
8617
+ "../src/repositories/subscriptions/index.ts": [
8618
+ "../node_modules/typeorm/index.d.ts",
8619
+ "../src/entity/modules/subscriptions/plan.ts",
8620
+ "../src/entity/modules/subscriptions/subscription.ts"
8621
+ ],
8535
8622
  "../src/repositories/templates/index.ts": [
8536
8623
  "../node_modules/typeorm/index.d.ts",
8537
8624
  "../src/entity/modules/templates/authinfo.ts",
@@ -9086,6 +9173,7 @@
9086
9173
  "../src/entity/customproduct.ts",
9087
9174
  "../src/entity/customproductimage.ts",
9088
9175
  "../src/entity/customvariant.ts",
9176
+ "../src/entity/environmentconfiguration.ts",
9089
9177
  "../src/entity/exchangerate.ts",
9090
9178
  "../src/entity/flatrate.ts",
9091
9179
  "../src/entity/flatratecountry.ts",
@@ -9104,6 +9192,8 @@
9104
9192
  "../src/entity/modules/shopcart/checkoutbillingaddress.ts",
9105
9193
  "../src/entity/modules/shopcart/checkoutshippingaddress.ts",
9106
9194
  "../src/entity/modules/shopcart/pricedata.ts",
9195
+ "../src/entity/modules/subscriptions/plan.ts",
9196
+ "../src/entity/modules/subscriptions/subscription.ts",
9107
9197
  "../src/entity/modules/templates/authinfo.ts",
9108
9198
  "../src/entity/modules/templates/authmethod.ts",
9109
9199
  "../src/entity/modules/templates/endpointtemplateecommerce.ts",
@@ -9211,11 +9301,14 @@
9211
9301
  "../src/migrations/1681258240525-template-channel-update-2.ts",
9212
9302
  "../src/migrations/1681485048240-template-ecommerce.ts",
9213
9303
  "../src/migrations/1681485990275-template-ecommerce-two.ts",
9304
+ "../src/migrations/1681741033630-subscriptions.ts",
9305
+ "../src/migrations/1681765500644-template-auth-fix.ts",
9214
9306
  "../src/migrations/execute/index.ts",
9215
9307
  "../src/migrations/index.ts",
9216
9308
  "../src/repositories/index.ts",
9217
9309
  "../src/repositories/shipping/index.ts",
9218
9310
  "../src/repositories/shopcart/index.ts",
9311
+ "../src/repositories/subscriptions/index.ts",
9219
9312
  "../src/repositories/templates/index.ts",
9220
9313
  "../src/staticdata/channelname.ts",
9221
9314
  "../src/staticdata/connectiontype.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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",
25
- "@reachu/utils": "1.0.25",
24
+ "@reachu/logger": "1.0.27",
25
+ "@reachu/utils": "1.0.27",
26
26
  "dotenv": "8.0.0",
27
27
  "express": "4.17.1",
28
28
  "mysql2": "1.5.2",
@@ -0,0 +1,17 @@
1
+ import AuditedModel from './AuditedModel';
2
+ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
3
+
4
+ @Entity()
5
+ export default class EnvironmentConfiguration extends AuditedModel {
6
+ @PrimaryGeneratedColumn()
7
+ id: number;
8
+
9
+ @Column('varchar')
10
+ key: string;
11
+
12
+ @Column('varchar')
13
+ value: string;
14
+
15
+ @Column('varchar', { length: 20 })
16
+ stage: string;
17
+ }
@@ -56,6 +56,7 @@ import ChannelUserProductSync from './ChannelUserProductSync';
56
56
  import UserChannelApiKey from './UserChannelApiKey';
57
57
  import Currency from './Currency';
58
58
  import ExchangeRate from './ExchangeRate';
59
+ import EnvironmentConfiguration from './EnvironmentConfiguration';
59
60
 
60
61
  //shopCart
61
62
  import Cart from './modules/shopcart/Cart';
@@ -97,6 +98,10 @@ import ReachuSchemeConfigVariant from './modules/templates/schemeVariant/ReachuS
97
98
  import TemplateEcommerceSchemeConfigVariant from './modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant';
98
99
  import TemplateEcommerceSchemeConfigVariantMapped from './modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped';
99
100
 
101
+ //Subscriptions
102
+ import Plan from './modules/subscriptions/Plan';
103
+ import Subscription from './modules/subscriptions/Subscription';
104
+
100
105
  export {
101
106
  CustomVariant,
102
107
  CustomProduct,
@@ -185,4 +190,7 @@ export {
185
190
  TemplateEcommerceSchemeConfigVariant,
186
191
  TemplateEcommerceSchemeConfigVariantMapped,
187
192
  ReachuSchemeConfigVariant,
193
+ Plan,
194
+ Subscription,
195
+ EnvironmentConfiguration,
188
196
  };
@@ -0,0 +1,20 @@
1
+ import AuditedModel from '../../AuditedModel';
2
+ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
3
+
4
+ @Entity()
5
+ export default class Plan extends AuditedModel {
6
+ @PrimaryGeneratedColumn()
7
+ id: number;
8
+
9
+ @Column('varchar', { length: 100 })
10
+ name: string;
11
+
12
+ @Column('varchar', { nullable: true })
13
+ description: string;
14
+
15
+ @Column('varchar', { nullable: true })
16
+ originId: string;
17
+
18
+ @Column('varchar', { nullable: true })
19
+ response: string;
20
+ }
@@ -0,0 +1,34 @@
1
+ import AuditedModel from '../../AuditedModel';
2
+ import User from '../../User';
3
+ import Plan from './Plan';
4
+
5
+ import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
6
+
7
+ @Entity()
8
+ export default class Subscription extends AuditedModel {
9
+ @PrimaryGeneratedColumn()
10
+ id: number;
11
+
12
+ @ManyToOne(() => User, (user: User) => user.id, { eager: true, onDelete: 'CASCADE' })
13
+ @JoinColumn()
14
+ user: User;
15
+
16
+ @ManyToOne(() => Plan, (plan: Plan) => plan.id, { eager: true, onDelete: 'CASCADE' })
17
+ @JoinColumn()
18
+ plan: Plan;
19
+
20
+ @Column('varchar', { nullable: true })
21
+ customerId: string;
22
+
23
+ @Column('boolean')
24
+ isProd: boolean;
25
+
26
+ @Column('varchar', { length: 100, nullable: true })
27
+ status: string;
28
+
29
+ @Column('varchar', { nullable: true })
30
+ originId: string;
31
+
32
+ @Column('varchar', { nullable: true })
33
+ response: string;
34
+ }
@@ -11,19 +11,31 @@ export default class AuthInfo extends AuditedModel {
11
11
  deletedAt: Date;
12
12
 
13
13
  @Column('varchar', { nullable: true })
14
- token: string;
14
+ apiKeyKey: string;
15
15
 
16
16
  @Column('varchar', { nullable: true })
17
- apiKey: string;
17
+ apiKeyValue: string;
18
18
 
19
19
  @Column('varchar', { nullable: true })
20
- basic: string;
20
+ bearerToken: string;
21
21
 
22
22
  @Column('varchar', { nullable: true })
23
- publicKey: string;
23
+ basicAuthUsername: string;
24
24
 
25
25
  @Column('varchar', { nullable: true })
26
- privateKey: string;
26
+ basicAuthPassword: string;
27
+
28
+ @Column('varchar', { nullable: true })
29
+ oauthOneConsumerKey: string;
30
+
31
+ @Column('varchar', { nullable: true })
32
+ oauthOneConsumerSecret: string;
33
+
34
+ @Column('varchar', { nullable: true })
35
+ oauthTwoToken: string;
36
+
37
+ @Column('varchar', { nullable: true })
38
+ oauthTwoPrefix: string;
27
39
 
28
40
  @OneToMany(
29
41
  () => UserTemplateEcommerce,
@@ -0,0 +1,22 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class Subscriptions1681741033630 implements MigrationInterface {
4
+ name = 'Subscriptions1681741033630'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`CREATE TABLE \`environment_configuration\` (\`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, \`key\` varchar(255) NOT NULL, \`value\` varchar(255) NOT NULL, \`stage\` varchar(20) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
8
+ await queryRunner.query(`CREATE TABLE \`plan\` (\`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, \`name\` varchar(100) NOT NULL, \`description\` varchar(255) NULL, \`origin_id\` varchar(255) NULL, \`response\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
9
+ await queryRunner.query(`CREATE TABLE \`subscription\` (\`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, \`customer_id\` varchar(255) NULL, \`is_prod\` tinyint NOT NULL, \`status\` varchar(100) NULL, \`origin_id\` varchar(255) NULL, \`response\` varchar(255) NULL, \`user_id\` int NULL, \`plan_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
10
+ await queryRunner.query(`ALTER TABLE \`subscription\` ADD CONSTRAINT \`FK_940d49a105d50bbd616be540013\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
11
+ await queryRunner.query(`ALTER TABLE \`subscription\` ADD CONSTRAINT \`FK_5fde988e5d9b9a522d70ebec27c\` FOREIGN KEY (\`plan_id\`) REFERENCES \`plan\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
12
+ }
13
+
14
+ public async down(queryRunner: QueryRunner): Promise<void> {
15
+ await queryRunner.query(`ALTER TABLE \`subscription\` DROP FOREIGN KEY \`FK_5fde988e5d9b9a522d70ebec27c\``);
16
+ await queryRunner.query(`ALTER TABLE \`subscription\` DROP FOREIGN KEY \`FK_940d49a105d50bbd616be540013\``);
17
+ await queryRunner.query(`DROP TABLE \`subscription\``);
18
+ await queryRunner.query(`DROP TABLE \`plan\``);
19
+ await queryRunner.query(`DROP TABLE \`environment_configuration\``);
20
+ }
21
+
22
+ }
@@ -0,0 +1,40 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class templateAuthFix1681765500644 implements MigrationInterface {
4
+ name = 'templateAuthFix1681765500644'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`token\``);
8
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key\``);
9
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic\``);
10
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`public_key\``);
11
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`private_key\``);
12
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_key\` varchar(255) NULL`);
13
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key_value\` varchar(255) NULL`);
14
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`bearer_token\` varchar(255) NULL`);
15
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_username\` varchar(255) NULL`);
16
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic_auth_password\` varchar(255) NULL`);
17
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_key\` varchar(255) NULL`);
18
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_one_consumer_secret\` varchar(255) NULL`);
19
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_token\` varchar(255) NULL`);
20
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`oauth_two_prefix\` varchar(255) NULL`);
21
+ }
22
+
23
+ public async down(queryRunner: QueryRunner): Promise<void> {
24
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_prefix\``);
25
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_two_token\``);
26
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_secret\``);
27
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`oauth_one_consumer_key\``);
28
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_password\``);
29
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`basic_auth_username\``);
30
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`bearer_token\``);
31
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_value\``);
32
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP COLUMN \`api_key_key\``);
33
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`private_key\` varchar(255) NULL`);
34
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`public_key\` varchar(255) NULL`);
35
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`basic\` varchar(255) NULL`);
36
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`api_key\` varchar(255) NULL`);
37
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD \`token\` varchar(255) NULL`);
38
+ }
39
+
40
+ }
@@ -55,6 +55,8 @@ import Attribute from '../entity/Attribute';
55
55
  import ProductAttribute from '../entity/ProductAttribute';
56
56
  import CategoryImages from '../entity/CategoryImages';
57
57
 
58
+ import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
59
+
58
60
  import {
59
61
  CartItemRepository,
60
62
  CartRepository,
@@ -87,6 +89,8 @@ import {
87
89
  UserTemplateEcommerceRepository,
88
90
  } from './templates';
89
91
 
92
+ import { PlanRepository, SubscriptionRepository } from './subscriptions';
93
+
90
94
  import { Repository, EntityRepository } from 'typeorm';
91
95
 
92
96
  @EntityRepository(CategoryImages)
@@ -251,6 +255,9 @@ export class CurrencyRepository extends Repository<Currency> {}
251
255
  @EntityRepository(ExchangeRate)
252
256
  export class ExchangeRateRepository extends Repository<ExchangeRate> {}
253
257
 
258
+ @EntityRepository(EnvironmentConfiguration)
259
+ export class EnvironmentConfigurationRepository extends Repository<EnvironmentConfiguration> {}
260
+
254
261
  export {
255
262
  CartItemRepository,
256
263
  CartRepository,
@@ -278,3 +285,5 @@ export {
278
285
  };
279
286
 
280
287
  export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
288
+
289
+ export { PlanRepository, SubscriptionRepository };
@@ -0,0 +1,9 @@
1
+ import { Repository, EntityRepository } from 'typeorm';
2
+ import Plan from '../../entity/modules/subscriptions/Plan';
3
+ import Subscription from '../../entity/modules/subscriptions/Subscription';
4
+
5
+ @EntityRepository(Plan)
6
+ export class PlanRepository extends Repository<Plan> {}
7
+
8
+ @EntityRepository(Subscription)
9
+ export class SubscriptionRepository extends Repository<Subscription> {}