@reachu/database 1.0.51 → 1.0.52
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/Translate.d.ts +8 -0
- package/dist/entity/Translate.js +43 -0
- package/dist/entity/Translate.js.map +1 -0
- 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/migrations/1683322405116-translate.d.ts +6 -0
- package/dist/migrations/1683322405116-translate.js +29 -0
- package/dist/migrations/1683322405116-translate.js.map +1 -0
- package/dist/repositories/index.d.ts +3 -0
- package/dist/repositories/index.js +8 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +33 -4
- package/package.json +3 -3
- package/src/entity/Translate.ts +20 -0
- package/src/entity/index.ts +3 -0
- package/src/migrations/1683322405116-translate.ts +14 -0
- package/src/repositories/index.ts +5 -0
|
@@ -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 typeorm_1 = require("typeorm");
|
|
16
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
17
|
+
let Translate = class Translate extends AuditedModel_1.default {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Translate.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
typeorm_1.DeleteDateColumn(),
|
|
25
|
+
__metadata("design:type", Date)
|
|
26
|
+
], Translate.prototype, "deletedAt", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
typeorm_1.Column('text'),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Translate.prototype, "source", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
typeorm_1.Column('text'),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Translate.prototype, "target", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
typeorm_1.Column('varchar', { length: '21844' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Translate.prototype, "values", void 0);
|
|
39
|
+
Translate = __decorate([
|
|
40
|
+
typeorm_1.Entity()
|
|
41
|
+
], Translate);
|
|
42
|
+
exports.default = Translate;
|
|
43
|
+
//# sourceMappingURL=Translate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Translate.js","sourceRoot":"","sources":["../../src/entity/Translate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmF;AACnF,kEAA0C;AAG1C,IAAqB,SAAS,GAA9B,MAAqB,SAAU,SAAQ,sBAAY;CAelD,CAAA;AAbC;IADC,gCAAsB,CAAC,MAAM,CAAC;;qCACpB;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;4CAAC;AAGhB;IADC,gBAAM,CAAC,MAAM,CAAC;;yCACA;AAGf;IADC,gBAAM,CAAC,MAAM,CAAC;;yCACA;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;yCACxB;AAdI,SAAS;IAD7B,gBAAM,EAAE;GACY,SAAS,CAe7B;kBAfoB,SAAS"}
|
package/dist/entity/index.d.ts
CHANGED
|
@@ -89,4 +89,5 @@ import TemplateEcommerceSchemeConfigVariantMapped from './modules/templates/sche
|
|
|
89
89
|
import Plan from './modules/subscriptions/Plan';
|
|
90
90
|
import Subscription from './modules/subscriptions/Subscription';
|
|
91
91
|
import UserCountPlan from './modules/subscriptions/UserCountPlan';
|
|
92
|
-
|
|
92
|
+
import Translate from './Translate';
|
|
93
|
+
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, UserCountPlan, EnvironmentConfiguration, Translate, };
|
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.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.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 = void 0;
|
|
7
|
+
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 = 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"));
|
|
@@ -187,4 +187,6 @@ const Subscription_1 = __importDefault(require("./modules/subscriptions/Subscrip
|
|
|
187
187
|
exports.Subscription = Subscription_1.default;
|
|
188
188
|
const UserCountPlan_1 = __importDefault(require("./modules/subscriptions/UserCountPlan"));
|
|
189
189
|
exports.UserCountPlan = UserCountPlan_1.default;
|
|
190
|
+
const Translate_1 = __importDefault(require("./Translate"));
|
|
191
|
+
exports.Translate = Translate_1.default;
|
|
190
192
|
//# sourceMappingURL=index.js.map
|
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;AAwH9B,kBAxHK,iBAAO,CAwHL;AAvHT,oEAA4C;AAwH1C,wBAxHK,uBAAa,CAwHL;AAvHf,kEAA0C;AAwHxC,uBAxHK,sBAAY,CAwHL;AAvHd,gEAAwC;AAwHtC,sBAxHK,qBAAW,CAwHL;AAvHb,0DAAkC;AAwHhC,mBAxHK,kBAAQ,CAwHL;AAvHV,0EAAkD;AAwHhD,2BAxHK,0BAAgB,CAwHL;AAvHlB,0EAAkD;AAwHhD,2BAxHK,0BAAgB,CAwHL;AAvHlB,0DAAkC;AAwHhC,mBAxHK,kBAAQ,CAwHL;AAvHV,wDAAgC;AAwH9B,kBAxHK,iBAAO,CAwHL;AAvHT,oDAA4B;AAwH1B,gBAxHK,eAAK,CAwHL;AAvHP,0EAAkD;AAwHhD,2BAxHK,0BAAgB,CAwHL;AAvHlB,wDAAgC;AAwH9B,kBAxHK,iBAAO,CAwHL;AAvHT,wDAAgC;AAwH9B,kBAxHK,iBAAO,CAwHL;AAvHT,wDAAgC;AAwH9B,kBAxHK,iBAAO,CAwHL;AAvHT,0DAAkC;AAwHhC,mBAxHK,kBAAQ,CAwHL;AAvHV,wEAAgD;AAwH9C,0BAxHK,yBAAe,CAwHL;AAvHjB,gEAAwC;AAwHtC,sBAxHK,qBAAW,CAwHL;AAvHb,oDAA4B;AAwH1B,gBAxHK,eAAK,CAwHL;AAvHP,wEAAgD;AAwH9C,0BAxHK,yBAAe,CAwHL;AAvHjB,yEAA+D;AAwH7D,kGAxHO,4CAAiB,OAwHP;AAvHnB,0EAAkD;AAwHhD,2BAxHK,0BAAgB,CAwHL;AAvHlB,kEAA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8C;AAqG5C,yBArGK,wBAAc,CAqGL;AAlGhB,4EAAoD;AAmGlD,mBAnGK,kBAAQ,CAmGL;AAlGV,gFAAwD;AAmGtD,qBAnGK,oBAAU,CAmGL;AAlGZ,8GAAsF;AAmGpF,oCAnGK,mCAAyB,CAmGL;AAlG3B,8FAAsE;AAmGpE,4BAnGK,2BAAiB,CAmGL;AAlGnB,sGAA8E;AAmG5E,gCAnGK,+BAAqB,CAmGL;AAjGvB,sHAA8F;AAoG5F,kCApGK,iCAAuB,CAoGL;AAnGzB,4IAAoH;AAiGlH,6CAjGK,4CAAkC,CAiGL;AAhGpC,wJAAgI;AAiG9H,mDAjGK,kDAAwC,CAiGL;AA/F1C,4HAAoG;AAmGlG,oCAnGK,mCAAyB,CAmGL;AAlG3B,kJAA0H;AAgGxH,+CAhGK,8CAAoC,CAgGL;AA/FtC,8JAAsI;AAgGpI,qDAhGK,oDAA0C,CAgGL;AA9F5C,4HAAoG;AAkGlG,oCAlGK,mCAAyB,CAkGL;AAjG3B,kJAA0H;AA+FxH,+CA/FK,8CAAoC,CA+FL;AA9FtC,8JAAsI;AA+FpI,qDA/FK,oDAA0C,CA+FL;AA5F5C,wEAAgD;AA8F9C,eA9FK,cAAI,CA8FL;AA7FN,wFAAgE;AA8F9D,uBA9FK,sBAAY,CA8FL;AA7Fd,0FAAkE;AA8FhE,wBA9FK,uBAAa,CA8FL;AA5Ff,4DAAoC;AA8FlC,oBA9FK,mBAAS,CA8FL"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.translate1683322405116 = void 0;
|
|
13
|
+
class translate1683322405116 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'translate1683322405116';
|
|
16
|
+
}
|
|
17
|
+
up(queryRunner) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
yield queryRunner.query(`CREATE TABLE \`translate\` (\`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\` varchar(36) NOT NULL, \`deleted_at\` datetime(6) NULL, \`source\` text NOT NULL, \`target\` text NOT NULL, \`values\` varchar(21844) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
down(queryRunner) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield queryRunner.query(`DROP TABLE \`translate\``);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.translate1683322405116 = translate1683322405116;
|
|
29
|
+
//# sourceMappingURL=1683322405116-translate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1683322405116-translate.js","sourceRoot":"","sources":["../../src/migrations/1683322405116-translate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,sBAAsB;IAAnC;QACI,SAAI,GAAG,wBAAwB,CAAA;IAUnC,CAAC;IARgB,EAAE,CAAC,WAAwB;;YACpC,MAAM,WAAW,CAAC,KAAK,CAAC,0XAA0X,CAAC,CAAC;QACxZ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QACxD,CAAC;KAAA;CAEJ;AAXD,wDAWC"}
|
|
@@ -53,6 +53,7 @@ import Attribute from '../entity/Attribute';
|
|
|
53
53
|
import ProductAttribute from '../entity/ProductAttribute';
|
|
54
54
|
import CategoryImages from '../entity/CategoryImages';
|
|
55
55
|
import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
56
|
+
import Translate from '../entity/Translate';
|
|
56
57
|
import { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository } from './shopcart';
|
|
57
58
|
import { ProductShippingRepository, ShippingCountryRepository, ShippingRepository } from './shipping';
|
|
58
59
|
import { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository } from './templates';
|
|
@@ -168,6 +169,8 @@ export declare class ExchangeRateRepository extends Repository<ExchangeRate> {
|
|
|
168
169
|
}
|
|
169
170
|
export declare class EnvironmentConfigurationRepository extends Repository<EnvironmentConfiguration> {
|
|
170
171
|
}
|
|
172
|
+
export declare class TranslateRepository extends Repository<Translate> {
|
|
173
|
+
}
|
|
171
174
|
export { CartItemRepository, CartRepository, CheckoutBillingAddressRepository, CheckoutRepository, CheckoutShippingAddressRepository, PriceDataRepository, };
|
|
172
175
|
export { AuthInfoRepository, AuthMethodRepository, EndpointTemplateEcommerceRepository, ReachuSchemeConfigOrderRepository, ReachuSchemeConfigProductRepository, ReachuSchemeConfigVariantRepository, TemplateEcommerceRepository, TemplateEcommerceSchemeConfigOrderMappedRepository, TemplateEcommerceSchemeConfigOrderRepository, TemplateEcommerceSchemeConfigProductMappedRepository, TemplateEcommerceSchemeConfigProductRepository, TemplateEcommerceSchemeConfigVariantMappedRepository, TemplateEcommerceSchemeConfigVariantRepository, UserTemplateEcommerceRepository, };
|
|
173
176
|
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|
|
@@ -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.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.EnvironmentConfigurationRepository = exports.ExchangeRateRepository = exports.CurrencyRepository = exports.UserChannelApiKeyRepository = exports.ChannelUserProductSyncRepository = 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.TranslateRepository = 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"));
|
|
@@ -66,6 +66,7 @@ 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
68
|
const EnvironmentConfiguration_1 = __importDefault(require("../entity/EnvironmentConfiguration"));
|
|
69
|
+
const Translate_1 = __importDefault(require("../entity/Translate"));
|
|
69
70
|
const shopcart_1 = require("./shopcart");
|
|
70
71
|
Object.defineProperty(exports, "CartItemRepository", { enumerable: true, get: function () { return shopcart_1.CartItemRepository; } });
|
|
71
72
|
Object.defineProperty(exports, "CartRepository", { enumerable: true, get: function () { return shopcart_1.CartRepository; } });
|
|
@@ -427,4 +428,10 @@ EnvironmentConfigurationRepository = __decorate([
|
|
|
427
428
|
typeorm_1.EntityRepository(EnvironmentConfiguration_1.default)
|
|
428
429
|
], EnvironmentConfigurationRepository);
|
|
429
430
|
exports.EnvironmentConfigurationRepository = EnvironmentConfigurationRepository;
|
|
431
|
+
let TranslateRepository = class TranslateRepository extends typeorm_1.Repository {
|
|
432
|
+
};
|
|
433
|
+
TranslateRepository = __decorate([
|
|
434
|
+
typeorm_1.EntityRepository(Translate_1.default)
|
|
435
|
+
], TranslateRepository);
|
|
436
|
+
exports.TranslateRepository = TranslateRepository;
|
|
430
437
|
//# 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,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,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,0DAAkC;AAClC,8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9C,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"}
|
|
@@ -2711,9 +2711,14 @@
|
|
|
2711
2711
|
"signature": "ccbd78937bdc68df6cc2031fa99c097ed29396842593cbc934039ea589b1ab6e",
|
|
2712
2712
|
"affectsGlobalScope": false
|
|
2713
2713
|
},
|
|
2714
|
+
"../src/entity/translate.ts": {
|
|
2715
|
+
"version": "b402d6f896d392b3c2ff5f9e2e5ac3bc60361828e6113250f60e7c2cb5a44a92",
|
|
2716
|
+
"signature": "60106f067920f6679c818a7c7d80face5aa58e305d16d1dd99499ab558b97853",
|
|
2717
|
+
"affectsGlobalScope": false
|
|
2718
|
+
},
|
|
2714
2719
|
"../src/entity/index.ts": {
|
|
2715
|
-
"version": "
|
|
2716
|
-
"signature": "
|
|
2720
|
+
"version": "bde14af352d722878681d69cdd8fc227bcb683e861bbe66aadaad7fb33006609",
|
|
2721
|
+
"signature": "bce0a636b2e29d590cf6518a49f65f21ec8fc3c28c1d924b3d3c297c0cd9d65f",
|
|
2717
2722
|
"affectsGlobalScope": false
|
|
2718
2723
|
},
|
|
2719
2724
|
"../src/staticdata/productorigin.ts": {
|
|
@@ -2792,8 +2797,8 @@
|
|
|
2792
2797
|
"affectsGlobalScope": false
|
|
2793
2798
|
},
|
|
2794
2799
|
"../src/repositories/index.ts": {
|
|
2795
|
-
"version": "
|
|
2796
|
-
"signature": "
|
|
2800
|
+
"version": "3b876923afcf5087b089931f723d05e8f8385bbcb5cd9217b72ff86f6e609ae6",
|
|
2801
|
+
"signature": "443682ff6fc60993b6fe4e442c93e9fbdd74ff0ffa75bd9cfeb091cf4711e229",
|
|
2797
2802
|
"affectsGlobalScope": false
|
|
2798
2803
|
},
|
|
2799
2804
|
"../src/subscribers/productsubscriber.ts": {
|
|
@@ -3201,6 +3206,11 @@
|
|
|
3201
3206
|
"signature": "5c0702af6507391c427551ef6b8f83cfe3b94951aebf508875a3777529101b0a",
|
|
3202
3207
|
"affectsGlobalScope": false
|
|
3203
3208
|
},
|
|
3209
|
+
"../src/migrations/1683322405116-translate.ts": {
|
|
3210
|
+
"version": "bab766ce22db2cace6db62f7d8d2f7acce511564c26515c18157c9ca24840b98",
|
|
3211
|
+
"signature": "c70dd884837e5718990fef267d89aff5390410454e6495ba9da9509710276bc4",
|
|
3212
|
+
"affectsGlobalScope": false
|
|
3213
|
+
},
|
|
3204
3214
|
"../src/migrations/execute/index.ts": {
|
|
3205
3215
|
"version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
|
|
3206
3216
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
@@ -5389,6 +5399,7 @@
|
|
|
5389
5399
|
"../src/entity/shippingpackage.ts",
|
|
5390
5400
|
"../src/entity/shopifyconnection.ts",
|
|
5391
5401
|
"../src/entity/subcategory.ts",
|
|
5402
|
+
"../src/entity/translate.ts",
|
|
5392
5403
|
"../src/entity/user.ts",
|
|
5393
5404
|
"../src/entity/userchannelapikey.ts",
|
|
5394
5405
|
"../src/entity/userrole.ts",
|
|
@@ -5687,6 +5698,10 @@
|
|
|
5687
5698
|
"../src/entity/auditedmodel.ts",
|
|
5688
5699
|
"../src/entity/category.ts"
|
|
5689
5700
|
],
|
|
5701
|
+
"../src/entity/translate.ts": [
|
|
5702
|
+
"../node_modules/typeorm/index.d.ts",
|
|
5703
|
+
"../src/entity/auditedmodel.ts"
|
|
5704
|
+
],
|
|
5690
5705
|
"../src/entity/user.ts": [
|
|
5691
5706
|
"../node_modules/@reachu/logger/dist/index.d.ts",
|
|
5692
5707
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -5975,6 +5990,9 @@
|
|
|
5975
5990
|
"../src/migrations/1683077989567-update_plan.ts": [
|
|
5976
5991
|
"../node_modules/typeorm/index.d.ts"
|
|
5977
5992
|
],
|
|
5993
|
+
"../src/migrations/1683322405116-translate.ts": [
|
|
5994
|
+
"../node_modules/typeorm/index.d.ts"
|
|
5995
|
+
],
|
|
5978
5996
|
"../src/migrations/execute/index.ts": [
|
|
5979
5997
|
"../src/config/connect.ts"
|
|
5980
5998
|
],
|
|
@@ -6039,6 +6057,7 @@
|
|
|
6039
6057
|
"../src/entity/shippingpackage.ts",
|
|
6040
6058
|
"../src/entity/shopifyconnection.ts",
|
|
6041
6059
|
"../src/entity/subcategory.ts",
|
|
6060
|
+
"../src/entity/translate.ts",
|
|
6042
6061
|
"../src/entity/user.ts",
|
|
6043
6062
|
"../src/entity/userchannelapikey.ts",
|
|
6044
6063
|
"../src/entity/userrole.ts",
|
|
@@ -8109,6 +8128,7 @@
|
|
|
8109
8128
|
"../src/entity/shippingpackage.ts",
|
|
8110
8129
|
"../src/entity/shopifyconnection.ts",
|
|
8111
8130
|
"../src/entity/subcategory.ts",
|
|
8131
|
+
"../src/entity/translate.ts",
|
|
8112
8132
|
"../src/entity/user.ts",
|
|
8113
8133
|
"../src/entity/userchannelapikey.ts",
|
|
8114
8134
|
"../src/entity/userrole.ts",
|
|
@@ -8342,6 +8362,9 @@
|
|
|
8342
8362
|
"../src/entity/auditedmodel.ts",
|
|
8343
8363
|
"../src/entity/category.ts"
|
|
8344
8364
|
],
|
|
8365
|
+
"../src/entity/translate.ts": [
|
|
8366
|
+
"../src/entity/auditedmodel.ts"
|
|
8367
|
+
],
|
|
8345
8368
|
"../src/entity/user.ts": [
|
|
8346
8369
|
"../src/entity/address.ts",
|
|
8347
8370
|
"../src/entity/apicredential.ts",
|
|
@@ -8604,6 +8627,9 @@
|
|
|
8604
8627
|
"../src/migrations/1683077989567-update_plan.ts": [
|
|
8605
8628
|
"../node_modules/typeorm/index.d.ts"
|
|
8606
8629
|
],
|
|
8630
|
+
"../src/migrations/1683322405116-translate.ts": [
|
|
8631
|
+
"../node_modules/typeorm/index.d.ts"
|
|
8632
|
+
],
|
|
8607
8633
|
"../src/migrations/index.ts": [
|
|
8608
8634
|
"../src/migrations/1628474597284-initialschema.ts",
|
|
8609
8635
|
"../src/migrations/1630077596132-removemangopay.ts",
|
|
@@ -8665,6 +8691,7 @@
|
|
|
8665
8691
|
"../src/entity/shippingpackage.ts",
|
|
8666
8692
|
"../src/entity/shopifyconnection.ts",
|
|
8667
8693
|
"../src/entity/subcategory.ts",
|
|
8694
|
+
"../src/entity/translate.ts",
|
|
8668
8695
|
"../src/entity/user.ts",
|
|
8669
8696
|
"../src/entity/userchannelapikey.ts",
|
|
8670
8697
|
"../src/entity/userrole.ts",
|
|
@@ -9311,6 +9338,7 @@
|
|
|
9311
9338
|
"../src/entity/shippingpackage.ts",
|
|
9312
9339
|
"../src/entity/shopifyconnection.ts",
|
|
9313
9340
|
"../src/entity/subcategory.ts",
|
|
9341
|
+
"../src/entity/translate.ts",
|
|
9314
9342
|
"../src/entity/user.ts",
|
|
9315
9343
|
"../src/entity/userchannelapikey.ts",
|
|
9316
9344
|
"../src/entity/userrole.ts",
|
|
@@ -9389,6 +9417,7 @@
|
|
|
9389
9417
|
"../src/migrations/1682691040003-code-in-plan.ts",
|
|
9390
9418
|
"../src/migrations/1682702844783-promote_to_production_28_04_2023.ts",
|
|
9391
9419
|
"../src/migrations/1683077989567-update_plan.ts",
|
|
9420
|
+
"../src/migrations/1683322405116-translate.ts",
|
|
9392
9421
|
"../src/migrations/execute/index.ts",
|
|
9393
9422
|
"../src/migrations/index.ts",
|
|
9394
9423
|
"../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.52",
|
|
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.52",
|
|
25
|
+
"@reachu/utils": "1.0.52",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Column, DeleteDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
2
|
+
import AuditedModel from './AuditedModel';
|
|
3
|
+
|
|
4
|
+
@Entity()
|
|
5
|
+
export default class Translate extends AuditedModel {
|
|
6
|
+
@PrimaryGeneratedColumn('uuid')
|
|
7
|
+
id: string;
|
|
8
|
+
|
|
9
|
+
@DeleteDateColumn()
|
|
10
|
+
deletedAt: Date;
|
|
11
|
+
|
|
12
|
+
@Column('text')
|
|
13
|
+
source: string;
|
|
14
|
+
|
|
15
|
+
@Column('text')
|
|
16
|
+
target: string;
|
|
17
|
+
|
|
18
|
+
@Column('varchar', { length: '21844' })
|
|
19
|
+
values: string;
|
|
20
|
+
}
|
package/src/entity/index.ts
CHANGED
|
@@ -103,6 +103,8 @@ import Plan from './modules/subscriptions/Plan';
|
|
|
103
103
|
import Subscription from './modules/subscriptions/Subscription';
|
|
104
104
|
import UserCountPlan from './modules/subscriptions/UserCountPlan';
|
|
105
105
|
|
|
106
|
+
import Translate from './Translate';
|
|
107
|
+
|
|
106
108
|
export {
|
|
107
109
|
CustomVariant,
|
|
108
110
|
CustomProduct,
|
|
@@ -195,4 +197,5 @@ export {
|
|
|
195
197
|
Subscription,
|
|
196
198
|
UserCountPlan,
|
|
197
199
|
EnvironmentConfiguration,
|
|
200
|
+
Translate,
|
|
198
201
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class translate1683322405116 implements MigrationInterface {
|
|
4
|
+
name = 'translate1683322405116'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`translate\` (\`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\` varchar(36) NOT NULL, \`deleted_at\` datetime(6) NULL, \`source\` text NOT NULL, \`target\` text NOT NULL, \`values\` varchar(21844) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`DROP TABLE \`translate\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -57,6 +57,8 @@ import CategoryImages from '../entity/CategoryImages';
|
|
|
57
57
|
|
|
58
58
|
import EnvironmentConfiguration from '../entity/EnvironmentConfiguration';
|
|
59
59
|
|
|
60
|
+
import Translate from '../entity/Translate';
|
|
61
|
+
|
|
60
62
|
import {
|
|
61
63
|
CartItemRepository,
|
|
62
64
|
CartRepository,
|
|
@@ -258,6 +260,9 @@ export class ExchangeRateRepository extends Repository<ExchangeRate> {}
|
|
|
258
260
|
@EntityRepository(EnvironmentConfiguration)
|
|
259
261
|
export class EnvironmentConfigurationRepository extends Repository<EnvironmentConfiguration> {}
|
|
260
262
|
|
|
263
|
+
@EntityRepository(Translate)
|
|
264
|
+
export class TranslateRepository extends Repository<Translate> {}
|
|
265
|
+
|
|
261
266
|
export {
|
|
262
267
|
CartItemRepository,
|
|
263
268
|
CartRepository,
|