@saasicat/adapter-prisma 1.0.0-rc.0 → 1.0.0-rc.2
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/.build-stamp +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/package.json +7 -6
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
179dbac7b9329674978a2e97b612b3514fe39b12c1bf83f6ed41a2cafc2f65bd
|
package/dist/index.cjs
CHANGED
|
@@ -777,7 +777,7 @@ __name(validDateString, "validDateString");
|
|
|
777
777
|
|
|
778
778
|
// src/prisma-bundle.repository.ts
|
|
779
779
|
var import_common5 = require("@nestjs/common");
|
|
780
|
-
var
|
|
780
|
+
var import_core = require("@saasicat/core");
|
|
781
781
|
|
|
782
782
|
// src/tx.ts
|
|
783
783
|
function resolveClient(client, tx) {
|
|
@@ -1004,7 +1004,7 @@ var PrismaBundleRepository = class {
|
|
|
1004
1004
|
const row = await db.bundleVersion.findFirst({
|
|
1005
1005
|
where: {
|
|
1006
1006
|
bundleId,
|
|
1007
|
-
...(0,
|
|
1007
|
+
...(0, import_core.buildActiveVersionWhere)(asOf)
|
|
1008
1008
|
},
|
|
1009
1009
|
orderBy: [
|
|
1010
1010
|
{
|
|
@@ -2483,7 +2483,7 @@ __name(toFeatureCatalogEntryRow, "toFeatureCatalogEntryRow");
|
|
|
2483
2483
|
|
|
2484
2484
|
// src/prisma-plan.repository.ts
|
|
2485
2485
|
var import_common12 = require("@nestjs/common");
|
|
2486
|
-
var
|
|
2486
|
+
var import_core2 = require("@saasicat/core");
|
|
2487
2487
|
function _ts_decorate12(decorators, target, key, desc) {
|
|
2488
2488
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2489
2489
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2766,9 +2766,9 @@ var PrismaPlanRepository = class {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
const db = this.db(tx);
|
|
2768
2768
|
const storedPlanId = await this.binding.toStoragePlanId(db, planKey);
|
|
2769
|
-
const activeWhere = this.fields.endsAt ? (0,
|
|
2769
|
+
const activeWhere = this.fields.endsAt ? (0, import_core2.buildActivePlanVersionWhere)(asOf, {
|
|
2770
2770
|
withEndsAt: true
|
|
2771
|
-
}) : (0,
|
|
2771
|
+
}) : (0, import_core2.buildActivePlanVersionWhere)(asOf);
|
|
2772
2772
|
const row = await this.versions(db).findFirst({
|
|
2773
2773
|
where: {
|
|
2774
2774
|
planId: storedPlanId,
|
|
@@ -3016,7 +3016,7 @@ __name(toPlanVersionRow2, "toPlanVersionRow");
|
|
|
3016
3016
|
|
|
3017
3017
|
// src/prisma-plan-version.repository.ts
|
|
3018
3018
|
var import_common13 = require("@nestjs/common");
|
|
3019
|
-
var
|
|
3019
|
+
var import_core3 = require("@saasicat/core");
|
|
3020
3020
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
3021
3021
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3022
3022
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3077,9 +3077,9 @@ var PrismaPlanVersionRepository = class {
|
|
|
3077
3077
|
async findActivePlanVersion(planId, asOf, tx) {
|
|
3078
3078
|
const db = this.db(tx);
|
|
3079
3079
|
const storedPlanId = await this.binding.toStoragePlanId(db, planId);
|
|
3080
|
-
const activeWhere = this.fields.endsAt ? (0,
|
|
3080
|
+
const activeWhere = this.fields.endsAt ? (0, import_core3.buildActivePlanVersionWhere)(asOf, {
|
|
3081
3081
|
withEndsAt: true
|
|
3082
|
-
}) : (0,
|
|
3082
|
+
}) : (0, import_core3.buildActivePlanVersionWhere)(asOf);
|
|
3083
3083
|
const row = await this.versions(db).findFirst({
|
|
3084
3084
|
where: {
|
|
3085
3085
|
planId: storedPlanId,
|
|
@@ -4526,7 +4526,7 @@ PrismaSubscriptionUsageAdapter = _ts_decorate22([
|
|
|
4526
4526
|
|
|
4527
4527
|
// src/prisma-super-admin-bootstrap.adapter.ts
|
|
4528
4528
|
var import_common23 = require("@nestjs/common");
|
|
4529
|
-
var
|
|
4529
|
+
var import_core4 = require("@saasicat/core");
|
|
4530
4530
|
function _ts_decorate23(decorators, target, key, desc) {
|
|
4531
4531
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4532
4532
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4571,7 +4571,7 @@ var PrismaSuperAdminBootstrapAdapter = class {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
});
|
|
4573
4573
|
if (existing) {
|
|
4574
|
-
throw new
|
|
4574
|
+
throw new import_core4.PlatformUserExistsError(email, existing.platformRole);
|
|
4575
4575
|
}
|
|
4576
4576
|
const row = await this.prisma.superAdminUser.create({
|
|
4577
4577
|
data: {
|
|
@@ -4606,7 +4606,7 @@ PrismaSuperAdminBootstrapAdapter = _ts_decorate23([
|
|
|
4606
4606
|
|
|
4607
4607
|
// src/prisma-tenant-subscription-write.adapter.ts
|
|
4608
4608
|
var import_common24 = require("@nestjs/common");
|
|
4609
|
-
var
|
|
4609
|
+
var import_core5 = require("@saasicat/core");
|
|
4610
4610
|
function _ts_decorate24(decorators, target, key, desc) {
|
|
4611
4611
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4612
4612
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4823,9 +4823,9 @@ var PrismaTenantSubscriptionWriteAdapter = class {
|
|
|
4823
4823
|
}
|
|
4824
4824
|
async findTargetPlanVersionId(client, storagePlanId, asOf) {
|
|
4825
4825
|
const activeWindow = this.schema.tenantSubscription.activeVersionSelection === "validity-window";
|
|
4826
|
-
const activeVersionWhere = this.schema.tenantSubscription.withEndsAt ? (0,
|
|
4826
|
+
const activeVersionWhere = this.schema.tenantSubscription.withEndsAt ? (0, import_core5.buildActivePlanVersionWhere)(asOf, {
|
|
4827
4827
|
withEndsAt: true
|
|
4828
|
-
}) : (0,
|
|
4828
|
+
}) : (0, import_core5.buildActivePlanVersionWhere)(asOf);
|
|
4829
4829
|
const where = activeWindow ? {
|
|
4830
4830
|
planId: storagePlanId,
|
|
4831
4831
|
...activeVersionWhere
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminResourcesPort, AdminTenantListFilter, AdminTenantListRow, AdminTenantDetail, AdminTenantStateResult, AdminUserListFilter, AdminUserListRow, AdminAuditListFilter, AuditEntry, AdminSubscriptionListRow, BundleRepository, TransactionContext, BundleVersionRow, BundleListFilter, BundleRow, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, PersistenceInjectionToken, PasswordHasher, SaaSiCatPersistenceAdapter, TransactionRunner, MfaPort, AuditPort, AdminActor, AuditQueryPort, AuditQuery, AuditStatsPort, RlsBypassPort, SubscriptionRepository, SubscriptionRecord, SubscriptionUsagePort, SubscriptionUsageRecord, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, TenantSubscriptionWritePort, ApplyOnboardingSelectionInput, RedeemPromoInTransactionCallback, ApplyOnboardingSelectionResult, ImmediatePlanChangeInput, ScheduledPlanChangeInput, PlanVersionRepository, PlanVersionRecord, PromoCodeRepository, PromoCodeRecord, PromoCodeFilter, CreatePromoCodeData, UpdatePromoCodeData, PromoCodeRedemptionRepository, PromoCodeRedemptionRecord, PromoCodeRedemptionStatus, PromoCodeRedemptionListItem, PromoCodeValidationLogRepository, PromoSubscriptionLookup, BillingCycle, PromoRevenueDeductionAggregator, SuperAdminProvisioningPort, CreateSuperAdminCliInput, PlatformUserDto, PlanCatalogReadSink, PlanCatalogReadSnapshot, PlanCatalogImportSink, UpsertPlanInput, UpsertResult, UpsertPlanVersionInput, UpsertFeatureCatalogEntryInput, PlanRepository, PlanListFilter, PlanRow, CreatePlanData, UpdatePlanData, PlanVersionRow, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, CatalogEntryRepository, CatalogEntryFilter, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, UpsertCapabilityEntryData, UpsertFeatureEntryData, UpsertQuotaEntryData, SetCatalogEntryReviewData, CatalogEntryI18n, UpdateCatalogEntryBaseData, MarketingProjectionRepository, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, MarketingSettingsRepository, MarketingSettingsRow, UpdateMarketingSettingsData, PromotionRepository, PromotionFilter, PromotionRow, CreatePromotionData, UpdatePromotionData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData } from '@saasicat/
|
|
1
|
+
import { AdminResourcesPort, AdminTenantListFilter, AdminTenantListRow, AdminTenantDetail, AdminTenantStateResult, AdminUserListFilter, AdminUserListRow, AdminAuditListFilter, AuditEntry, AdminSubscriptionListRow, BundleRepository, TransactionContext, BundleVersionRow, BundleListFilter, BundleRow, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, PersistenceInjectionToken, PasswordHasher, SaaSiCatPersistenceAdapter, TransactionRunner, MfaPort, AuditPort, AdminActor, AuditQueryPort, AuditQuery, AuditStatsPort, RlsBypassPort, SubscriptionRepository, SubscriptionRecord, SubscriptionUsagePort, SubscriptionUsageRecord, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, TenantSubscriptionWritePort, ApplyOnboardingSelectionInput, RedeemPromoInTransactionCallback, ApplyOnboardingSelectionResult, ImmediatePlanChangeInput, ScheduledPlanChangeInput, PlanVersionRepository, PlanVersionRecord, PromoCodeRepository, PromoCodeRecord, PromoCodeFilter, CreatePromoCodeData, UpdatePromoCodeData, PromoCodeRedemptionRepository, PromoCodeRedemptionRecord, PromoCodeRedemptionStatus, PromoCodeRedemptionListItem, PromoCodeValidationLogRepository, PromoSubscriptionLookup, BillingCycle, PromoRevenueDeductionAggregator, SuperAdminProvisioningPort, CreateSuperAdminCliInput, PlatformUserDto, PlanCatalogReadSink, PlanCatalogReadSnapshot, PlanCatalogImportSink, UpsertPlanInput, UpsertResult, UpsertPlanVersionInput, UpsertFeatureCatalogEntryInput, PlanRepository, PlanListFilter, PlanRow, CreatePlanData, UpdatePlanData, PlanVersionRow, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, CatalogEntryRepository, CatalogEntryFilter, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, UpsertCapabilityEntryData, UpsertFeatureEntryData, UpsertQuotaEntryData, SetCatalogEntryReviewData, CatalogEntryI18n, UpdateCatalogEntryBaseData, MarketingProjectionRepository, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, MarketingSettingsRepository, MarketingSettingsRow, UpdateMarketingSettingsData, PromotionRepository, PromotionFilter, PromotionRow, CreatePromotionData, UpdatePromotionData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
declare const PRISMA_CLIENT_TOKEN: unique symbol;
|
|
4
4
|
/** Prisma `Decimal` values arrive as objects with `toString()`; tests may use plain values. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminResourcesPort, AdminTenantListFilter, AdminTenantListRow, AdminTenantDetail, AdminTenantStateResult, AdminUserListFilter, AdminUserListRow, AdminAuditListFilter, AuditEntry, AdminSubscriptionListRow, BundleRepository, TransactionContext, BundleVersionRow, BundleListFilter, BundleRow, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, PersistenceInjectionToken, PasswordHasher, SaaSiCatPersistenceAdapter, TransactionRunner, MfaPort, AuditPort, AdminActor, AuditQueryPort, AuditQuery, AuditStatsPort, RlsBypassPort, SubscriptionRepository, SubscriptionRecord, SubscriptionUsagePort, SubscriptionUsageRecord, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, TenantSubscriptionWritePort, ApplyOnboardingSelectionInput, RedeemPromoInTransactionCallback, ApplyOnboardingSelectionResult, ImmediatePlanChangeInput, ScheduledPlanChangeInput, PlanVersionRepository, PlanVersionRecord, PromoCodeRepository, PromoCodeRecord, PromoCodeFilter, CreatePromoCodeData, UpdatePromoCodeData, PromoCodeRedemptionRepository, PromoCodeRedemptionRecord, PromoCodeRedemptionStatus, PromoCodeRedemptionListItem, PromoCodeValidationLogRepository, PromoSubscriptionLookup, BillingCycle, PromoRevenueDeductionAggregator, SuperAdminProvisioningPort, CreateSuperAdminCliInput, PlatformUserDto, PlanCatalogReadSink, PlanCatalogReadSnapshot, PlanCatalogImportSink, UpsertPlanInput, UpsertResult, UpsertPlanVersionInput, UpsertFeatureCatalogEntryInput, PlanRepository, PlanListFilter, PlanRow, CreatePlanData, UpdatePlanData, PlanVersionRow, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, CatalogEntryRepository, CatalogEntryFilter, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, UpsertCapabilityEntryData, UpsertFeatureEntryData, UpsertQuotaEntryData, SetCatalogEntryReviewData, CatalogEntryI18n, UpdateCatalogEntryBaseData, MarketingProjectionRepository, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, MarketingSettingsRepository, MarketingSettingsRow, UpdateMarketingSettingsData, PromotionRepository, PromotionFilter, PromotionRow, CreatePromotionData, UpdatePromotionData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData } from '@saasicat/
|
|
1
|
+
import { AdminResourcesPort, AdminTenantListFilter, AdminTenantListRow, AdminTenantDetail, AdminTenantStateResult, AdminUserListFilter, AdminUserListRow, AdminAuditListFilter, AuditEntry, AdminSubscriptionListRow, BundleRepository, TransactionContext, BundleVersionRow, BundleListFilter, BundleRow, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, PersistenceInjectionToken, PasswordHasher, SaaSiCatPersistenceAdapter, TransactionRunner, MfaPort, AuditPort, AdminActor, AuditQueryPort, AuditQuery, AuditStatsPort, RlsBypassPort, SubscriptionRepository, SubscriptionRecord, SubscriptionUsagePort, SubscriptionUsageRecord, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, TenantSubscriptionWritePort, ApplyOnboardingSelectionInput, RedeemPromoInTransactionCallback, ApplyOnboardingSelectionResult, ImmediatePlanChangeInput, ScheduledPlanChangeInput, PlanVersionRepository, PlanVersionRecord, PromoCodeRepository, PromoCodeRecord, PromoCodeFilter, CreatePromoCodeData, UpdatePromoCodeData, PromoCodeRedemptionRepository, PromoCodeRedemptionRecord, PromoCodeRedemptionStatus, PromoCodeRedemptionListItem, PromoCodeValidationLogRepository, PromoSubscriptionLookup, BillingCycle, PromoRevenueDeductionAggregator, SuperAdminProvisioningPort, CreateSuperAdminCliInput, PlatformUserDto, PlanCatalogReadSink, PlanCatalogReadSnapshot, PlanCatalogImportSink, UpsertPlanInput, UpsertResult, UpsertPlanVersionInput, UpsertFeatureCatalogEntryInput, PlanRepository, PlanListFilter, PlanRow, CreatePlanData, UpdatePlanData, PlanVersionRow, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, CatalogEntryRepository, CatalogEntryFilter, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, UpsertCapabilityEntryData, UpsertFeatureEntryData, UpsertQuotaEntryData, SetCatalogEntryReviewData, CatalogEntryI18n, UpdateCatalogEntryBaseData, MarketingProjectionRepository, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, MarketingSettingsRepository, MarketingSettingsRow, UpdateMarketingSettingsData, PromotionRepository, PromotionFilter, PromotionRow, CreatePromotionData, UpdatePromotionData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
declare const PRISMA_CLIENT_TOKEN: unique symbol;
|
|
4
4
|
/** Prisma `Decimal` values arrive as objects with `toString()`; tests may use plain values. */
|
package/dist/index.js
CHANGED
|
@@ -716,7 +716,7 @@ __name(validDateString, "validDateString");
|
|
|
716
716
|
|
|
717
717
|
// src/prisma-bundle.repository.ts
|
|
718
718
|
import { Inject as Inject4, Injectable as Injectable5, Optional } from "@nestjs/common";
|
|
719
|
-
import { buildActiveVersionWhere } from "@saasicat/
|
|
719
|
+
import { buildActiveVersionWhere } from "@saasicat/core";
|
|
720
720
|
|
|
721
721
|
// src/tx.ts
|
|
722
722
|
function resolveClient(client, tx) {
|
|
@@ -2422,7 +2422,7 @@ __name(toFeatureCatalogEntryRow, "toFeatureCatalogEntryRow");
|
|
|
2422
2422
|
|
|
2423
2423
|
// src/prisma-plan.repository.ts
|
|
2424
2424
|
import { Inject as Inject11, Injectable as Injectable12, Optional as Optional4 } from "@nestjs/common";
|
|
2425
|
-
import { buildActivePlanVersionWhere } from "@saasicat/
|
|
2425
|
+
import { buildActivePlanVersionWhere } from "@saasicat/core";
|
|
2426
2426
|
function _ts_decorate12(decorators, target, key, desc) {
|
|
2427
2427
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2428
2428
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2955,7 +2955,7 @@ __name(toPlanVersionRow2, "toPlanVersionRow");
|
|
|
2955
2955
|
|
|
2956
2956
|
// src/prisma-plan-version.repository.ts
|
|
2957
2957
|
import { Inject as Inject12, Injectable as Injectable13, Optional as Optional5 } from "@nestjs/common";
|
|
2958
|
-
import { buildActivePlanVersionWhere as buildActivePlanVersionWhere2 } from "@saasicat/
|
|
2958
|
+
import { buildActivePlanVersionWhere as buildActivePlanVersionWhere2 } from "@saasicat/core";
|
|
2959
2959
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
2960
2960
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2961
2961
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4465,7 +4465,7 @@ PrismaSubscriptionUsageAdapter = _ts_decorate22([
|
|
|
4465
4465
|
|
|
4466
4466
|
// src/prisma-super-admin-bootstrap.adapter.ts
|
|
4467
4467
|
import { Inject as Inject22, Injectable as Injectable23 } from "@nestjs/common";
|
|
4468
|
-
import { PlatformUserExistsError } from "@saasicat/
|
|
4468
|
+
import { PlatformUserExistsError } from "@saasicat/core";
|
|
4469
4469
|
function _ts_decorate23(decorators, target, key, desc) {
|
|
4470
4470
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4471
4471
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4545,7 +4545,7 @@ PrismaSuperAdminBootstrapAdapter = _ts_decorate23([
|
|
|
4545
4545
|
|
|
4546
4546
|
// src/prisma-tenant-subscription-write.adapter.ts
|
|
4547
4547
|
import { Inject as Inject23, Injectable as Injectable24, Optional as Optional8 } from "@nestjs/common";
|
|
4548
|
-
import { buildActivePlanVersionWhere as buildActivePlanVersionWhere3 } from "@saasicat/
|
|
4548
|
+
import { buildActivePlanVersionWhere as buildActivePlanVersionWhere3 } from "@saasicat/core";
|
|
4549
4549
|
function _ts_decorate24(decorators, target, key, desc) {
|
|
4550
4550
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4551
4551
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/adapter-prisma",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"description": "Prisma + PostgreSQL persistence for SaaSiCat: one standard bundle for core, catalog, entitlement, tenant billing, Admin resources and promo, plus individual adapters for custom compositions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"types": "./dist/index.d.cts",
|
|
17
17
|
"default": "./dist/index.cjs"
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
23
|
"dist"
|
|
23
24
|
],
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@saasicat/
|
|
26
|
+
"@saasicat/core": "^1.0.0-rc.2"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
29
|
"@nestjs/common": "^11.0.0"
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
"@prisma/client": "^6.19.0",
|
|
35
36
|
"tsup": "^8.0.0",
|
|
36
37
|
"typescript": "^6.0.0",
|
|
37
|
-
"@saasicat/persistence-testing": "^1.0.0-rc.
|
|
38
|
-
"@saasicat/spec": "^1.0.0-rc.
|
|
38
|
+
"@saasicat/persistence-testing": "^1.0.0-rc.2",
|
|
39
|
+
"@saasicat/spec": "^1.0.0-rc.2"
|
|
39
40
|
},
|
|
40
41
|
"license": "PolyForm-Shield-1.0.0",
|
|
41
42
|
"author": "Taci Uelker",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"access": "public"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
|
-
"build": "node ../../scripts/build-and-prune.mjs \"tsup src/index.ts --format esm,cjs --dts --external @saasicat/
|
|
56
|
+
"build": "node ../../scripts/build-and-prune.mjs \"tsup src/index.ts --format esm,cjs --dts --external @saasicat/core --external @nestjs/common\"",
|
|
56
57
|
"pretest": "pnpm run build",
|
|
57
58
|
"test": "node --test 'tests/*.test.js'",
|
|
58
59
|
"test:integration": "node --test 'tests/integration/*.test.js'"
|