lancer-shared 1.2.11 → 1.2.12

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.
@@ -5713,8 +5713,10 @@ const organizationSchema = objectType({
5713
5713
  createdAt: numberType(),
5714
5714
  updatedAt: numberType(),
5715
5715
  });
5716
- const createOrganizationSchema = organizationSchema.omit({
5717
- id: true,
5716
+ const createOrganizationSchema = organizationSchema.pick({
5717
+ name: true,
5718
+ type: true,
5719
+ tierId: true,
5718
5720
  });
5719
5721
  const creditDeductionEventTypeEnum = LogEventTypeEnum.extract([
5720
5722
  "suitabilityComplete",
@@ -185,7 +185,7 @@ export declare const organizationSchema: z.ZodObject<{
185
185
  createdAt: number;
186
186
  updatedAt: number;
187
187
  }>;
188
- export declare const createOrganizationSchema: z.ZodObject<Omit<{
188
+ export declare const createOrganizationSchema: z.ZodObject<Pick<{
189
189
  id: z.ZodString;
190
190
  name: z.ZodString;
191
191
  type: z.ZodEnum<["agency", "freelancer"]>;
@@ -260,70 +260,14 @@ export declare const createOrganizationSchema: z.ZodObject<Omit<{
260
260
  }>>;
261
261
  createdAt: z.ZodNumber;
262
262
  updatedAt: z.ZodNumber;
263
- }, "id">, "strip", z.ZodTypeAny, {
263
+ }, "type" | "name" | "tierId">, "strip", z.ZodTypeAny, {
264
264
  type: "agency" | "freelancer";
265
265
  name: string;
266
266
  tierId: "free" | "premium";
267
- active: boolean;
268
- subscription: {
269
- status: "active" | "trialing" | "cancelled" | "paused";
270
- creditsRemaining: number;
271
- tierId: string;
272
- startedAt: number;
273
- currentPeriodEnd: number;
274
- stripeSubscriptionId: string;
275
- source: "stripe" | "manual";
276
- } | null;
277
- bidConfig: {
278
- agencyName: string | null;
279
- bidderId: string | null;
280
- contractorName: string | null;
281
- specialisedProfile: string | null;
282
- };
283
- limits: {
284
- monthlyCredits: number;
285
- usedCredits: number;
286
- extraCredits: number;
287
- };
288
- billing: {
289
- stripeCustomerId: string;
290
- savedCard: boolean;
291
- creditsRemaining: number;
292
- } | null;
293
- createdAt: number;
294
- updatedAt: number;
295
267
  }, {
296
268
  type: "agency" | "freelancer";
297
269
  name: string;
298
270
  tierId: "free" | "premium";
299
- active: boolean;
300
- subscription: {
301
- status: "active" | "trialing" | "cancelled" | "paused";
302
- creditsRemaining: number;
303
- tierId: string;
304
- startedAt: number;
305
- currentPeriodEnd: number;
306
- stripeSubscriptionId: string;
307
- source: "stripe" | "manual";
308
- } | null;
309
- bidConfig: {
310
- agencyName: string | null;
311
- bidderId: string | null;
312
- contractorName: string | null;
313
- specialisedProfile: string | null;
314
- };
315
- limits: {
316
- monthlyCredits: number;
317
- usedCredits: number;
318
- extraCredits: number;
319
- };
320
- billing: {
321
- stripeCustomerId: string;
322
- savedCard: boolean;
323
- creditsRemaining: number;
324
- } | null;
325
- createdAt: number;
326
- updatedAt: number;
327
271
  }>;
328
272
  export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
329
273
  export declare const creditDeductionEventTypeEnum: z.ZodEnum<["suitabilityComplete", "proposalComplete"]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",