@azure/eventgrid 4.7.1-alpha.20220307.1 → 4.8.1-alpha.20220309.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.
- package/CHANGELOG.md +7 -1
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +1 -1
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +4 -2
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +9 -0
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/package.json +2 -2
- package/types/eventgrid.d.ts +2 -2
@@ -66,7 +66,7 @@ const publishCloudEventEventsOperationSpec = {
|
|
66
66
|
requestBody: Parameters.events1,
|
67
67
|
queryParameters: [Parameters.apiVersion],
|
68
68
|
urlParameters: [Parameters.topicHostname],
|
69
|
-
headerParameters: [Parameters.contentType1],
|
69
|
+
headerParameters: [Parameters.contentType1, Parameters.aegChannelName],
|
70
70
|
mediaType: "json",
|
71
71
|
serializer
|
72
72
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAUlE,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;OAGG;IACH,YAAY,OAAuC;QACjD,KAAK,CAAC,OAAO,CAAC,CA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EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;IACzC,gBAAgB,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAUlE,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;OAGG;IACH,YAAY,OAAuC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,aAAqB,EACrB,MAAwB,EACxB,OAAoD;QAEpD,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,EAClC,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,uBAAuB,CACrB,aAAqB,EACrB,MAAoB,EACpB,OAA8D;QAE9D,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,EAClC,oCAAoC,CACrC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,wBAAwB,CACtB,aAAqB,EACrB,MAAa,EACb,OAA+D;QAE/D,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,EAClC,qCAAqC,CACtC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC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ft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport { GeneratedClientContext } from \"./generatedClientContext\";\nimport {\n GeneratedClientOptionalParams,\n EventGridEvent,\n GeneratedClientPublishEventsOptionalParams,\n CloudEvent,\n GeneratedClientPublishCloudEventEventsOptionalParams,\n GeneratedClientPublishCustomEventEventsOptionalParams\n} from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends GeneratedClientContext {\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param options The parameter options\n */\n constructor(options?: GeneratedClientOptionalParams) {\n super(options);\n }\n\n /**\n * Publishes a batch of events to an Azure Event Grid topic.\n * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net\n * @param events An array of events to be published to Event Grid.\n * @param options The options parameters.\n */\n publishEvents(\n topicHostname: string,\n events: EventGridEvent[],\n options?: GeneratedClientPublishEventsOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { topicHostname, events, options },\n publishEventsOperationSpec\n );\n }\n\n /**\n * Publishes a batch of events to an Azure Event Grid topic.\n * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net\n * @param events An array of events to be published to Event Grid.\n * @param options The options parameters.\n */\n publishCloudEventEvents(\n topicHostname: string,\n events: CloudEvent[],\n options?: GeneratedClientPublishCloudEventEventsOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { topicHostname, events, options },\n publishCloudEventEventsOperationSpec\n );\n }\n\n /**\n * Publishes a batch of events to an Azure Event Grid topic.\n * @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net\n * @param events An array of events to be published to Event Grid.\n * @param options The options parameters.\n */\n publishCustomEventEvents(\n topicHostname: string,\n events: any[],\n options?: GeneratedClientPublishCustomEventEventsOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { topicHostname, events, options },\n publishCustomEventEventsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst publishEventsOperationSpec: coreClient.OperationSpec = {\n path: \"\",\n httpMethod: \"POST\",\n responses: { 200: {}, default: {} },\n requestBody: Parameters.events,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.topicHostname],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst publishCloudEventEventsOperationSpec: coreClient.OperationSpec = {\n path: \"\",\n httpMethod: \"POST\",\n responses: { 200: {}, default: {} },\n requestBody: Parameters.events1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.topicHostname],\n headerParameters: [Parameters.contentType1, Parameters.aegChannelName],\n mediaType: \"json\",\n serializer\n};\nconst publishCustomEventEventsOperationSpec: coreClient.OperationSpec = {\n path: \"\",\n httpMethod: \"POST\",\n responses: { 200: {}, default: {} },\n requestBody: Parameters.events2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.topicHostname],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
@@ -20,7 +20,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient {
|
|
20
20
|
const defaults = {
|
21
21
|
requestContentType: "application/json; charset=utf-8"
|
22
22
|
};
|
23
|
-
const packageDetails = `azsdk-js-eventgrid/4.
|
23
|
+
const packageDetails = `azsdk-js-eventgrid/4.8.1`;
|
24
24
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
25
25
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
26
26
|
: `${packageDetails}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;OAGG;IACH,YAAY,OAAuC;QACjD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,0BAA0B,CAAC;QAClD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,iBAAiB,GAC/C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClientContext extends coreClient.ServiceClient {\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClientContext class.\n * @param options The parameter options\n */\n constructor(options?: GeneratedClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-eventgrid/4.
|
1
|
+
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;OAGG;IACH,YAAY,OAAuC;QACjD,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,0BAA0B,CAAC;QAClD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,iBAAiB,GAC/C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClientContext extends coreClient.ServiceClient {\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClientContext class.\n * @param options The parameter options\n */\n constructor(options?: GeneratedClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-eventgrid/4.8.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{topicHostname}\"\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2018-01-01\";\n }\n}\n"]}
|