Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions packages/@azure/arm-customerinsights/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
173 changes: 77 additions & 96 deletions packages/@azure/arm-customerinsights/README.md
Original file line number Diff line number Diff line change
@@ -1,96 +1,77 @@
## Azure CustomerInsightsManagementClient SDK for JavaScript

This package contains an isomorphic SDK for CustomerInsightsManagementClient.

### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

```
npm install @azure/arm-customerinsights
```

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

```
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { CustomerInsightsManagementClient, CustomerInsightsManagementModels, CustomerInsightsManagementMappers } from "@azure/arm-customerinsights";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new CustomerInsightsManagementClient(creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
```

#### browser - Authentication, client creation and list operations as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

```
npm install @azure/ms-rest-browserauth
```

##### Sample code

See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/arm-customerinsights sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-customerinsights/dist/arm-customerinsights.js"></script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmCustomerinsights.CustomerInsightsManagementClient(res.creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body></body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
# Azure CustomerInsightsManagementClient SDK for JavaScript
This package contains an isomorphic SDK for CustomerInsightsManagementClient.

## Currently supported environments
- Node.js version 6.x.x or higher
- Browser JavaScript

## How to Install
```
npm install @azure/arm-customerinsights
```


## How to use

### nodejs - Authentication, client creation and list operations as an example written in TypeScript.

```ts
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";
import * as msRestNodeAuth from "ms-rest-nodeauth";
import { CustomerInsightsManagementClient, CustomerInsightsManagementModels, CustomerInsightsManagementMappers } from "@azure/arm-customerinsights";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new CustomerInsightsManagementClient(creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
```

### browser - Authentication, client creation and list operations as an example written in JavaScript.
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/arm-customerinsights sample</title>
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-customerinsights/dist/arm-customerinsights.js"></script>
<script>
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmCustomerinsights.CustomerInsightsManagementClient(res.creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body>
</body>
</html>
```

# Related projects
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";

const packageName = "@azure/arm-customerinsights";
const packageVersion = "0.1.0";
Expand Down
32 changes: 16 additions & 16 deletions packages/@azure/arm-customerinsights/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* regenerated.
*/

import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
import * as msRest from "ms-rest-js";

export { BaseResource, CloudError };

Expand Down Expand Up @@ -274,7 +274,7 @@ export interface PropertyDefinition {
isName?: boolean;
/**
* @member {boolean} [isRequired] Whether property value is required on
* instances, IsRequired field only for Intercation. Profile Instance will
* instances, IsRequired field only for Interaction. Profile Instance will
* not check for required field.
*/
isRequired?: boolean;
Expand Down Expand Up @@ -317,7 +317,7 @@ export interface PropertyDefinition {
export interface EntityTypeDefinition extends MetadataDefinitionBase {
/**
* @member {string} [apiEntitySetName] The api entity set name. This becomes
* the odata entity set name for the entity Type being refered in this
* the odata entity set name for the entity Type being referred in this
* object.
*/
apiEntitySetName?: string;
Expand Down Expand Up @@ -390,11 +390,11 @@ export interface AuthorizationPolicy {
*/
permissions: PermissionTypes[];
/**
* @member {string} [primaryKey] Primary key assiciated with the policy.
* @member {string} [primaryKey] Primary key associated with the policy.
*/
primaryKey?: string;
/**
* @member {string} [secondaryKey] Secondary key assiciated with the policy.
* @member {string} [secondaryKey] Secondary key associated with the policy.
*/
secondaryKey?: string;
}
Expand Down Expand Up @@ -526,7 +526,7 @@ export interface CrmConnectorProperties {
/**
* @interface
* An interface representing ConnectorMappingErrorManagement.
* The error mangement.
* The error management.
*
*/
export interface ConnectorMappingErrorManagement {
Expand Down Expand Up @@ -1137,7 +1137,7 @@ export interface ProfileResourceFormat extends ProxyResource {
largeImage?: string;
/**
* @member {string} [apiEntitySetName] The api entity set name. This becomes
* the odata entity set name for the entity Type being refered in this
* the odata entity set name for the entity Type being referred in this
* object.
*/
apiEntitySetName?: string;
Expand Down Expand Up @@ -1240,7 +1240,7 @@ export interface InteractionResourceFormat extends ProxyResource {
largeImage?: string;
/**
* @member {string} [apiEntitySetName] The api entity set name. This becomes
* the odata entity set name for the entity Type being refered in this
* the odata entity set name for the entity Type being referred in this
* object.
*/
apiEntitySetName?: string;
Expand Down Expand Up @@ -1518,7 +1518,7 @@ export interface ConnectorResourceFormat extends ProxyResource {
*/
readonly created?: Date;
/**
* @member {Date} [lastModified] The last monified time.
* @member {Date} [lastModified] The last modified time.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand All @@ -1545,7 +1545,7 @@ export interface ConnectorResourceFormat extends ProxyResource {
/**
* @interface
* An interface representing ConnectorMappingResourceFormat.
* The c onnector mapping resource format.
* The connector mapping resource format.
*
* @extends ProxyResource
*/
Expand All @@ -1569,7 +1569,7 @@ export interface ConnectorMappingResourceFormat extends ProxyResource {
*/
readonly created?: Date;
/**
* @member {Date} [lastModified] The last monified time.
* @member {Date} [lastModified] The last modified time.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -1658,11 +1658,11 @@ export interface AuthorizationPolicyResourceFormat extends ProxyResource {
*/
permissions: PermissionTypes[];
/**
* @member {string} [primaryKey] Primary key assiciated with the policy.
* @member {string} [primaryKey] Primary key associated with the policy.
*/
primaryKey?: string;
/**
* @member {string} [secondaryKey] Secondary key assiciated with the policy.
* @member {string} [secondaryKey] Secondary key associated with the policy.
*/
secondaryKey?: string;
}
Expand Down Expand Up @@ -1735,7 +1735,7 @@ export interface LinkResourceFormat extends ProxyResource {
readonly provisioningState?: ProvisioningStates;
/**
* @member {boolean} [referenceOnly] Indicating whether the link is reference
* only link. This flag is ingored if the Mappings are defined. If the
* only link. This flag is ignored if the Mappings are defined. If the
* mappings are not defined and it is set to true, links processing will not
* create or update profiles.
*/
Expand Down Expand Up @@ -2549,7 +2549,7 @@ export interface PredictionModelStatus {
*/
readonly trainingAccuracy?: number;
/**
* @member {number} [signalsUsed] The singnas used.
* @member {number} [signalsUsed] The signals used.
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/@azure/arm-customerinsights/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* regenerated.
*/

import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js";
import * as msRest from "ms-rest-js";

export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";

export const acceptLanguage: msRest.OperationParameter = {
parameterPath: "acceptLanguage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as msRest from "ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/authorizationPoliciesMappers";
import * as Parameters from "../models/parameters";
Expand Down
Loading