@azure/eventgrid 4.7.1-alpha.20220208.3 → 4.8.0-alpha.20220308.5

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.
@@ -81,6 +81,15 @@ export const events1 = {
81
81
  }
82
82
  }
83
83
  };
84
+ export const aegChannelName = {
85
+ parameterPath: ["options", "aegChannelName"],
86
+ mapper: {
87
+ serializedName: "aeg-channel-name",
88
+ type: {
89
+ name: "String"
90
+ }
91
+ }
92
+ };
84
93
  export const events2 = {
85
94
  parameterPath: "events",
86
95
  mapper: {
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,gBAAgB;iBAC5B;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,mDAAmD;QACjE,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,YAAY;iBACxB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE;oBACJ,IAAI,EAAE,KAAK;iBACZ;aACF;SACF;KACF;CACF,CAAC","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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const events: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EventGridEvent\"\n }\n }\n }\n }\n};\n\nexport const topicHostname: OperationURLParameter = {\n parameterPath: \"topicHostname\",\n mapper: {\n serializedName: \"topicHostname\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-01-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/cloudevents-batch+json; charset=utf-8\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const events1: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudEvent\"\n }\n }\n }\n }\n};\n\nexport const events2: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"any\"\n }\n }\n }\n }\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,E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J,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,YAAY;iBACxB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAuB;IAChD,aAAa,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC5C,MAAM,EAAE;QACN,cAAc,EAAE,kBAAkB;QAClC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE;oBACJ,IAAI,EAAE,KAAK;iBACZ;aACF;SACF;KACF;CACF,CAAC","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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const events: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EventGridEvent\"\n }\n }\n }\n }\n};\n\nexport const topicHostname: OperationURLParameter = {\n parameterPath: \"topicHostname\",\n mapper: {\n serializedName: \"topicHostname\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-01-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/cloudevents-batch+json; charset=utf-8\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const events1: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudEvent\"\n }\n }\n }\n }\n};\n\nexport const aegChannelName: OperationParameter = {\n parameterPath: [\"options\", \"aegChannelName\"],\n mapper: {\n serializedName: \"aeg-channel-name\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const events2: OperationParameter = {\n parameterPath: \"events\",\n mapper: {\n serializedName: \"events\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"any\"\n }\n }\n }\n }\n};\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic client library for the Azure Event Grid service.",
6
- "version": "4.7.1-alpha.20220208.3",
6
+ "version": "4.8.0-alpha.20220308.5",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -71,8 +71,8 @@
71
71
  "extract-api": "tsc -p . && api-extractor run --local",
72
72
  "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
73
73
  "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js",
74
- "integration-test:browser": "karma start --single-run",
75
- "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/**/*.spec.js\"",
74
+ "integration-test:browser": "dev-tool run test:browser",
75
+ "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
76
76
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
77
77
  "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
78
78
  "lint": "eslint package.json api-extractor.json src test --ext .ts",
@@ -80,15 +80,15 @@
80
80
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
81
81
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
82
82
  "test": "npm run clean && npm run build:test && npm run unit-test",
83
- "unit-test:browser": "karma start --single-run",
84
- "unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
83
+ "unit-test:browser": "dev-tool run test:browser",
84
+ "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'",
85
85
  "unit-test": "npm run unit-test:node && npm run unit-test:browser"
86
86
  },
87
87
  "sideEffects": false,
88
88
  "autoPublish": false,
89
89
  "dependencies": {
90
90
  "@azure/core-auth": "^1.3.0",
91
- "@azure/core-client": "^1.0.0",
91
+ "@azure/core-client": "^1.5.0",
92
92
  "@azure/core-rest-pipeline": "^1.1.0",
93
93
  "@azure/core-tracing": "1.0.0-preview.13",
94
94
  "@azure/logger": "^1.0.0",
@@ -100,7 +100,7 @@
100
100
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
101
101
  "@azure/service-bus": "^7.0.0",
102
102
  "@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
103
- "@azure-tools/test-recorder": "^1.0.0",
103
+ "@azure-tools/test-recorder": ">=2.0.0-alpha <2.0.0-alphb",
104
104
  "@microsoft/api-extractor": "^7.18.11",
105
105
  "@types/chai": "^4.1.6",
106
106
  "@types/chai-as-promised": "^7.1.0",
@@ -120,8 +120,6 @@
120
120
  "karma-env-preprocessor": "^0.1.1",
121
121
  "karma-firefox-launcher": "^1.1.0",
122
122
  "karma-ie-launcher": "^1.0.0",
123
- "karma-json-preprocessor": "^0.3.3",
124
- "karma-json-to-file-reporter": "^1.0.1",
125
123
  "karma-junit-reporter": "^2.0.1",
126
124
  "karma-mocha": "^2.0.1",
127
125
  "karma-mocha-reporter": "^2.2.5",
@@ -1372,10 +1372,10 @@ export declare interface MediaJobError {
1372
1372
  }
1373
1373
 
1374
1374
  /** Defines values for MediaJobErrorCategory. */
1375
- export declare type MediaJobErrorCategory = "Service" | "Download" | "Upload" | "Configuration" | "Content";
1375
+ export declare type MediaJobErrorCategory = "Service" | "Download" | "Upload" | "Configuration" | "Content" | "Account";
1376
1376
 
1377
1377
  /** Defines values for MediaJobErrorCode. */
1378
- export declare type MediaJobErrorCode = "ServiceError" | "ServiceTransientError" | "DownloadNotAccessible" | "DownloadTransientError" | "UploadNotAccessible" | "UploadTransientError" | "ConfigurationUnsupported" | "ContentMalformed" | "ContentUnsupported";
1378
+ export declare type MediaJobErrorCode = "ServiceError" | "ServiceTransientError" | "DownloadNotAccessible" | "DownloadTransientError" | "UploadNotAccessible" | "UploadTransientError" | "ConfigurationUnsupported" | "ContentMalformed" | "ContentUnsupported" | "IdentityUnsupported";
1379
1379
 
1380
1380
  /** Details of JobOutput errors. */
1381
1381
  export declare interface MediaJobErrorDetail {