api-arreya-types 1.0.5 → 1.0.7

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/account.type.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const zStatus: z.ZodEnum<[string, ...string[]]>;
3
2
  export declare const Account: z.ZodObject<{
4
3
  id: z.ZodString;
5
4
  name: z.ZodString;
package/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { Account, CreateAccount, UpdateAccount, CreateAccountRequestBody, UpdateAccountDBRequestBody, UpdateAccountSubscriptionRequestBody } from './account.type';
2
- export { Device, CreateDevice, UpdateDevice, CreateDeviceRequestBody, UpdateDeviceRequestBody, PairDeviceRequestBody } from './device.type';
3
- export { File, CreateFile, UpdateFile, UpdateFiles, CreateFilesRequestBody, UploadFileRequestBody, UpdateFileRequestBody, UpdateFilesRequestBody } from './file.type';
4
- export { Folder, CreateFolder, UpdateFolder, CreateFolderRequestBody, UpdateFolderRequestBody } from './folder.type';
5
- export { Page, CreatePage, UpdatePage, CreatePageRequestBody, UpdatePageRequestBody } from './page.type';
6
- export { Presentation, CreatePresentation, UpdatePresentation, CreatePresentationRequestBody, UpdatePresentationRequestBody } from './presentation.type';
7
- export { Project, CreateProject, UpdateProject, CreateProjectRequestBody, UpdateProjectRequestBody } from './project.type';
8
- export { Schedule, CreateSchedule, UpdateSchedule, CreateScheduleRequestBody, UpdateScheduleRequestBody } from './schedule.type';
9
- export { User, UserCreate, UserUpdate, UserAccount, CreateUserAccount, UpdateUserAccount, UserProject, CreateUserProject, CreateUserRequestBody, UpdateUserRequestBody, InviteUserRequestBody, UpdateUserAccessRequestBody, } from './user.type';
1
+ export * from './account.type';
2
+ export * from './device.type';
3
+ export * from './file.type';
4
+ export * from './folder.type';
5
+ export * from './page.type';
6
+ export * from './presentation.type';
7
+ export * from './project.type';
8
+ export * from './schedule.type';
9
+ export * from './user.type';
package/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account.type"), exports);
18
+ __exportStar(require("./device.type"), exports);
19
+ __exportStar(require("./file.type"), exports);
20
+ __exportStar(require("./folder.type"), exports);
21
+ __exportStar(require("./page.type"), exports);
22
+ __exportStar(require("./presentation.type"), exports);
23
+ __exportStar(require("./project.type"), exports);
24
+ __exportStar(require("./schedule.type"), exports);
25
+ __exportStar(require("./user.type"), exports);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "api-arreya-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "types": "index.d.ts",
5
- "main": "",
5
+ "main": "index.js",
6
6
  "private": false,
7
7
  "files": ["*.d.ts"],
8
8
  "description": "JS Types from api-arreya",
package/project.type.d.ts CHANGED
@@ -1,10 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare enum ProjectStatus {
3
- ACTIVE = "ACTIVE",
4
- INACTIVE = "INACTIVE",
5
- SUSPENDED = "SUSPENDED"
6
- }
7
- export declare const zStatus: z.ZodEnum<[string, ...string[]]>;
8
2
  export declare const Project: z.ZodObject<{
9
3
  id: z.ZodString;
10
4
  name: z.ZodString;
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare enum Status {
3
+ ACTIVE = "ACTIVE",
4
+ INACTIVE = "INACTIVE",
5
+ SUSPENDED = "SUSPENDED"
6
+ }
7
+ export declare const zStatus: z.ZodEnum<[string, ...string[]]>;
package/user.type.d.ts CHANGED
@@ -1,10 +1,19 @@
1
1
  import { z } from 'zod';
2
2
  import { Account } from './account.type';
3
- export type UserRole = {
3
+ export declare const UserRole: z.ZodObject<{
4
+ id: z.ZodString;
5
+ hierarchy: z.ZodNumber;
6
+ name: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
4
8
  id: string;
9
+ name: string;
5
10
  hierarchy: number;
11
+ }, {
12
+ id: string;
6
13
  name: string;
7
- };
14
+ hierarchy: number;
15
+ }>;
16
+ export type UserRole = z.infer<typeof UserRole>;
8
17
  export declare const AdminRole: UserRole;
9
18
  export declare const ManagerRole: UserRole;
10
19
  export declare const EditorRole: UserRole;