@blackcode_sa/metaestetics-api 1.12.4 → 1.12.5

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/index.d.mts CHANGED
@@ -3897,6 +3897,7 @@ declare enum SubscriptionModel {
3897
3897
  * Enum for subscription status
3898
3898
  */
3899
3899
  declare enum SubscriptionStatus {
3900
+ PENDING = "pending",
3900
3901
  ACTIVE = "active",
3901
3902
  PENDING_CANCELLATION = "pending_cancellation",
3902
3903
  CANCELED = "canceled",
@@ -3920,6 +3921,7 @@ interface BillingInfo {
3920
3921
  * Enum for billing transaction types
3921
3922
  */
3922
3923
  declare enum BillingTransactionType {
3924
+ SUBSCRIPTION_CREATED = "subscription_created",
3923
3925
  SUBSCRIPTION_ACTIVATED = "subscription_activated",
3924
3926
  SUBSCRIPTION_RENEWED = "subscription_renewed",
3925
3927
  SUBSCRIPTION_UPDATED = "subscription_updated",
package/dist/index.d.ts CHANGED
@@ -3897,6 +3897,7 @@ declare enum SubscriptionModel {
3897
3897
  * Enum for subscription status
3898
3898
  */
3899
3899
  declare enum SubscriptionStatus {
3900
+ PENDING = "pending",
3900
3901
  ACTIVE = "active",
3901
3902
  PENDING_CANCELLATION = "pending_cancellation",
3902
3903
  CANCELED = "canceled",
@@ -3920,6 +3921,7 @@ interface BillingInfo {
3920
3921
  * Enum for billing transaction types
3921
3922
  */
3922
3923
  declare enum BillingTransactionType {
3924
+ SUBSCRIPTION_CREATED = "subscription_created",
3923
3925
  SUBSCRIPTION_ACTIVATED = "subscription_activated",
3924
3926
  SUBSCRIPTION_RENEWED = "subscription_renewed",
3925
3927
  SUBSCRIPTION_UPDATED = "subscription_updated",
package/dist/index.js CHANGED
@@ -891,6 +891,7 @@ var SubscriptionModel = /* @__PURE__ */ ((SubscriptionModel2) => {
891
891
  return SubscriptionModel2;
892
892
  })(SubscriptionModel || {});
893
893
  var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
894
+ SubscriptionStatus2["PENDING"] = "pending";
894
895
  SubscriptionStatus2["ACTIVE"] = "active";
895
896
  SubscriptionStatus2["PENDING_CANCELLATION"] = "pending_cancellation";
896
897
  SubscriptionStatus2["CANCELED"] = "canceled";
@@ -899,6 +900,7 @@ var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
899
900
  return SubscriptionStatus2;
900
901
  })(SubscriptionStatus || {});
901
902
  var BillingTransactionType = /* @__PURE__ */ ((BillingTransactionType2) => {
903
+ BillingTransactionType2["SUBSCRIPTION_CREATED"] = "subscription_created";
902
904
  BillingTransactionType2["SUBSCRIPTION_ACTIVATED"] = "subscription_activated";
903
905
  BillingTransactionType2["SUBSCRIPTION_RENEWED"] = "subscription_renewed";
904
906
  BillingTransactionType2["SUBSCRIPTION_UPDATED"] = "subscription_updated";
package/dist/index.mjs CHANGED
@@ -773,6 +773,7 @@ var SubscriptionModel = /* @__PURE__ */ ((SubscriptionModel2) => {
773
773
  return SubscriptionModel2;
774
774
  })(SubscriptionModel || {});
775
775
  var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
776
+ SubscriptionStatus2["PENDING"] = "pending";
776
777
  SubscriptionStatus2["ACTIVE"] = "active";
777
778
  SubscriptionStatus2["PENDING_CANCELLATION"] = "pending_cancellation";
778
779
  SubscriptionStatus2["CANCELED"] = "canceled";
@@ -781,6 +782,7 @@ var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
781
782
  return SubscriptionStatus2;
782
783
  })(SubscriptionStatus || {});
783
784
  var BillingTransactionType = /* @__PURE__ */ ((BillingTransactionType2) => {
785
+ BillingTransactionType2["SUBSCRIPTION_CREATED"] = "subscription_created";
784
786
  BillingTransactionType2["SUBSCRIPTION_ACTIVATED"] = "subscription_activated";
785
787
  BillingTransactionType2["SUBSCRIPTION_RENEWED"] = "subscription_renewed";
786
788
  BillingTransactionType2["SUBSCRIPTION_UPDATED"] = "subscription_updated";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blackcode_sa/metaestetics-api",
3
3
  "private": false,
4
- "version": "1.12.4",
4
+ "version": "1.12.5",
5
5
  "description": "Firebase authentication service with anonymous upgrade support",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -1,22 +1,17 @@
1
- import { Timestamp, FieldValue } from "firebase/firestore";
1
+ import { Timestamp, FieldValue } from 'firebase/firestore';
2
2
 
3
- import type { ClinicInfo } from "../profile";
4
- import { ClinicReviewInfo } from "../reviews";
5
- import { ProcedureSummaryInfo } from "../procedure";
3
+ import type { ClinicInfo } from '../profile';
4
+ import { ClinicReviewInfo } from '../reviews';
5
+ import { ProcedureSummaryInfo } from '../procedure';
6
6
 
7
- export const CLINIC_GROUPS_COLLECTION = "clinic_groups";
8
- export const CLINIC_ADMINS_COLLECTION = "clinic_admins";
9
- export const CLINICS_COLLECTION = "clinics";
7
+ export const CLINIC_GROUPS_COLLECTION = 'clinic_groups';
8
+ export const CLINIC_ADMINS_COLLECTION = 'clinic_admins';
9
+ export const CLINICS_COLLECTION = 'clinics';
10
10
 
11
- import {
12
- PracticeType,
13
- Language,
14
- ClinicTag,
15
- ClinicPhotoTag,
16
- } from "./preferences.types";
17
- import type { MediaResource } from "../../services/media/media.service";
11
+ import { PracticeType, Language, ClinicTag, ClinicPhotoTag } from './preferences.types';
12
+ import type { MediaResource } from '../../services/media/media.service';
18
13
 
19
- export * from "./preferences.types";
14
+ export * from './preferences.types';
20
15
 
21
16
  /**
22
17
  * Interface for clinic contact information
@@ -137,9 +132,9 @@ export interface UpdateClinicAdminData extends Partial<CreateClinicAdminData> {
137
132
  * Enum for admin token status
138
133
  */
139
134
  export enum AdminTokenStatus {
140
- ACTIVE = "active",
141
- USED = "used",
142
- EXPIRED = "expired",
135
+ ACTIVE = 'active',
136
+ USED = 'used',
137
+ EXPIRED = 'expired',
143
138
  }
144
139
 
145
140
  /**
@@ -168,21 +163,22 @@ export interface AdminInfo {
168
163
  * Enum for subscription models
169
164
  */
170
165
  export enum SubscriptionModel {
171
- NO_SUBSCRIPTION = "no_subscription",
172
- BASIC = "basic",
173
- PREMIUM = "premium",
174
- ENTERPRISE = "enterprise",
166
+ NO_SUBSCRIPTION = 'no_subscription',
167
+ BASIC = 'basic',
168
+ PREMIUM = 'premium',
169
+ ENTERPRISE = 'enterprise',
175
170
  }
176
171
 
177
172
  /**
178
173
  * Enum for subscription status
179
174
  */
180
175
  export enum SubscriptionStatus {
181
- ACTIVE = "active",
182
- PENDING_CANCELLATION = "pending_cancellation",
183
- CANCELED = "canceled",
184
- PAST_DUE = "past_due",
185
- TRIALING = "trialing",
176
+ PENDING = 'pending',
177
+ ACTIVE = 'active',
178
+ PENDING_CANCELLATION = 'pending_cancellation',
179
+ CANCELED = 'canceled',
180
+ PAST_DUE = 'past_due',
181
+ TRIALING = 'trialing',
186
182
  }
187
183
 
188
184
  /**
@@ -203,12 +199,13 @@ export interface BillingInfo {
203
199
  * Enum for billing transaction types
204
200
  */
205
201
  export enum BillingTransactionType {
206
- SUBSCRIPTION_ACTIVATED = "subscription_activated",
207
- SUBSCRIPTION_RENEWED = "subscription_renewed",
208
- SUBSCRIPTION_UPDATED = "subscription_updated",
209
- SUBSCRIPTION_CANCELED = "subscription_canceled",
210
- SUBSCRIPTION_REACTIVATED = "subscription_reactivated",
211
- SUBSCRIPTION_DELETED = "subscription_deleted",
202
+ SUBSCRIPTION_CREATED = 'subscription_created',
203
+ SUBSCRIPTION_ACTIVATED = 'subscription_activated',
204
+ SUBSCRIPTION_RENEWED = 'subscription_renewed',
205
+ SUBSCRIPTION_UPDATED = 'subscription_updated',
206
+ SUBSCRIPTION_CANCELED = 'subscription_canceled',
207
+ SUBSCRIPTION_REACTIVATED = 'subscription_reactivated',
208
+ SUBSCRIPTION_DELETED = 'subscription_deleted',
212
209
  }
213
210
 
214
211
  /**
@@ -489,4 +486,4 @@ export interface ClinicTags {
489
486
  }
490
487
 
491
488
  // Export practitioner invite types
492
- export * from "./practitioner-invite.types";
489
+ export * from './practitioner-invite.types';
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { Timestamp } from "firebase/firestore";
1
+ import { z } from 'zod';
2
+ import { Timestamp } from 'firebase/firestore';
3
3
  import {
4
4
  ClinicTag,
5
5
  AdminTokenStatus,
@@ -8,15 +8,11 @@ import {
8
8
  BillingTransactionType,
9
9
  PracticeType,
10
10
  Language,
11
- } from "../types/clinic";
11
+ } from '../types/clinic';
12
12
 
13
- import { clinicReviewInfoSchema } from "./reviews.schema";
14
- import {
15
- procedureSummaryInfoSchema,
16
- clinicInfoSchema,
17
- doctorInfoSchema,
18
- } from "./shared.schema";
19
- import { mediaResourceSchema } from "./media.schema";
13
+ import { clinicReviewInfoSchema } from './reviews.schema';
14
+ import { procedureSummaryInfoSchema, clinicInfoSchema, doctorInfoSchema } from './shared.schema';
15
+ import { mediaResourceSchema } from './media.schema';
20
16
 
21
17
  /**
22
18
  * Validaciona šema za kontakt informacije
@@ -53,7 +49,7 @@ const workingHoursTimeSchema = z.object({
53
49
  z.object({
54
50
  start: z.string(),
55
51
  end: z.string(),
56
- })
52
+ }),
57
53
  )
58
54
  .optional(),
59
55
  });
@@ -273,7 +269,7 @@ export const clinicSchema = z.object({
273
269
  z.object({
274
270
  url: mediaResourceSchema,
275
271
  tag: z.string(),
276
- })
272
+ }),
277
273
  )
278
274
  .optional(),
279
275
  doctors: z.array(z.string()), // List of practitioner IDs
@@ -352,7 +348,7 @@ export const createClinicSchema = z.object({
352
348
  z.object({
353
349
  url: mediaResourceSchema,
354
350
  tag: z.string(),
355
- })
351
+ }),
356
352
  )
357
353
  .optional(),
358
354
  doctors: z.array(z.string()).optional().default([]),
@@ -452,7 +448,7 @@ export const clinicBranchSetupSchema = z.object({
452
448
  z.object({
453
449
  url: mediaResourceSchema,
454
450
  tag: z.string(),
455
- })
451
+ }),
456
452
  )
457
453
  .optional(),
458
454
  featuredPhotos: z.array(mediaResourceSchema).optional(),
@@ -484,7 +480,7 @@ export const updateClinicSchema = z.object({
484
480
  z.object({
485
481
  url: mediaResourceSchema,
486
482
  tag: z.string(),
487
- })
483
+ }),
488
484
  )
489
485
  .optional(),
490
486
  doctors: z.array(z.string()).optional(),