@natch-the-storage/heathershaw-platform-types 1.17.0 → 1.17.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.
@@ -1,5 +1,5 @@
1
1
  export declare const cDProductCategoryLabelValues: readonly ["OTC", "Schedule 4", "Schedule 8"];
2
- export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_4", "schedule_8"];
2
+ export declare const cDProductCategoryIdValues: readonly ["schedule_1", "schedule_2", "schedule_4", "schedule_8"];
3
3
  export declare const logItemTypeValues: readonly ["CREATED", "CREATED_PAID", "UPDATED", "UPDATED_DRAFT", "MARKED_FOR_PICKUP", "CANCELLED", "PAYMENT_LINK_PHONE", "PAYMENT_LINK_EMAIL", "PAYMENT_LINK_BOTH", "PARTNER_ORDERED_INVOICE", "PARTNER_ORDERED_POS", "PAID", "MARKED_PAID", "PAYMENT_LINK_PAID"];
4
4
  export declare const orderFulfillmentValues: readonly ["PICKUP", "POST", "COURIER", "DELIVER"];
5
5
  export declare const orderStatusValues: readonly ["TO_REVIEW", "AWAITING_PICKUP", "POSTED", "IN_TRANSIT", "DELIVERED", "COLLECTED", "CANCELLED"];
@@ -317,15 +317,16 @@ export interface PatientRecord {
317
317
  animalSpecies?: string;
318
318
  relationship?: string | null;
319
319
  active: boolean;
320
+ consentToken?: string | null;
320
321
  }
321
- export type PatientRecordCreate = Omit<PatientRecord, 'id' | 'active'> & {
322
+ export type PatientRecordCreate = Omit<PatientRecord, 'id' | 'active' | 'consentToken'> & {
322
323
  active?: boolean;
323
324
  };
324
325
  export type PatientRecordUpdate = Partial<PatientRecord> & {
325
326
  id: number;
326
327
  };
327
- export type PatientRecordConsent = Pick<PatientRecord, 'id' | 'firstName' | 'lastName' | 'relationship'> & {
328
- newId: number;
328
+ export type PatientRecordConsent = Pick<PatientRecord, 'id'> & {
329
+ newPatientId: number;
329
330
  phoneNumber?: string;
330
331
  email?: string;
331
332
  };
@@ -7,6 +7,7 @@ export const cDProductCategoryLabelValues = [
7
7
  // don't touch, this is how they exist in Compound Direct
8
8
  export const cDProductCategoryIdValues = [
9
9
  'schedule_1',
10
+ 'schedule_2',
10
11
  'schedule_4',
11
12
  'schedule_8',
12
13
  ];
@@ -157,7 +158,8 @@ export const PHARMACIES = [
157
158
  //#endregion ──────────────────────────────────────────────────────────────────────
158
159
  //#region compound direct ────────────────────────────────────────────────────────────
159
160
  export const CDProductCategoriesIdLabel = cDProductCategoryIdValues.map((v, i) => {
160
- return { id: v, label: cDProductCategoryLabelValues[i] };
161
+ const index = i >= 1 ? i - 1 : i;
162
+ return { id: v, label: cDProductCategoryLabelValues[index] };
161
163
  });
162
164
  export const CompoundDirectAnimalId = {
163
165
  dog: { id: 1, name: 'Dog' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.17.0",
3
+ "version": "1.17.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",