@luxuryescapes/contract-svc-lab-v2 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/server.d.ts +69 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -7,6 +7,10 @@ export interface paths {
7
7
  /** Create an empty audience */
8
8
  post: operations["createAudience"];
9
9
  };
10
+ "/api/lab/v2/admin/audiences/{id}/members": {
11
+ /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
12
+ post: operations["upsertAudienceMembers"];
13
+ };
10
14
  }
11
15
  export interface components {
12
16
  schemas: {};
@@ -64,6 +68,71 @@ export interface operations {
64
68
  };
65
69
  };
66
70
  };
71
+ /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
72
+ upsertAudienceMembers: {
73
+ parameters: {
74
+ path: {
75
+ id: number;
76
+ };
77
+ header: {
78
+ /** Cookie */
79
+ Cookie: string;
80
+ };
81
+ };
82
+ responses: {
83
+ /** 200 response */
84
+ 200: {
85
+ content: {
86
+ "application/json": {
87
+ status: 200;
88
+ message: string;
89
+ result: {
90
+ audience_id: number;
91
+ complete: boolean;
92
+ upserted: number;
93
+ unconfirmed: {
94
+ user_id: string;
95
+ }[];
96
+ };
97
+ };
98
+ };
99
+ };
100
+ /** 400 response */
101
+ 400: {
102
+ content: {
103
+ "application/json": {
104
+ status: 400;
105
+ message: string;
106
+ errors?: {
107
+ message: string;
108
+ path?: string;
109
+ }[];
110
+ };
111
+ };
112
+ };
113
+ /** 404 response */
114
+ 404: {
115
+ content: {
116
+ "application/json": {
117
+ status: 404;
118
+ message: string;
119
+ };
120
+ };
121
+ };
122
+ };
123
+ /** payload */
124
+ requestBody: {
125
+ content: {
126
+ "application/json": {
127
+ members: {
128
+ user_id: string;
129
+ /** Format: date-time */
130
+ expires_at?: string | null;
131
+ }[];
132
+ };
133
+ };
134
+ };
135
+ };
67
136
  }
68
137
  export interface external {
69
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [