Skip to content

Commit

Permalink
feat(client-chime-sdk-voice): Updating CreatePhoneNumberOrder, Update…
Browse files Browse the repository at this point in the history
…PhoneNumber and BatchUpdatePhoneNumbers APIs, adding phone number name
  • Loading branch information
awstools committed Aug 9, 2023
1 parent ba1b145 commit 861a8a8
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface BatchUpdatePhoneNumberCommandOutput extends BatchUpdatePhoneNum
* PhoneNumberId: "STRING_VALUE", // required
* ProductType: "VoiceConnector" || "SipMediaApplicationDialIn",
* CallingName: "STRING_VALUE",
* Name: "STRING_VALUE",
* },
* ],
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface CreatePhoneNumberOrderCommandOutput extends CreatePhoneNumberOr
* E164PhoneNumbers: [ // E164PhoneNumberList // required
* "STRING_VALUE",
* ],
* Name: "STRING_VALUE",
* };
* const command = new CreatePhoneNumberOrderCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export interface GetPhoneNumberCommandOutput extends GetPhoneNumberResponse, __M
* // UpdatedTimestamp: new Date("TIMESTAMP"),
* // DeletionTimestamp: new Date("TIMESTAMP"),
* // OrderId: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export interface ListPhoneNumbersCommandOutput extends ListPhoneNumbersResponse,
* // UpdatedTimestamp: new Date("TIMESTAMP"),
* // DeletionTimestamp: new Date("TIMESTAMP"),
* // OrderId: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export interface RestorePhoneNumberCommandOutput extends RestorePhoneNumberRespo
* // UpdatedTimestamp: new Date("TIMESTAMP"),
* // DeletionTimestamp: new Date("TIMESTAMP"),
* // OrderId: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberRespons
* PhoneNumberId: "STRING_VALUE", // required
* ProductType: "VoiceConnector" || "SipMediaApplicationDialIn",
* CallingName: "STRING_VALUE",
* Name: "STRING_VALUE",
* };
* const command = new UpdatePhoneNumberCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -91,6 +92,7 @@ export interface UpdatePhoneNumberCommandOutput extends UpdatePhoneNumberRespons
* // UpdatedTimestamp: new Date("TIMESTAMP"),
* // DeletionTimestamp: new Date("TIMESTAMP"),
* // OrderId: "STRING_VALUE",
* // Name: "STRING_VALUE",
* // },
* // };
*
Expand Down
28 changes: 28 additions & 0 deletions clients/client-chime-sdk-voice/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ export interface UpdatePhoneNumberRequestItem {
* <p>The outbound calling name to update.</p>
*/
CallingName?: string;

/**
* @public
* <p>The name of the phone number.</p>
*/
Name?: string;
}

/**
Expand Down Expand Up @@ -614,6 +620,12 @@ export interface CreatePhoneNumberOrderRequest {
* <p>List of phone numbers, in E.164 format.</p>
*/
E164PhoneNumbers: string[] | undefined;

/**
* @public
* <p>Specifies the name assigned to one or more phone numbers.</p>
*/
Name?: string;
}

/**
Expand Down Expand Up @@ -2237,6 +2249,12 @@ export interface PhoneNumber {
* <p>The phone number's order ID.</p>
*/
OrderId?: string;

/**
* @public
* <p>The name of the phone number.</p>
*/
Name?: string;
}

/**
Expand Down Expand Up @@ -4313,6 +4331,12 @@ export interface UpdatePhoneNumberRequest {
* <p>The outbound calling name associated with the phone number.</p>
*/
CallingName?: string;

/**
* @public
* <p>Specifies the name assigned to one or more phone numbers.</p>
*/
Name?: string;
}

/**
Expand Down Expand Up @@ -4782,6 +4806,7 @@ export const UpdatePhoneNumberRequestItemFilterSensitiveLog = (obj: UpdatePhoneN
...obj,
...(obj.PhoneNumberId && { PhoneNumberId: SENSITIVE_STRING }),
...(obj.CallingName && { CallingName: SENSITIVE_STRING }),
...(obj.Name && { Name: SENSITIVE_STRING }),
});

/**
Expand Down Expand Up @@ -4826,6 +4851,7 @@ export const CandidateAddressFilterSensitiveLog = (obj: CandidateAddress): any =
export const CreatePhoneNumberOrderRequestFilterSensitiveLog = (obj: CreatePhoneNumberOrderRequest): any => ({
...obj,
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING }),
...(obj.Name && { Name: SENSITIVE_STRING }),
});

/**
Expand Down Expand Up @@ -5089,6 +5115,7 @@ export const PhoneNumberFilterSensitiveLog = (obj: PhoneNumber): any => ({
...(obj.PhoneNumberId && { PhoneNumberId: SENSITIVE_STRING }),
...(obj.E164PhoneNumber && { E164PhoneNumber: SENSITIVE_STRING }),
...(obj.CallingName && { CallingName: SENSITIVE_STRING }),
...(obj.Name && { Name: SENSITIVE_STRING }),
});

/**
Expand Down Expand Up @@ -5539,6 +5566,7 @@ export const UpdatePhoneNumberRequestFilterSensitiveLog = (obj: UpdatePhoneNumbe
...obj,
...(obj.PhoneNumberId && { PhoneNumberId: SENSITIVE_STRING }),
...(obj.CallingName && { CallingName: SENSITIVE_STRING }),
...(obj.Name && { Name: SENSITIVE_STRING }),
});

/**
Expand Down
3 changes: 3 additions & 0 deletions clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ export const se_CreatePhoneNumberOrderCommand = async (
body = JSON.stringify(
take(input, {
E164PhoneNumbers: (_) => _json(_),
Name: [],
ProductType: [],
})
);
Expand Down Expand Up @@ -3176,6 +3177,7 @@ export const se_UpdatePhoneNumberCommand = async (
body = JSON.stringify(
take(input, {
CallingName: [],
Name: [],
ProductType: [],
})
);
Expand Down Expand Up @@ -10072,6 +10074,7 @@ const de_PhoneNumber = (output: any, context: __SerdeContext): PhoneNumber => {
CreatedTimestamp: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
DeletionTimestamp: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
E164PhoneNumber: __expectString,
Name: __expectString,
OrderId: __expectString,
PhoneNumberId: __expectString,
ProductType: __expectString,
Expand Down
Loading

0 comments on commit 861a8a8

Please sign in to comment.