pingram 1.0.26-alpha.1401 → 1.0.27-alpha.1403
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/generated/src/apis/EnvironmentsApi.d.ts +1 -25
- package/dist/generated/src/apis/EnvironmentsApi.js +0 -55
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/index.d.ts +0 -1
- package/dist/generated/src/models/index.js +0 -1
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
- package/dist/generated/src/models/EnvironmentCreateRequest.d.ts +0 -32
- package/dist/generated/src/models/EnvironmentCreateRequest.js +0 -50
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Environment,
|
|
14
|
-
export interface CreateEnvironmentRequest {
|
|
15
|
-
environmentCreateRequest: EnvironmentCreateRequest;
|
|
16
|
-
}
|
|
13
|
+
import type { Environment, EnvironmentPatchRequest, GetEnvironmentsResponseInner } from '../models/index';
|
|
17
14
|
export interface UpdateEnvironmentRequest {
|
|
18
15
|
clientId: string;
|
|
19
16
|
environmentPatchRequest: EnvironmentPatchRequest;
|
|
@@ -25,19 +22,6 @@ export interface UpdateEnvironmentRequest {
|
|
|
25
22
|
* @interface EnvironmentsApiInterface
|
|
26
23
|
*/
|
|
27
24
|
export interface EnvironmentsApiInterface {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Create a new environment for the account
|
|
31
|
-
* @param {EnvironmentCreateRequest} environmentCreateRequest
|
|
32
|
-
* @param {*} [options] Override http request option.
|
|
33
|
-
* @throws {RequiredError}
|
|
34
|
-
* @memberof EnvironmentsApiInterface
|
|
35
|
-
*/
|
|
36
|
-
createEnvironmentRaw(requestParameters: CreateEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Environment>>;
|
|
37
|
-
/**
|
|
38
|
-
* Create a new environment for the account
|
|
39
|
-
*/
|
|
40
|
-
createEnvironment(environmentCreateRequest: EnvironmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Environment>;
|
|
41
25
|
/**
|
|
42
26
|
*
|
|
43
27
|
* @summary Get all environments for the authenticated account
|
|
@@ -69,14 +53,6 @@ export interface EnvironmentsApiInterface {
|
|
|
69
53
|
*
|
|
70
54
|
*/
|
|
71
55
|
export declare class EnvironmentsApi extends runtime.BaseAPI implements EnvironmentsApiInterface {
|
|
72
|
-
/**
|
|
73
|
-
* Create a new environment for the account
|
|
74
|
-
*/
|
|
75
|
-
createEnvironmentRaw(requestParameters: CreateEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Environment>>;
|
|
76
|
-
/**
|
|
77
|
-
* Create a new environment for the account
|
|
78
|
-
*/
|
|
79
|
-
createEnvironment(environmentCreateRequest: EnvironmentCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Environment>;
|
|
80
56
|
/**
|
|
81
57
|
* Get all environments for the authenticated account
|
|
82
58
|
*/
|
|
@@ -53,61 +53,6 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class EnvironmentsApi extends runtime.BaseAPI {
|
|
56
|
-
/**
|
|
57
|
-
* Create a new environment for the account
|
|
58
|
-
*/
|
|
59
|
-
async createEnvironmentRaw(requestParameters, initOverrides) {
|
|
60
|
-
if (requestParameters['environmentCreateRequest'] == null) {
|
|
61
|
-
throw new runtime.RequiredError('environmentCreateRequest', 'Required parameter "environmentCreateRequest" was null or undefined when calling createEnvironment().');
|
|
62
|
-
}
|
|
63
|
-
const queryParameters = {};
|
|
64
|
-
const headerParameters = {};
|
|
65
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
-
if (this.configuration &&
|
|
67
|
-
(this.configuration.username !== undefined ||
|
|
68
|
-
this.configuration.password !== undefined)) {
|
|
69
|
-
headerParameters['Authorization'] =
|
|
70
|
-
'Basic ' +
|
|
71
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
72
|
-
}
|
|
73
|
-
if (this.configuration &&
|
|
74
|
-
(this.configuration.username !== undefined ||
|
|
75
|
-
this.configuration.password !== undefined)) {
|
|
76
|
-
headerParameters['Authorization'] =
|
|
77
|
-
'Basic ' +
|
|
78
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
79
|
-
}
|
|
80
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
-
const token = this.configuration.accessToken;
|
|
82
|
-
const tokenString = await token('apiKey', []);
|
|
83
|
-
if (tokenString) {
|
|
84
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (this.configuration &&
|
|
88
|
-
(this.configuration.username !== undefined ||
|
|
89
|
-
this.configuration.password !== undefined)) {
|
|
90
|
-
headerParameters['Authorization'] =
|
|
91
|
-
'Basic ' +
|
|
92
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
93
|
-
}
|
|
94
|
-
let urlPath = `/environments`;
|
|
95
|
-
const response = await this.request({
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'POST',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
body: (0, index_1.EnvironmentCreateRequestToJSON)(requestParameters['environmentCreateRequest'])
|
|
101
|
-
}, initOverrides);
|
|
102
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EnvironmentFromJSON)(jsonValue));
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Create a new environment for the account
|
|
106
|
-
*/
|
|
107
|
-
async createEnvironment(environmentCreateRequest, initOverrides) {
|
|
108
|
-
const response = await this.createEnvironmentRaw({ environmentCreateRequest: environmentCreateRequest }, initOverrides);
|
|
109
|
-
return await response.value();
|
|
110
|
-
}
|
|
111
56
|
/**
|
|
112
57
|
* Get all environments for the authenticated account
|
|
113
58
|
*/
|
|
@@ -18,7 +18,7 @@ export type { GenerateEditorTokenRequest, EditorApiInterface } from './EditorApi
|
|
|
18
18
|
export { EditorApi } from './EditorApi';
|
|
19
19
|
export type { DeleteSuppressionsRequest, SendRequest as EmailApiSendRequest, EmailApiInterface } from './EmailApi';
|
|
20
20
|
export { EmailApi } from './EmailApi';
|
|
21
|
-
export type {
|
|
21
|
+
export type { UpdateEnvironmentRequest, EnvironmentsApiInterface } from './EnvironmentsApi';
|
|
22
22
|
export { EnvironmentsApi } from './EnvironmentsApi';
|
|
23
23
|
export type { HealthApiInterface } from './HealthApi';
|
|
24
24
|
export { HealthApi } from './HealthApi';
|
|
@@ -53,7 +53,6 @@ export * from './EmailComponentPostRequest';
|
|
|
53
53
|
export * from './EmailComponentResponse';
|
|
54
54
|
export * from './EmailComponentResponseReferencedByInner';
|
|
55
55
|
export * from './Environment';
|
|
56
|
-
export * from './EnvironmentCreateRequest';
|
|
57
56
|
export * from './EnvironmentPatchRequest';
|
|
58
57
|
export * from './EventsWebhookResponse';
|
|
59
58
|
export * from './EventsWebhookUpsertRequest';
|
|
@@ -71,7 +71,6 @@ __exportStar(require("./EmailComponentPostRequest"), exports);
|
|
|
71
71
|
__exportStar(require("./EmailComponentResponse"), exports);
|
|
72
72
|
__exportStar(require("./EmailComponentResponseReferencedByInner"), exports);
|
|
73
73
|
__exportStar(require("./Environment"), exports);
|
|
74
|
-
__exportStar(require("./EnvironmentCreateRequest"), exports);
|
|
75
74
|
__exportStar(require("./EnvironmentPatchRequest"), exports);
|
|
76
75
|
__exportStar(require("./EventsWebhookResponse"), exports);
|
|
77
76
|
__exportStar(require("./EventsWebhookUpsertRequest"), exports);
|
package/dist/src/client.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.Pingram = void 0;
|
|
9
9
|
const src_1 = require("../generated/src");
|
|
10
10
|
// SDK version for User-Agent header (injected at codegen time)
|
|
11
|
-
const SDK_VERSION = '1.0.
|
|
11
|
+
const SDK_VERSION = '1.0.27';
|
|
12
12
|
const USER_AGENT = `pingram-node/${SDK_VERSION}`;
|
|
13
13
|
const src_2 = require("../generated/src");
|
|
14
14
|
const src_3 = require("../generated/src");
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pingram
|
|
3
|
-
* Internal API for notification delivery and management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface EnvironmentCreateRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface EnvironmentCreateRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof EnvironmentCreateRequest
|
|
22
|
-
*/
|
|
23
|
-
title: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the EnvironmentCreateRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfEnvironmentCreateRequest(value: object): value is EnvironmentCreateRequest;
|
|
29
|
-
export declare function EnvironmentCreateRequestFromJSON(json: any): EnvironmentCreateRequest;
|
|
30
|
-
export declare function EnvironmentCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnvironmentCreateRequest;
|
|
31
|
-
export declare function EnvironmentCreateRequestToJSON(json: any): EnvironmentCreateRequest;
|
|
32
|
-
export declare function EnvironmentCreateRequestToJSONTyped(value?: EnvironmentCreateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Pingram
|
|
6
|
-
* Internal API for notification delivery and management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfEnvironmentCreateRequest = instanceOfEnvironmentCreateRequest;
|
|
17
|
-
exports.EnvironmentCreateRequestFromJSON = EnvironmentCreateRequestFromJSON;
|
|
18
|
-
exports.EnvironmentCreateRequestFromJSONTyped = EnvironmentCreateRequestFromJSONTyped;
|
|
19
|
-
exports.EnvironmentCreateRequestToJSON = EnvironmentCreateRequestToJSON;
|
|
20
|
-
exports.EnvironmentCreateRequestToJSONTyped = EnvironmentCreateRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the EnvironmentCreateRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfEnvironmentCreateRequest(value) {
|
|
25
|
-
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function EnvironmentCreateRequestFromJSON(json) {
|
|
30
|
-
return EnvironmentCreateRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function EnvironmentCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
title: json['title']
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function EnvironmentCreateRequestToJSON(json) {
|
|
41
|
-
return EnvironmentCreateRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function EnvironmentCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
title: value['title']
|
|
49
|
-
};
|
|
50
|
-
}
|