@azure-tools/communication-short-codes 1.0.0-beta.1 → 1.0.0-beta.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +80 -155
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/src/index.js +1 -0
- package/dist-esm/src/generated/src/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +8 -65
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +1 -0
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/index.js +1 -1
- package/dist-esm/src/generated/src/operations/index.js.map +1 -1
- package/dist-esm/src/generated/src/operations/{shortCodes.js → shortCodesOperations.js} +19 -46
- package/dist-esm/src/generated/src/operations/shortCodesOperations.js.map +1 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js +9 -0
- package/dist-esm/src/generated/src/operationsInterfaces/shortCodesOperations.js.map +1 -0
- package/dist-esm/src/generated/src/shortCodesClient.js +2 -2
- package/dist-esm/src/generated/src/shortCodesClient.js.map +1 -1
- package/dist-esm/src/generated/src/shortCodesClientContext.js +13 -11
- package/dist-esm/src/generated/src/shortCodesClientContext.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/shortCodesClient.js +19 -29
- package/dist-esm/src/shortCodesClient.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +1 -1
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/package.json +32 -28
- package/types/communication-short-codes.d.ts +10 -10
- package/dist-esm/src/generated/src/operations/shortCodes.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,UAAU,GAA6B;IAClD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA6B;IACjD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;iBACxC;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,eAAe,EAAE;gBACf,cAAc,EAAE,iBAAiB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,YAAY,EAAE;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EAAE,CAAC;iBACpB;gBACD,cAAc,EAAE,2BAA2B;gBAC3C,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAA6B;IACvD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,iBAAiB;QAC5B,eAAe,EAAE;YACf,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,gBAAgB;yBAC5B;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;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 * as coreHttp from \"@azure/core-http\";\n\nexport const ShortCodes: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCodes\",\n modelProperties: {\n shortCodes: {\n serializedName: \"shortCodes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ShortCode\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ShortCode: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCode\",\n modelProperties: {\n number: {\n serializedName: \"number\",\n type: {\n name: \"String\"\n }\n },\n numberType: {\n serializedName: \"numberType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"shortCode\", \"alphaId\"]\n }\n },\n countryCode: {\n serializedName: \"countryCode\",\n type: {\n name: \"String\"\n }\n },\n programBriefIds: {\n serializedName: \"programBriefIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n purchaseDate: {\n serializedName: \"purchaseDate\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const USProgramBrief: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"USProgramBrief\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"submitted\",\n \"approved\",\n \"submitNewVanityNumbers\",\n \"updateProgramBrief\",\n \"draft\",\n \"denied\"\n ]\n }\n },\n number: {\n serializedName: \"number\",\n type: {\n name: \"String\"\n }\n },\n reviewNotes: {\n serializedName: \"reviewNotes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ReviewNote\"\n }\n }\n }\n },\n costs: {\n serializedName: \"costs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ShortCodeCost\"\n }\n }\n }\n },\n submissionDate: {\n serializedName: \"submissionDate\",\n type: {\n name: \"DateTime\"\n }\n },\n statusUpdatedDate: {\n serializedName: \"statusUpdatedDate\",\n type: {\n name: \"DateTime\"\n }\n },\n programDetails: {\n serializedName: \"programDetails\",\n type: {\n name: \"Composite\",\n className: \"ProgramDetails\"\n }\n },\n companyInformation: {\n serializedName: \"companyInformation\",\n type: {\n name: \"Composite\",\n className: \"CompanyInformation\"\n }\n },\n messageDetails: {\n serializedName: \"messageDetails\",\n type: {\n name: \"Composite\",\n className: \"MessageDetails\"\n }\n },\n trafficDetails: {\n serializedName: \"trafficDetails\",\n type: {\n name: \"Composite\",\n className: \"TrafficDetails\"\n }\n }\n }\n }\n};\n\nexport const ReviewNote: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ReviewNote\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const ShortCodeCost: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCodeCost\",\n modelProperties: {\n amount: {\n serializedName: \"amount\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n currencyCode: {\n serializedName: \"currencyCode\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n billingFrequency: {\n serializedName: \"billingFrequency\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"monthly\", \"once\"]\n }\n }\n }\n }\n};\n\nexport const ProgramDetails: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProgramDetails\",\n modelProperties: {\n isVanity: {\n serializedName: \"isVanity\",\n type: {\n name: \"Boolean\"\n }\n },\n preferredVanityNumbers: {\n serializedName: \"preferredVanityNumbers\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n numberType: {\n serializedName: \"numberType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"shortCode\", \"alphaId\"]\n }\n },\n isPoliticalCampaign: {\n serializedName: \"isPoliticalCampaign\",\n type: {\n name: \"Boolean\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n url: {\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n signUpTypes: {\n serializedName: \"signUpTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"website\",\n \"pointOfSale\",\n \"sms\",\n \"interactiveVoiceResponse\"\n ]\n }\n }\n }\n },\n signUpUrl: {\n serializedName: \"signUpUrl\",\n type: {\n name: \"String\"\n }\n },\n termsOfServiceUrl: {\n serializedName: \"termsOfServiceUrl\",\n type: {\n name: \"String\"\n }\n },\n privacyPolicyUrl: {\n serializedName: \"privacyPolicyUrl\",\n type: {\n name: \"String\"\n }\n },\n expectedDateOfService: {\n serializedName: \"expectedDateOfService\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CompanyInformation: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CompanyInformation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n url: {\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n address: {\n serializedName: \"address\",\n type: {\n name: \"String\"\n }\n },\n contactInformation: {\n serializedName: \"contactInformation\",\n type: {\n name: \"Composite\",\n className: \"ContactInformation\"\n }\n },\n customerCareInformation: {\n serializedName: \"customerCareInformation\",\n type: {\n name: \"Composite\",\n className: \"CustomerCareInformation\"\n }\n }\n }\n }\n};\n\nexport const ContactInformation: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ContactInformation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n phone: {\n serializedName: \"phone\",\n type: {\n name: \"String\"\n }\n },\n email: {\n serializedName: \"email\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CustomerCareInformation: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CustomerCareInformation\",\n modelProperties: {\n tollFreeNumber: {\n serializedName: \"tollFreeNumber\",\n type: {\n name: \"String\"\n }\n },\n email: {\n serializedName: \"email\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MessageDetails: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageDetails\",\n modelProperties: {\n supportedProtocols: {\n serializedName: \"supportedProtocols\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\"sms\", \"mms\"]\n }\n }\n }\n },\n recurrence: {\n serializedName: \"recurrence\",\n type: {\n name: \"Enum\",\n allowedValues: [\"subscription\", \"transaction\"]\n }\n },\n helpMessage: {\n serializedName: \"helpMessage\",\n type: {\n name: \"String\"\n }\n },\n optOutMessage: {\n serializedName: \"optOutMessage\",\n type: {\n name: \"String\"\n }\n },\n optInMessage: {\n serializedName: \"optInMessage\",\n type: {\n name: \"String\"\n }\n },\n optInReply: {\n serializedName: \"optInReply\",\n type: {\n name: \"String\"\n }\n },\n confirmationMessage: {\n serializedName: \"confirmationMessage\",\n type: {\n name: \"String\"\n }\n },\n directionality: {\n serializedName: \"directionality\",\n type: {\n name: \"Enum\",\n allowedValues: [\"oneWay\", \"twoWay\"]\n }\n },\n useCases: {\n serializedName: \"useCases\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"UseCase\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const UseCase: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UseCase\",\n modelProperties: {\n contentCategory: {\n serializedName: \"contentCategory\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"ringTones\",\n \"smsChat\",\n \"video\",\n \"loyaltyProgramPointsPrizes\",\n \"gifting\",\n \"inApplicationBilling\",\n \"textToScreen\",\n \"games\",\n \"audioChat\",\n \"mmsPictures\",\n \"sweepstakesContestAuction\",\n \"financialBanking\",\n \"premiumWap\",\n \"queryService\",\n \"wallpaperScreensaver\",\n \"voting\",\n \"application\",\n \"mobileGivingDonations\",\n \"coupons\",\n \"loyaltyProgram\",\n \"noPointsPrizes\",\n \"informationalAlerts\",\n \"microBilling\",\n \"trivia\",\n \"entertainmentAlerts\",\n \"accountNotification\",\n \"ageGatedContent\",\n \"conversationalMessaging\",\n \"deliveryNotification\",\n \"education\",\n \"emergencyAlerts\",\n \"fraudAlerts\",\n \"loanArrangement\",\n \"onBehalfOfCarrier\",\n \"political\",\n \"promotionalMarketing\",\n \"publicServiceAnnouncements\",\n \"securityAlerts\",\n \"socialMedia\",\n \"twoFactorAuthentication\",\n \"other\"\n ]\n }\n },\n examples: {\n serializedName: \"examples\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MessageExampleSequence\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MessageExampleSequence: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageExampleSequence\",\n modelProperties: {\n messages: {\n serializedName: \"messages\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MessageExample\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MessageExample: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageExample\",\n modelProperties: {\n direction: {\n serializedName: \"direction\",\n type: {\n name: \"Enum\",\n allowedValues: [\"toUser\", \"fromUser\"]\n }\n },\n text: {\n serializedName: \"text\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TrafficDetails: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrafficDetails\",\n modelProperties: {\n totalMonthlyVolume: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"totalMonthlyVolume\",\n type: {\n name: \"Number\"\n }\n },\n monthlyAverageMessagesFromUser: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"monthlyAverageMessagesFromUser\",\n type: {\n name: \"Number\"\n }\n },\n monthlyAverageMessagesToUser: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"monthlyAverageMessagesToUser\",\n type: {\n name: \"Number\"\n }\n },\n isSpiky: {\n serializedName: \"isSpiky\",\n type: {\n name: \"Boolean\"\n }\n },\n spikeDetails: {\n serializedName: \"spikeDetails\",\n type: {\n name: \"String\"\n }\n },\n estimatedRampUpTimeInDays: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"estimatedRampUpTimeInDays\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const USProgramBriefs: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"USProgramBriefs\",\n modelProperties: {\n programBriefs: {\n serializedName: \"programBriefs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"USProgramBrief\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,UAAU,GAA+B;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;y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,SAAS,EAAE,iBAAiB;QAC5B,eAAe,EAAE;YACf,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,gBAAgB;yBAC5B;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;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 * as coreClient from \"@azure/core-client\";\n\nexport const ShortCodes: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCodes\",\n modelProperties: {\n shortCodes: {\n serializedName: \"shortCodes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ShortCode\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ShortCode: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCode\",\n modelProperties: {\n number: {\n serializedName: \"number\",\n type: {\n name: \"String\"\n }\n },\n numberType: {\n serializedName: \"numberType\",\n type: {\n name: \"String\"\n }\n },\n countryCode: {\n serializedName: \"countryCode\",\n type: {\n name: \"String\"\n }\n },\n programBriefIds: {\n serializedName: \"programBriefIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n purchaseDate: {\n serializedName: \"purchaseDate\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const USProgramBrief: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"USProgramBrief\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n },\n status: {\n serializedName: \"status\",\n type: {\n name: \"String\"\n }\n },\n number: {\n serializedName: \"number\",\n type: {\n name: \"String\"\n }\n },\n reviewNotes: {\n serializedName: \"reviewNotes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ReviewNote\"\n }\n }\n }\n },\n costs: {\n serializedName: \"costs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ShortCodeCost\"\n }\n }\n }\n },\n submissionDate: {\n serializedName: \"submissionDate\",\n type: {\n name: \"DateTime\"\n }\n },\n statusUpdatedDate: {\n serializedName: \"statusUpdatedDate\",\n type: {\n name: \"DateTime\"\n }\n },\n programDetails: {\n serializedName: \"programDetails\",\n type: {\n name: \"Composite\",\n className: \"ProgramDetails\"\n }\n },\n companyInformation: {\n serializedName: \"companyInformation\",\n type: {\n name: \"Composite\",\n className: \"CompanyInformation\"\n }\n },\n messageDetails: {\n serializedName: \"messageDetails\",\n type: {\n name: \"Composite\",\n className: \"MessageDetails\"\n }\n },\n trafficDetails: {\n serializedName: \"trafficDetails\",\n type: {\n name: \"Composite\",\n className: \"TrafficDetails\"\n }\n }\n }\n }\n};\n\nexport const ReviewNote: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ReviewNote\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n date: {\n serializedName: \"date\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const ShortCodeCost: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortCodeCost\",\n modelProperties: {\n amount: {\n serializedName: \"amount\",\n required: true,\n type: {\n name: \"Number\"\n }\n },\n currencyCode: {\n serializedName: \"currencyCode\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n billingFrequency: {\n serializedName: \"billingFrequency\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProgramDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProgramDetails\",\n modelProperties: {\n isVanity: {\n serializedName: \"isVanity\",\n type: {\n name: \"Boolean\"\n }\n },\n preferredVanityNumbers: {\n serializedName: \"preferredVanityNumbers\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n numberType: {\n serializedName: \"numberType\",\n type: {\n name: \"String\"\n }\n },\n isPoliticalCampaign: {\n serializedName: \"isPoliticalCampaign\",\n type: {\n name: \"Boolean\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n url: {\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n signUpTypes: {\n serializedName: \"signUpTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"website\",\n \"pointOfSale\",\n \"sms\",\n \"interactiveVoiceResponse\"\n ]\n }\n }\n }\n },\n signUpUrl: {\n serializedName: \"signUpUrl\",\n type: {\n name: \"String\"\n }\n },\n termsOfServiceUrl: {\n serializedName: \"termsOfServiceUrl\",\n type: {\n name: \"String\"\n }\n },\n privacyPolicyUrl: {\n serializedName: \"privacyPolicyUrl\",\n type: {\n name: \"String\"\n }\n },\n expectedDateOfService: {\n serializedName: \"expectedDateOfService\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CompanyInformation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CompanyInformation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n url: {\n serializedName: \"url\",\n type: {\n name: \"String\"\n }\n },\n address: {\n serializedName: \"address\",\n type: {\n name: \"String\"\n }\n },\n contactInformation: {\n serializedName: \"contactInformation\",\n type: {\n name: \"Composite\",\n className: \"ContactInformation\"\n }\n },\n customerCareInformation: {\n serializedName: \"customerCareInformation\",\n type: {\n name: \"Composite\",\n className: \"CustomerCareInformation\"\n }\n }\n }\n }\n};\n\nexport const ContactInformation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ContactInformation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n phone: {\n serializedName: \"phone\",\n type: {\n name: \"String\"\n }\n },\n email: {\n serializedName: \"email\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CustomerCareInformation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CustomerCareInformation\",\n modelProperties: {\n tollFreeNumber: {\n serializedName: \"tollFreeNumber\",\n type: {\n name: \"String\"\n }\n },\n email: {\n serializedName: \"email\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MessageDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageDetails\",\n modelProperties: {\n supportedProtocols: {\n serializedName: \"supportedProtocols\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\"sms\", \"mms\"]\n }\n }\n }\n },\n recurrence: {\n serializedName: \"recurrence\",\n type: {\n name: \"String\"\n }\n },\n helpMessage: {\n serializedName: \"helpMessage\",\n type: {\n name: \"String\"\n }\n },\n optOutMessage: {\n serializedName: \"optOutMessage\",\n type: {\n name: \"String\"\n }\n },\n optInMessage: {\n serializedName: \"optInMessage\",\n type: {\n name: \"String\"\n }\n },\n optInReply: {\n serializedName: \"optInReply\",\n type: {\n name: \"String\"\n }\n },\n confirmationMessage: {\n serializedName: \"confirmationMessage\",\n type: {\n name: \"String\"\n }\n },\n directionality: {\n serializedName: \"directionality\",\n type: {\n name: \"String\"\n }\n },\n useCases: {\n serializedName: \"useCases\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"UseCase\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const UseCase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UseCase\",\n modelProperties: {\n contentCategory: {\n serializedName: \"contentCategory\",\n type: {\n name: \"String\"\n }\n },\n examples: {\n serializedName: \"examples\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MessageExampleSequence\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MessageExampleSequence: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageExampleSequence\",\n modelProperties: {\n messages: {\n serializedName: \"messages\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MessageExample\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MessageExample: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MessageExample\",\n modelProperties: {\n direction: {\n serializedName: \"direction\",\n type: {\n name: \"String\"\n }\n },\n text: {\n serializedName: \"text\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TrafficDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrafficDetails\",\n modelProperties: {\n totalMonthlyVolume: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"totalMonthlyVolume\",\n type: {\n name: \"Number\"\n }\n },\n monthlyAverageMessagesFromUser: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"monthlyAverageMessagesFromUser\",\n type: {\n name: \"Number\"\n }\n },\n monthlyAverageMessagesToUser: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"monthlyAverageMessagesToUser\",\n type: {\n name: \"Number\"\n }\n },\n isSpiky: {\n serializedName: \"isSpiky\",\n type: {\n name: \"Boolean\"\n }\n },\n spikeDetails: {\n serializedName: \"spikeDetails\",\n type: {\n name: \"String\"\n }\n },\n estimatedRampUpTimeInDays: {\n constraints: {\n InclusiveMaximum: 2147483647,\n InclusiveMinimum: 0\n },\n serializedName: \"estimatedRampUpTimeInDays\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const USProgramBriefs: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"USProgramBriefs\",\n modelProperties: {\n programBriefs: {\n serializedName: \"programBriefs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"USProgramBrief\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kB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AAI,GAAuB;IACtC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;IAClC,MAAM,EAAE,oBAAoB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;SACb;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,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-
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE3E,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAA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d,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;SACb;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,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\";\nimport { USProgramBrief as USProgramBriefMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const skip: OperationQueryParameter = {\n parameterPath: [\"options\", \"skip\"],\n mapper: {\n defaultValue: 0,\n serializedName: \"skip\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const top: OperationQueryParameter = {\n parameterPath: [\"options\", \"top\"],\n mapper: {\n defaultValue: 100,\n serializedName: \"top\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-10-25-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const body: OperationParameter = {\n parameterPath: [\"options\", \"body\"],\n mapper: USProgramBriefMapper\n};\n\nexport const programBriefId: OperationURLParameter = {\n parameterPath: \"programBriefId\",\n mapper: {\n serializedName: \"programBriefId\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,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\nexport * from \"./shortCodesOperations\";\n"]}
|
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import * as
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as Mappers from "../models/mappers";
|
|
11
11
|
import * as Parameters from "../models/parameters";
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing ShortCodesOperations operations. */
|
|
14
|
+
export class ShortCodesOperationsImpl {
|
|
14
15
|
/**
|
|
15
|
-
* Initialize a new instance of the class
|
|
16
|
+
* Initialize a new instance of the class ShortCodesOperations class.
|
|
16
17
|
* @param client Reference to the service client
|
|
17
18
|
*/
|
|
18
19
|
constructor(client) {
|
|
@@ -119,10 +120,7 @@ export class ShortCodes {
|
|
|
119
120
|
* @param options The options parameters.
|
|
120
121
|
*/
|
|
121
122
|
_getShortCodes(options) {
|
|
122
|
-
|
|
123
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
124
|
-
};
|
|
125
|
-
return this.client.sendOperationRequest(operationArguments, getShortCodesOperationSpec);
|
|
123
|
+
return this.client.sendOperationRequest({ options }, getShortCodesOperationSpec);
|
|
126
124
|
}
|
|
127
125
|
/**
|
|
128
126
|
* Creates or updates a US Program Brief.
|
|
@@ -130,11 +128,7 @@ export class ShortCodes {
|
|
|
130
128
|
* @param options The options parameters.
|
|
131
129
|
*/
|
|
132
130
|
upsertUSProgramBrief(programBriefId, options) {
|
|
133
|
-
|
|
134
|
-
programBriefId,
|
|
135
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
136
|
-
};
|
|
137
|
-
return this.client.sendOperationRequest(operationArguments, upsertUSProgramBriefOperationSpec);
|
|
131
|
+
return this.client.sendOperationRequest({ programBriefId, options }, upsertUSProgramBriefOperationSpec);
|
|
138
132
|
}
|
|
139
133
|
/**
|
|
140
134
|
* Deletes a US Program Brief.
|
|
@@ -142,43 +136,30 @@ export class ShortCodes {
|
|
|
142
136
|
* @param options The options parameters.
|
|
143
137
|
*/
|
|
144
138
|
deleteUSProgramBrief(programBriefId, options) {
|
|
145
|
-
|
|
146
|
-
programBriefId,
|
|
147
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
148
|
-
};
|
|
149
|
-
return this.client.sendOperationRequest(operationArguments, deleteUSProgramBriefOperationSpec);
|
|
139
|
+
return this.client.sendOperationRequest({ programBriefId, options }, deleteUSProgramBriefOperationSpec);
|
|
150
140
|
}
|
|
151
141
|
/**
|
|
152
|
-
*
|
|
142
|
+
* Get a US Program Brief by id.
|
|
143
|
+
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
153
144
|
* @param options The options parameters.
|
|
154
145
|
*/
|
|
155
146
|
getUSProgramBrief(programBriefId, options) {
|
|
156
|
-
|
|
157
|
-
programBriefId,
|
|
158
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
159
|
-
};
|
|
160
|
-
return this.client.sendOperationRequest(operationArguments, getUSProgramBriefOperationSpec);
|
|
147
|
+
return this.client.sendOperationRequest({ programBriefId, options }, getUSProgramBriefOperationSpec);
|
|
161
148
|
}
|
|
162
149
|
/**
|
|
163
|
-
*
|
|
150
|
+
* Submits a US Program Brief for review.
|
|
151
|
+
* @param programBriefId Program Brief Id. Must be a valid GUID
|
|
164
152
|
* @param options The options parameters.
|
|
165
153
|
*/
|
|
166
154
|
submitUSProgramBrief(programBriefId, options) {
|
|
167
|
-
|
|
168
|
-
programBriefId,
|
|
169
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
170
|
-
};
|
|
171
|
-
return this.client.sendOperationRequest(operationArguments, submitUSProgramBriefOperationSpec);
|
|
155
|
+
return this.client.sendOperationRequest({ programBriefId, options }, submitUSProgramBriefOperationSpec);
|
|
172
156
|
}
|
|
173
157
|
/**
|
|
174
158
|
* Gets the list of US Program Briefs for the current resource.
|
|
175
159
|
* @param options The options parameters.
|
|
176
160
|
*/
|
|
177
161
|
_getUSProgramBriefs(options) {
|
|
178
|
-
|
|
179
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
180
|
-
};
|
|
181
|
-
return this.client.sendOperationRequest(operationArguments, getUSProgramBriefsOperationSpec);
|
|
162
|
+
return this.client.sendOperationRequest({ options }, getUSProgramBriefsOperationSpec);
|
|
182
163
|
}
|
|
183
164
|
/**
|
|
184
165
|
* GetShortCodesNext
|
|
@@ -186,11 +167,7 @@ export class ShortCodes {
|
|
|
186
167
|
* @param options The options parameters.
|
|
187
168
|
*/
|
|
188
169
|
_getShortCodesNext(nextLink, options) {
|
|
189
|
-
|
|
190
|
-
nextLink,
|
|
191
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
192
|
-
};
|
|
193
|
-
return this.client.sendOperationRequest(operationArguments, getShortCodesNextOperationSpec);
|
|
170
|
+
return this.client.sendOperationRequest({ nextLink, options }, getShortCodesNextOperationSpec);
|
|
194
171
|
}
|
|
195
172
|
/**
|
|
196
173
|
* GetUSProgramBriefsNext
|
|
@@ -198,15 +175,11 @@ export class ShortCodes {
|
|
|
198
175
|
* @param options The options parameters.
|
|
199
176
|
*/
|
|
200
177
|
_getUSProgramBriefsNext(nextLink, options) {
|
|
201
|
-
|
|
202
|
-
nextLink,
|
|
203
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
|
204
|
-
};
|
|
205
|
-
return this.client.sendOperationRequest(operationArguments, getUSProgramBriefsNextOperationSpec);
|
|
178
|
+
return this.client.sendOperationRequest({ nextLink, options }, getUSProgramBriefsNextOperationSpec);
|
|
206
179
|
}
|
|
207
180
|
}
|
|
208
181
|
// Operation Specifications
|
|
209
|
-
const serializer =
|
|
182
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
210
183
|
const getShortCodesOperationSpec = {
|
|
211
184
|
path: "/shortCodes",
|
|
212
185
|
httpMethod: "GET",
|
|
@@ -338,4 +311,4 @@ const getUSProgramBriefsNextOperationSpec = {
|
|
|
338
311
|
headerParameters: [Parameters.accept],
|
|
339
312
|
serializer
|
|
340
313
|
};
|
|
341
|
-
//# sourceMappingURL=
|
|
314
|
+
//# sourceMappingURL=shortCodesOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortCodesOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/shortCodesOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAA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ourcesContent":["/*\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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ShortCodesOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ShortCodesClientContext } from \"../shortCodesClientContext\";\nimport {\n ShortCode,\n ShortCodesGetShortCodesNextOptionalParams,\n ShortCodesGetShortCodesOptionalParams,\n USProgramBrief,\n ShortCodesGetUSProgramBriefsNextOptionalParams,\n ShortCodesGetUSProgramBriefsOptionalParams,\n ShortCodesGetShortCodesResponse,\n ShortCodesUpsertUSProgramBriefOptionalParams,\n ShortCodesUpsertUSProgramBriefResponse,\n ShortCodesDeleteUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefResponse,\n ShortCodesSubmitUSProgramBriefOptionalParams,\n ShortCodesSubmitUSProgramBriefResponse,\n ShortCodesGetUSProgramBriefsResponse,\n ShortCodesGetShortCodesNextResponse,\n ShortCodesGetUSProgramBriefsNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ShortCodesOperations operations. */\nexport class ShortCodesOperationsImpl implements ShortCodesOperations {\n private readonly client: ShortCodesClientContext;\n\n /**\n * Initialize a new instance of the class ShortCodesOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ShortCodesClientContext) {\n this.client = client;\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n public listShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): PagedAsyncIterableIterator<ShortCode> {\n const iter = this.getShortCodesPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getShortCodesPagingPage(options);\n }\n };\n }\n\n private async *getShortCodesPagingPage(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode[]> {\n let result = await this._getShortCodes(options);\n yield result.shortCodes || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getShortCodesNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.shortCodes || [];\n }\n }\n\n private async *getShortCodesPagingAll(\n options?: ShortCodesGetShortCodesOptionalParams\n ): AsyncIterableIterator<ShortCode> {\n for await (const page of this.getShortCodesPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n public listUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): PagedAsyncIterableIterator<USProgramBrief> {\n const iter = this.getUSProgramBriefsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getUSProgramBriefsPagingPage(options);\n }\n };\n }\n\n private async *getUSProgramBriefsPagingPage(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief[]> {\n let result = await this._getUSProgramBriefs(options);\n yield result.programBriefs || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getUSProgramBriefsNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.programBriefs || [];\n }\n }\n\n private async *getUSProgramBriefsPagingAll(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): AsyncIterableIterator<USProgramBrief> {\n for await (const page of this.getUSProgramBriefsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n private _getShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): Promise<ShortCodesGetShortCodesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getShortCodesOperationSpec\n );\n }\n\n /**\n * Creates or updates a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n upsertUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesUpsertUSProgramBriefOptionalParams\n ): Promise<ShortCodesUpsertUSProgramBriefResponse> {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n upsertUSProgramBriefOperationSpec\n );\n }\n\n /**\n * Deletes a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n deleteUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesDeleteUSProgramBriefOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n deleteUSProgramBriefOperationSpec\n );\n }\n\n /**\n * Get a US Program Brief by id.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n getUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefResponse> {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n getUSProgramBriefOperationSpec\n );\n }\n\n /**\n * Submits a US Program Brief for review.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n submitUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesSubmitUSProgramBriefOptionalParams\n ): Promise<ShortCodesSubmitUSProgramBriefResponse> {\n return this.client.sendOperationRequest(\n { programBriefId, options },\n submitUSProgramBriefOperationSpec\n );\n }\n\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n private _getUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getUSProgramBriefsOperationSpec\n );\n }\n\n /**\n * GetShortCodesNext\n * @param nextLink The nextLink from the previous successful call to the GetShortCodes method.\n * @param options The options parameters.\n */\n private _getShortCodesNext(\n nextLink: string,\n options?: ShortCodesGetShortCodesNextOptionalParams\n ): Promise<ShortCodesGetShortCodesNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getShortCodesNextOperationSpec\n );\n }\n\n /**\n * GetUSProgramBriefsNext\n * @param nextLink The nextLink from the previous successful call to the GetUSProgramBriefs method.\n * @param options The options parameters.\n */\n private _getUSProgramBriefsNext(\n nextLink: string,\n options?: ShortCodesGetUSProgramBriefsNextOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefsNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getUSProgramBriefsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getShortCodesOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst upsertUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n 201: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst submitUSProgramBriefOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs/{programBriefId}/:submit\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBrief\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.programBriefId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsOperationSpec: coreClient.OperationSpec = {\n path: \"/shortCodes/countries/US/programBriefs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getShortCodesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShortCodes\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUSProgramBriefsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.USProgramBriefs\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.skip, Parameters.top, Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./shortCodesOperations";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,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\nexport * from \"./shortCodesOperations\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=shortCodesOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortCodesOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/shortCodesOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n ShortCode,\n ShortCodesGetShortCodesOptionalParams,\n USProgramBrief,\n ShortCodesGetUSProgramBriefsOptionalParams,\n ShortCodesUpsertUSProgramBriefOptionalParams,\n ShortCodesUpsertUSProgramBriefResponse,\n ShortCodesDeleteUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefOptionalParams,\n ShortCodesGetUSProgramBriefResponse,\n ShortCodesSubmitUSProgramBriefOptionalParams,\n ShortCodesSubmitUSProgramBriefResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ShortCodesOperations. */\nexport interface ShortCodesOperations {\n /**\n * Gets the list of short codes for the current resource.\n * @param options The options parameters.\n */\n listShortCodes(\n options?: ShortCodesGetShortCodesOptionalParams\n ): PagedAsyncIterableIterator<ShortCode>;\n /**\n * Gets the list of US Program Briefs for the current resource.\n * @param options The options parameters.\n */\n listUSProgramBriefs(\n options?: ShortCodesGetUSProgramBriefsOptionalParams\n ): PagedAsyncIterableIterator<USProgramBrief>;\n /**\n * Creates or updates a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n upsertUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesUpsertUSProgramBriefOptionalParams\n ): Promise<ShortCodesUpsertUSProgramBriefResponse>;\n /**\n * Deletes a US Program Brief.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n deleteUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesDeleteUSProgramBriefOptionalParams\n ): Promise<void>;\n /**\n * Get a US Program Brief by id.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n getUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesGetUSProgramBriefOptionalParams\n ): Promise<ShortCodesGetUSProgramBriefResponse>;\n /**\n * Submits a US Program Brief for review.\n * @param programBriefId Program Brief Id. Must be a valid GUID\n * @param options The options parameters.\n */\n submitUSProgramBrief(\n programBriefId: string,\n options?: ShortCodesSubmitUSProgramBriefOptionalParams\n ): Promise<ShortCodesSubmitUSProgramBriefResponse>;\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { ShortCodesOperationsImpl } from "./operations";
|
|
9
9
|
import { ShortCodesClientContext } from "./shortCodesClientContext";
|
|
10
10
|
export class ShortCodesClient extends ShortCodesClientContext {
|
|
11
11
|
/**
|
|
@@ -15,7 +15,7 @@ export class ShortCodesClient extends ShortCodesClientContext {
|
|
|
15
15
|
*/
|
|
16
16
|
constructor(endpoint, options) {
|
|
17
17
|
super(endpoint, options);
|
|
18
|
-
this.
|
|
18
|
+
this.shortCodesOperations = new ShortCodesOperationsImpl(this);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=shortCodesClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shortCodesClient.js","sourceRoot":"","sources":["../../../../src/generated/src/shortCodesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"shortCodesClient.js","sourceRoot":"","sources":["../../../../src/generated/src/shortCodesClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC3D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;CAGF","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 { ShortCodesOperationsImpl } from \"./operations\";\nimport { ShortCodesOperations } from \"./operationsInterfaces\";\nimport { ShortCodesClientContext } from \"./shortCodesClientContext\";\nimport { ShortCodesClientOptionalParams } from \"./models\";\n\nexport class ShortCodesClient extends ShortCodesClientContext {\n /**\n * Initializes a new instance of the ShortCodesClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: ShortCodesClientOptionalParams) {\n super(endpoint, options);\n this.shortCodesOperations = new ShortCodesOperationsImpl(this);\n }\n\n shortCodesOperations: ShortCodesOperations;\n}\n"]}
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
|
|
10
|
-
const packageVersion = "1.0.0-beta.1";
|
|
11
|
-
export class ShortCodesClientContext extends coreHttp.ServiceClient {
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
export class ShortCodesClientContext extends coreClient.ServiceClient {
|
|
12
10
|
/**
|
|
13
11
|
* Initializes a new instance of the ShortCodesClientContext class.
|
|
14
12
|
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
@@ -22,13 +20,17 @@ export class ShortCodesClientContext extends coreHttp.ServiceClient {
|
|
|
22
20
|
if (!options) {
|
|
23
21
|
options = {};
|
|
24
22
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
const defaults = {
|
|
24
|
+
requestContentType: "application/json; charset=utf-8"
|
|
25
|
+
};
|
|
26
|
+
const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.2`;
|
|
27
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
28
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
29
|
+
: `${packageDetails}`;
|
|
30
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
31
|
+
userAgentPrefix
|
|
32
|
+
}, baseUri: options.endpoint || "{endpoint}" });
|
|
33
|
+
super(optionsWithDefaults);
|
|
32
34
|
// Parameter assignments
|
|
33
35
|
this.endpoint = endpoint;
|
|
34
36
|
// Assigning values to Constant parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shortCodesClientContext.js","sourceRoot":"","sources":["../../../../src/generated/src/shortCodesClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"shortCodesClientContext.js","sourceRoot":"","sources":["../../../../src/generated/src/shortCodesClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAInE;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAwC;QACpE,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAmC;YAC/C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,iDAAiD,CAAC;QACzE,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,YAAY,GAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;IAC/D,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 { ShortCodesClientOptionalParams } from \"./models\";\n\nexport class ShortCodesClientContext extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ShortCodesClientContext class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: ShortCodesClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ShortCodesClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-short-codes/1.0.0-beta.2`;\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 || \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2021-10-25-preview\";\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport { ShortCodesGetShortCodesOptionalParams } from \".\";\n\n/**\n * Additional options for the delete US Program Brief request.\n */\nexport interface DeleteUSProgramBriefOptions extends OperationOptions {}\n\n/**\n * Additional options for the Get US Program Brief request.\n */\nexport interface GetUSProgramBriefOptions extends OperationOptions {}\n\n/**\n * Additional options for the Submit US Program Brief request.\n */\nexport interface SubmitUSProgramBriefOptions extends OperationOptions {}\n\n/**\n * Additional options for the List Short Codes request.\n */\nexport interface ListShortCodesOptions extends ShortCodesGetShortCodesOptionalParams {}\n\n/**\n * Additional options for the List US Program Brief request.\n */\nexport interface ListUSProgramBriefsOptions extends OperationOptions {}\n\nexport {\n ShortCode,\n USProgramBrief,\n NumberType,\n ProgramBriefStatus,\n ShortCodeCost,\n ProgramDetails,\n CompanyInformation,\n MessageDetails,\n TrafficDetails,\n ShortCodesGetShortCodesOptionalParams,\n ShortCodesUpsertUSProgramBriefOptionalParams,\n BillingFrequency,\n ProgramSignUpType,\n ContactInformation,\n CustomerCareInformation,\n Recurrence,\n UseCase,\n ReviewNote,\n MessageProtocol,\n MessageDirectionality,\n MessageContentCategory,\n MessageExampleSequence,\n MessageExample,\n MessageDirection,\n} from \"./generated/src/models/\";\n"]}
|