@periskope/types 0.6.213 → 0.6.215
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/dist/supabase.types.d.ts +9 -0
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/types.d.ts +18 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/supabase.types.ts +9 -1
- package/src/types.ts +21 -6
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name":
|
|
3
|
-
"version":
|
|
4
|
-
"private":
|
|
5
|
-
"main":
|
|
6
|
-
"types":
|
|
7
|
-
"dependencies":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"scripts":
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.215",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@types/pg": "8.11.2",
|
|
9
|
+
"pg": "^8.11.3",
|
|
10
|
+
"stripe": "^14.19.0",
|
|
11
|
+
"ts-node": "^10.9.2",
|
|
12
|
+
"type-fest": "^4.8.3"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "tsc --watch",
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"update-package": "tsc && npm publish --access public"
|
|
18
|
+
}
|
|
19
19
|
}
|
package/src/supabase.types.ts
CHANGED
|
@@ -1235,6 +1235,7 @@ export type Database = {
|
|
|
1235
1235
|
is_required: boolean
|
|
1236
1236
|
org_id: string | null
|
|
1237
1237
|
property_id: string
|
|
1238
|
+
property_metadata: Json | null
|
|
1238
1239
|
property_name: string
|
|
1239
1240
|
property_value: Json | null
|
|
1240
1241
|
property_value_type: string | null
|
|
@@ -1246,6 +1247,7 @@ export type Database = {
|
|
|
1246
1247
|
is_required?: boolean
|
|
1247
1248
|
org_id?: string | null
|
|
1248
1249
|
property_id?: string
|
|
1250
|
+
property_metadata?: Json | null
|
|
1249
1251
|
property_name: string
|
|
1250
1252
|
property_value?: Json | null
|
|
1251
1253
|
property_value_type?: string | null
|
|
@@ -1257,6 +1259,7 @@ export type Database = {
|
|
|
1257
1259
|
is_required?: boolean
|
|
1258
1260
|
org_id?: string | null
|
|
1259
1261
|
property_id?: string
|
|
1262
|
+
property_metadata?: Json | null
|
|
1260
1263
|
property_name?: string
|
|
1261
1264
|
property_value?: Json | null
|
|
1262
1265
|
property_value_type?: string | null
|
|
@@ -2409,6 +2412,12 @@ export type Database = {
|
|
|
2409
2412
|
}
|
|
2410
2413
|
Returns: Json
|
|
2411
2414
|
}
|
|
2415
|
+
get_old_credits: {
|
|
2416
|
+
Args: {
|
|
2417
|
+
org_id_input?: string
|
|
2418
|
+
}
|
|
2419
|
+
Returns: Json
|
|
2420
|
+
}
|
|
2412
2421
|
get_org: {
|
|
2413
2422
|
Args: {
|
|
2414
2423
|
org_id_input?: string
|
|
@@ -3071,4 +3080,3 @@ export type CompositeTypes<
|
|
|
3071
3080
|
: PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"]
|
|
3072
3081
|
? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3073
3082
|
: never
|
|
3074
|
-
|
package/src/types.ts
CHANGED
|
@@ -104,12 +104,17 @@ export type OrgMetadata = {
|
|
|
104
104
|
attribution?: Object;
|
|
105
105
|
affiliate_id?: string;
|
|
106
106
|
custom_properties?: {
|
|
107
|
-
|
|
108
|
-
[id: string]:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
sections: {
|
|
108
|
+
[id: string]: {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
order: number;
|
|
112
|
+
type: 'chat' | 'ticket';
|
|
113
|
+
properties_order: {
|
|
114
|
+
[id: string]: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
113
118
|
};
|
|
114
119
|
rules?: {
|
|
115
120
|
limit?: number;
|
|
@@ -127,6 +132,16 @@ type AccessScopes = {
|
|
|
127
132
|
exports: boolean;
|
|
128
133
|
};
|
|
129
134
|
|
|
135
|
+
export type CustomPropertiesType = OverrideProperties<
|
|
136
|
+
Tables<'tbl_custom_properties'>,
|
|
137
|
+
{
|
|
138
|
+
property_metadata: {
|
|
139
|
+
section_id: string;
|
|
140
|
+
parent_id: string;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
>;
|
|
144
|
+
|
|
130
145
|
export type OrgType = OverrideProperties<
|
|
131
146
|
Merge<
|
|
132
147
|
Tables<'tbl_org'>,
|