netlify-api 0.3.0 → 0.3.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,10 +1,10 @@
1
1
 
2
- > netlify-api@0.3.0 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
2
+ > netlify-api@0.3.2 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 5.5s
7
+ created dist/index.cjs, dist/index.mjs in 5.1s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 5.1s
10
+ created dist/index.d.ts in 4.9s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # netlify-api
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3584599: [BREAKING] Updated roles in AddMemberToAccount and UpdateAccountMember endpoints
8
+
9
+ ## 0.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 1eaed14: Update OpenAPI codegen version to 2.28.0
14
+
3
15
  ## 0.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -29,8 +29,36 @@ type ErrorWrapper<TError> = TError | {
29
29
  /**
30
30
  * Generated by @openapi-codegen
31
31
  *
32
- * @version 2.27.0
32
+ * @version 2.28.0
33
33
  */
34
+ type CreateSiteDeployDeploy = {
35
+ files?: Record<string, any>;
36
+ draft?: boolean;
37
+ async?: boolean;
38
+ functions?: Record<string, any>;
39
+ function_schedules?: {
40
+ name?: string;
41
+ cron?: string;
42
+ }[];
43
+ functions_config?: {
44
+ [key: string]: {
45
+ display_name?: string;
46
+ generator?: string;
47
+ build_data?: Record<string, any>;
48
+ routes?: {
49
+ pattern?: string;
50
+ literal?: string;
51
+ expression?: string;
52
+ methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
53
+ prefer_static?: boolean;
54
+ }[];
55
+ priority?: number;
56
+ };
57
+ };
58
+ branch?: string;
59
+ framework?: string;
60
+ framework_version?: string;
61
+ };
34
62
  type UpdateSiteMetadataMetadata = Record<string, any>;
35
63
  type CreateHookBySiteIdHook = {
36
64
  id?: string;
@@ -64,33 +92,6 @@ type CreateSiteSnippetSnippet = {
64
92
  * @format binary
65
93
  */
66
94
  type UploadDeployFileFileBody = Blob;
67
- type CreateSiteDeployDeploy = {
68
- files?: Record<string, any>;
69
- draft?: boolean;
70
- async?: boolean;
71
- functions?: Record<string, any>;
72
- function_schedules?: {
73
- name?: string;
74
- cron?: string;
75
- }[];
76
- functions_config?: {
77
- [key: string]: {
78
- display_name?: string;
79
- generator?: string;
80
- build_data?: Record<string, any>;
81
- routes?: {
82
- pattern?: string;
83
- literal?: string;
84
- expression?: string;
85
- methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
86
- prefer_static?: boolean;
87
- }[];
88
- };
89
- };
90
- branch?: string;
91
- framework?: string;
92
- framework_version?: string;
93
- };
94
95
  type CreateSiteBuildHookBuildhook = {
95
96
  title?: string;
96
97
  branch?: string;
@@ -249,7 +250,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
249
250
  /**
250
251
  * Generated by @openapi-codegen
251
252
  *
252
- * @version 2.27.0
253
+ * @version 2.28.0
253
254
  */
254
255
 
255
256
  type ListSitesQueryParams = {
@@ -4522,7 +4523,7 @@ type AddMemberToAccountResponse = {
4522
4523
  role?: string;
4523
4524
  }[];
4524
4525
  type AddMemberToAccountRequestBody = {
4525
- role?: 'Owner' | 'Collaborator' | 'Controller';
4526
+ role?: 'Owner' | 'Developer' | 'Billing Admin' | 'Reviewer';
4526
4527
  email?: string;
4527
4528
  };
4528
4529
  type AddMemberToAccountVariables = {
@@ -4577,7 +4578,7 @@ type UpdateAccountMemberResponse = {
4577
4578
  role?: string;
4578
4579
  };
4579
4580
  type UpdateAccountMemberRequestBody = {
4580
- role?: 'Owner' | 'Collaborator' | 'Controller';
4581
+ role?: 'Owner' | 'Developer' | 'Billing Admin' | 'Reviewer';
4581
4582
  site_access?: 'all' | 'none' | 'selected';
4582
4583
  site_ids?: string[];
4583
4584
  };
@@ -6997,7 +6998,7 @@ type RefreshTokenResult = {
6997
6998
  /**
6998
6999
  * Generated by @openapi-codegen
6999
7000
  *
7000
- * @version 2.27.0
7001
+ * @version 2.28.0
7001
7002
  */
7002
7003
  type SplitTestSetup = {
7003
7004
  branch_tests?: Record<string, any>;
@@ -7628,6 +7629,7 @@ type DeployFiles = {
7628
7629
  methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
7629
7630
  prefer_static?: boolean;
7630
7631
  }[];
7632
+ priority?: number;
7631
7633
  };
7632
7634
  };
7633
7635
  branch?: string;
@@ -8014,11 +8016,11 @@ type AccountUpdateSetup = {
8014
8016
  billing_details?: string;
8015
8017
  };
8016
8018
  type AccountAddMemberSetup = {
8017
- role?: 'Owner' | 'Collaborator' | 'Controller';
8019
+ role?: 'Owner' | 'Developer' | 'Billing Admin' | 'Reviewer';
8018
8020
  email?: string;
8019
8021
  };
8020
8022
  type AccountUpdateMemberSetup = {
8021
- role?: 'Owner' | 'Collaborator' | 'Controller';
8023
+ role?: 'Owner' | 'Developer' | 'Billing Admin' | 'Reviewer';
8022
8024
  site_access?: 'all' | 'none' | 'selected';
8023
8025
  site_ids?: string[];
8024
8026
  };
@@ -8149,6 +8151,7 @@ type FunctionConfig = {
8149
8151
  methods?: ('GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS')[];
8150
8152
  prefer_static?: boolean;
8151
8153
  }[];
8154
+ priority?: number;
8152
8155
  };
8153
8156
  type FunctionRoute = {
8154
8157
  pattern?: string;
@@ -8238,7 +8241,7 @@ declare namespace schemas {
8238
8241
  /**
8239
8242
  * Generated by @openapi-codegen
8240
8243
  *
8241
- * @version 2.27.0
8244
+ * @version 2.28.0
8242
8245
  */
8243
8246
  /**
8244
8247
  * @format int32
@@ -8260,7 +8263,7 @@ declare namespace parameters {
8260
8263
  /**
8261
8264
  * Generated by @openapi-codegen
8262
8265
  *
8263
- * @version 2.27.0
8266
+ * @version 2.28.0
8264
8267
  */
8265
8268
  type Error = {
8266
8269
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Netlify API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",