@uniteverses/shared 1.0.34 → 1.0.36

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.
@@ -5,3 +5,8 @@ export declare const COMMENT_MAX_REPLY_DEPTH = 2;
5
5
  export declare const COMMENT_INDENT_PX = 16;
6
6
  export declare const COMMENT_MAX_INDENT_PX = 48;
7
7
  export declare const CONTACT_PHONE = "+1 (917) 000-0000";
8
+ export declare const APPLICANT_STATUS: {
9
+ readonly PENDING: "pending";
10
+ readonly APPROVED: "approved";
11
+ readonly REJECTED: "rejected";
12
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTACT_PHONE = exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.TOPIC_NESTING_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.POSTS_PAGE_SIZE = void 0;
3
+ exports.APPLICANT_STATUS = exports.CONTACT_PHONE = exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = exports.TOPIC_NESTING_DEPTH = exports.FOOD_GROUP_NESTING_DEPTH = exports.POSTS_PAGE_SIZE = void 0;
4
4
  // Pagination
5
5
  exports.POSTS_PAGE_SIZE = 20;
6
6
  // Food group recursive query depth
@@ -13,3 +13,9 @@ exports.COMMENT_INDENT_PX = 16;
13
13
  exports.COMMENT_MAX_INDENT_PX = 48;
14
14
  // Contact
15
15
  exports.CONTACT_PHONE = "+1 (917) 000-0000";
16
+ // Applicant statuses
17
+ exports.APPLICANT_STATUS = {
18
+ PENDING: "pending",
19
+ APPROVED: "approved",
20
+ REJECTED: "rejected",
21
+ };
@@ -258,11 +258,12 @@ export interface UpdateOrgEventOccurrenceInput {
258
258
  capacity?: number;
259
259
  translations?: OrgEventOccurrenceTranslationInput[];
260
260
  }
261
+ export type ApplicantStatus = "pending" | "approved" | "rejected";
261
262
  export interface OrgEventOccurrenceApplicant {
262
263
  id: string;
263
264
  occurrenceId: string;
264
265
  userId: string;
265
- status: string;
266
+ status: ApplicantStatus;
266
267
  appliedAt: string | Date;
267
268
  user: User & {
268
269
  profile?: Profile | null;
@@ -236,6 +236,22 @@ export interface SatExamTemplateQuestionType {
236
236
  typeId: string;
237
237
  type: SatExamQuestionType;
238
238
  }
239
+ export interface OrgStudentUser {
240
+ id: string;
241
+ firstName: string;
242
+ lastName: string;
243
+ username: string;
244
+ }
245
+ export interface OrgStudent {
246
+ id: string;
247
+ organizationId: string;
248
+ userId: string;
249
+ createdAt: string;
250
+ user: OrgStudentUser;
251
+ }
252
+ export interface CreateOrgStudentInput {
253
+ userId: string;
254
+ }
239
255
  export interface CreateSatExamTemplateInput {
240
256
  organizationId: string;
241
257
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [