@rjromeoent/ein-supabase 0.1.8 → 0.1.10
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/README.md +7 -2
- package/dist/app-context.d.ts +2 -0
- package/dist/app-context.js +2 -0
- package/dist/db-enums.d.ts +4 -0
- package/dist/generated/database.types.d.ts +4543 -234
- package/dist/generated/database.types.js +15 -0
- package/dist/schema-client.d.ts +1 -48
- package/package.json +21 -1
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ Then app repos should depend on the released version:
|
|
|
87
87
|
```json
|
|
88
88
|
{
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@rjromeoent/ein-supabase": "^0.1.
|
|
90
|
+
"@rjromeoent/ein-supabase": "^0.1.10"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
```
|
|
@@ -133,7 +133,10 @@ Examples:
|
|
|
133
133
|
- `RadDbAvailabilityStatus`
|
|
134
134
|
- `RadDbAssignmentState`
|
|
135
135
|
- `RadDbDecisionType`
|
|
136
|
+
- `BookingClientApprovalMethod`
|
|
137
|
+
- `BookingDealType`
|
|
136
138
|
- `BookingOfferStatus`
|
|
139
|
+
- `BookingOfferTransitionTriggerType`
|
|
137
140
|
|
|
138
141
|
Why:
|
|
139
142
|
|
|
@@ -163,7 +166,9 @@ Examples:
|
|
|
163
166
|
|
|
164
167
|
- `EIN_APP_SLUGS`
|
|
165
168
|
- `EIN_APP_HEADER`
|
|
169
|
+
- `EIN_APP_HEADER_NAME`
|
|
166
170
|
- `einAppHeaders("rad")`
|
|
171
|
+
- `einAppHeaders(EIN_APP_SLUGS.einApps)`
|
|
167
172
|
|
|
168
173
|
Why:
|
|
169
174
|
|
|
@@ -358,7 +363,7 @@ questions. Otherwise, keep it local in the app and revisit when reuse appears.
|
|
|
358
363
|
| Item | Location | Reason |
|
|
359
364
|
| --- | --- | --- |
|
|
360
365
|
| `Database` generated Supabase type | Package | Every app should use the same DB schema contract. |
|
|
361
|
-
| `EIN_APP_SLUGS.rad` | Package | RLS/app policies require consistent slugs. |
|
|
366
|
+
| `EIN_APP_SLUGS.rad` / `EIN_APP_SLUGS.einApps` | Package | RLS/app policies require consistent slugs. |
|
|
362
367
|
| `CoreOrgRole` | Package | Org role meaning must be consistent across apps. |
|
|
363
368
|
| `schemaClient(supabase, "rad")` | Package | Shared typed helper for schema-scoped Supabase access. |
|
|
364
369
|
| `rad-get-event-edition-grid` response | RAD app | RAD-only workflow and UI grid payload today. |
|
package/dist/app-context.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const EIN_APP_HEADER = "x-ein-app";
|
|
2
|
+
export declare const EIN_APP_HEADER_NAME = "x-ein-app";
|
|
2
3
|
export declare const EIN_APP_SLUGS: {
|
|
3
4
|
readonly atlas: "atlas";
|
|
4
5
|
readonly bookingEngine: "booking_engine";
|
|
6
|
+
readonly einApps: "ein_apps";
|
|
5
7
|
readonly eventOpsConsole: "ein_ops";
|
|
6
8
|
readonly festivalOs: "festivalos";
|
|
7
9
|
readonly rad: "rad";
|
package/dist/app-context.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export const EIN_APP_HEADER = "x-ein-app";
|
|
2
|
+
export const EIN_APP_HEADER_NAME = EIN_APP_HEADER;
|
|
2
3
|
export const EIN_APP_SLUGS = {
|
|
3
4
|
atlas: "atlas",
|
|
4
5
|
bookingEngine: "booking_engine",
|
|
6
|
+
einApps: "ein_apps",
|
|
5
7
|
eventOpsConsole: "ein_ops",
|
|
6
8
|
festivalOs: "festivalos",
|
|
7
9
|
rad: "rad",
|
package/dist/db-enums.d.ts
CHANGED
|
@@ -6,5 +6,9 @@ export type RadDbAvailabilityStatus = Database["rad"]["Enums"]["availability_sta
|
|
|
6
6
|
export type RadDbDecisionActorType = Database["rad"]["Enums"]["decision_actor_type"];
|
|
7
7
|
export type RadDbDecisionType = Database["rad"]["Enums"]["decision_type"];
|
|
8
8
|
export type RadDbOfferLinkStatus = Database["rad"]["Enums"]["offer_link_status"];
|
|
9
|
+
export type BookingClientApprovalMethod = Database["booking_engine"]["Enums"]["client_approval_method"];
|
|
10
|
+
export type BookingDealType = Database["booking_engine"]["Enums"]["deal_type"];
|
|
9
11
|
export type BookingHoldLevel = Database["booking_engine"]["Enums"]["hold_level"];
|
|
10
12
|
export type BookingOfferStatus = Database["booking_engine"]["Enums"]["offer_status"];
|
|
13
|
+
export type BookingOfferTransitionTriggerType = Database["booking_engine"]["Enums"]["offer_transition_trigger_type"];
|
|
14
|
+
export type BookingPromoterProfitDisposition = Database["booking_engine"]["Enums"]["promoter_profit_disposition"];
|