From fd8f792961c4b5e7beb225a40c4c29ca05132f6c Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 01/68] =?UTF-8?q?feat:crm=5Fhistory=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_history.sql diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql new file mode 100644 index 00000000..cf2ca1d8 --- /dev/null +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -0,0 +1,24 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること + +CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) +BEGIN + SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + PREPARE new_history_save_stmt from @new_history_save; + EXECUTE new_history_save_stmt; + + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; + EXECUTE make_history_tmp_create_stmt; + + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + DROP TEMPORARY TABLE make_history_tmp; +END \ No newline at end of file From 3e6b1ffd0ae0a933d71b61d603a7597bf660f67e Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 02/68] =?UTF-8?q?refactor:=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index cf2ca1d8..3247da51 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -2,23 +2,27 @@ CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; END \ No newline at end of file From 7b5821e38462c3d6f3704793a92dee088d5f30be Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 03/68] =?UTF-8?q?fix:=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC?= =?UTF-8?q?=E3=83=96=E3=83=AB=E4=BD=9C=E6=88=90=E6=99=82=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 3247da51..caeb09c0 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,7 +10,7 @@ BEGIN EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; From 73cd6a96e243c9d3d7e41790b2a888f4c123a036 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 04/68] =?UTF-8?q?fix:=20=E2=91=A1-2=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index caeb09c0..7c183714 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -17,7 +17,7 @@ BEGIN EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; From da08d37422bd6dd821ffd3b5cdfa240e2fe8077e Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 05/68] =?UTF-8?q?fix:=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E6=8C=87=E6=91=98=E4=BF=AE=E6=AD=A3=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=AE=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 54 +++++++++++++++++++--- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7c183714..f9057a5e 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,28 +1,70 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること - CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + SIGNAL SQLSTATE '45000' + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + END; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する - SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = ' + UPDATE @@target_table + SET + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" + WHERE + start_datetime IS NULL + AND end_datetime IS NULL + '; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; + SET @make_history_tmp_create = ' + CREATE TEMPORARY TABLE make_history_tmp + SELECT + id + , MIN(@@target_column) AS min_start_datetime + , MAX(start_datetime) AS max_start_datetime + FROM + @@target_table + WHERE + end_datetime = "9999-12-31 00:00:00" + GROUP BY + id + HAVING + count(id) = 2 + '; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; + SET @update_end_datetime = ' + UPDATE @@target_table tt + LEFT JOIN make_history_tmp mht + ON tt.id = mht.id + AND tt.start_datetime = mht.min_start_datetime + SET + start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + WHERE + mht.id IS NOT NULL + '; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; + END \ No newline at end of file From d102117999dee7be561efd272d701f7112ecd8e6 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 06/68] =?UTF-8?q?refactor:=E5=8D=8A=E8=A7=92=E3=82=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B9=E3=82=92=E3=82=BF=E3=83=96=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f9057a5e..794abe38 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -9,15 +9,15 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; DROP TEMPORARY TABLE IF EXISTS make_history_tmp; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' UPDATE @@target_table SET - start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL From 51ed74f1104e466421945fb01a74b95957718385 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 07/68] =?UTF-8?q?refactor:@@=E3=81=8B=E3=82=89=E5=A7=8B?= =?UTF-8?q?=E3=81=BE=E3=82=8B=E6=96=87=E5=AD=97=E3=81=AE=E8=AA=AC=E6=98=8E?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 794abe38..0777912f 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,4 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- @@から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 From 9fb7e706ecaf1051b35c885111ffd4e5516ecb0e Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 08/68] =?UTF-8?q?fix:=E4=B8=8D=E8=B6=B3=E9=A0=85=E7=9B=AE?= =?UTF-8?q?=E3=81=A8=E8=A8=AD=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=83=9F=E3=82=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 0777912f..00279493 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -18,7 +18,9 @@ BEGIN UPDATE @@target_table SET start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + , end_datetime = "9999-12-31 00:00:00" + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE start_datetime IS NULL AND end_datetime IS NULL @@ -56,7 +58,9 @@ BEGIN ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET - start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE mht.id IS NOT NULL '; From a7b2bb0c851a59aba50694e347536ff12e84ef35 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 09/68] =?UTF-8?q?refactor:@@=E2=86=92$$=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=80=81=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC=E3=83=96?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=81DEALLOCATE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 45 ++++++++++++++-------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 00279493..a83cc581 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- @@から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -8,16 +8,25 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; + -- ②-3で利用する一時テーブル削除のSQLを準備 + -- 例外処理でも利用するため先に記述 + SET @drop_tmp_table = ' + DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + '; + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + PREPARE new_history_save_stmt from @drop_tmp_table; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE @@target_table + UPDATE $$target_table SET - start_datetime = @@target_column + start_datetime = $$target_column , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -25,20 +34,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + DEALLOCATE PREPARE ew_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp + CREATE TEMPORARY TABLE make_history_tmp_$$target_table SELECT id - , MIN(@@target_column) AS min_start_datetime + , MIN($$target_column) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - @@target_table + $$target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -46,15 +56,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE @@target_table tt - LEFT JOIN make_history_tmp mht + UPDATE $$target_table tt + LEFT JOIN make_history_tmp_$$target_table mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -64,12 +75,14 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - DROP TEMPORARY TABLE make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; END \ No newline at end of file From 76cf08ebdd1d21b8d4d9cdfdb90c8311fe78ef37 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 10/68] =?UTF-8?q?refactor:=E4=B8=80=E6=99=82=E3=83=86?= =?UTF-8?q?=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D=E3=81=AE=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=80=81=E7=B4=B0=E3=81=8B=E3=81=84=E3=83=9F=E3=82=B9=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index a83cc581..f361a850 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -8,19 +8,19 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp '; SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); - PREPARE new_history_save_stmt from @drop_tmp_table; + PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' @@ -38,11 +38,11 @@ BEGIN SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; - DEALLOCATE PREPARE ew_history_save_stmt; + DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp_$$target_table + CREATE TEMPORARY TABLE $$target_table_make_history_tmp SELECT id , MIN($$target_column) AS min_start_datetime @@ -65,7 +65,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table tt - LEFT JOIN make_history_tmp_$$target_table mht + LEFT JOIN $$target_table_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -82,7 +82,7 @@ BEGIN DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; END \ No newline at end of file From ba56ec8b5a7d6c3b4c57b36051665e7f77311127 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 11/68] =?UTF-8?q?fix:=E3=83=88=E3=83=A9=E3=83=B3=E3=82=B6?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E5=87=A6=E7=90=86=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f361a850..7573bf9b 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,10 +10,13 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + ROLLBACK; SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + START TRANSACTION; + -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' @@ -85,4 +88,6 @@ BEGIN EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + COMMIT; + END \ No newline at end of file From a7257e1101ad55f316dd9f4211debe5b7d1dcde3 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 12/68] =?UTF-8?q?refactor:=E4=B8=A6=E5=88=97=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E8=BF=BD=E5=8A=A0=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E3=81=A7=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B=E3=83=A6=E3=83=BC?= =?UTF-8?q?=E3=82=B6=E5=A4=89=E6=95=B0=E3=81=AE=E5=88=9D=E6=9C=9F=E5=8C=96?= =?UTF-8?q?=E3=80=81$$=E7=B5=82=E7=AB=AF=E6=96=87=E5=AD=97=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7573bf9b..b60e2681 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,6 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まり$$で終わる文字は後からREPLACEする文字を示す独自ルール +-- crm_historyストアドプロシージャは、同一セッション内での並列処理を実行することができない CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -15,21 +16,22 @@ BEGIN SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + SET @error_state = NULL, @error_msg = NULL; START TRANSACTION; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp + DROP TEMPORARY TABLE IF EXISTS $$target_table$$_make_history_tmp '; - SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table$$", target_table); PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE $$target_table + UPDATE $$target_table$$ SET - start_datetime = $$target_column + start_datetime = $$target_column$$ , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -37,21 +39,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table$$", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column$$", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE $$target_table_make_history_tmp + CREATE TEMPORARY TABLE $$target_table$$_make_history_tmp SELECT id - , MIN($$target_column) AS min_start_datetime + , MIN($$target_column$$) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - $$target_table + $$target_table$$ WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -59,16 +61,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table$$", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column$$", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE $$target_table tt - LEFT JOIN $$target_table_make_history_tmp mht + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -78,8 +80,8 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; DEALLOCATE PREPARE update_end_datetime_stmt; From c66d208c11d05a2ac412b388344e2cf5b833a277 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 13/68] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From 5d7962af70e28e4a572a0b48bf8aa1a84ca6a649 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 14/68] =?UTF-8?q?Revert=20"feat:crm=5Fdata=5Fsync=E3=81=AE?= =?UTF-8?q?=E6=96=B0=E8=A6=8F=E4=BD=9C=E6=88=90"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9b8076451f14b1ec07d5751d47cb79bbc1b709db. --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 -------------------- 1 file changed, 41 deletions(-) delete mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql deleted file mode 100644 index c039a18a..00000000 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ /dev/null @@ -1,41 +0,0 @@ --- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール --- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない -CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) -BEGIN - -- 例外処理 - -- エラーが発生した場合に一時テーブルの削除を実施 - DECLARE EXIT HANDLER FOR SQLEXCEPTION - BEGIN - GET DIAGNOSTICS CONDITION 1 - @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - ROLLBACK; - SIGNAL SQLSTATE '45000' - SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; - END; - - SET @error_state = NULL, @error_msg = NULL; - START TRANSACTION; - - -- ①-1 Salesforce側で物理削除されたデータを検出し更新する - SET @update_end_datetime = ' - UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ - SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() - WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" - '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); - PREPARE update_end_datetime_stmt from @update_end_datetime; - EXECUTE update_end_datetime_stmt; - - COMMIT; -END \ No newline at end of file From 99a97658b4a2492e0f42d61b6221fa008de0971b Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 15/68] =?UTF-8?q?refactor:=E2=91=A1-2=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=B5=90=E5=90=88=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97Where?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index b60e2681..366cde70 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,15 +70,13 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table$$_make_history_tmp mht + JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() - WHERE - mht.id IS NOT NULL '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); From 0d7d66ebe4d9e04dd13b356677ba5cb9e7d6ecde Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 16/68] =?UTF-8?q?refactor:INNER=E3=82=92=E6=98=8E=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E3=81=AB=E8=A8=98=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 366cde70..10bb0095 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,7 +70,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - JOIN $$target_table$$_make_history_tmp mht + INNER JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET From 885fa7d274923dcb5dcab2f559f34be02e971121 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 17/68] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From 5a0b19f4d8e438723c1471aeec94660586f823d3 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 18/68] =?UTF-8?q?refactor:EXISTS=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index c039a18a..01d27b9a 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -20,16 +20,21 @@ BEGIN -- ①-1 Salesforce側で物理削除されたデータを検出し更新する SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() + tt.end_datetime = CURRENT_TIMESTAMP () + , tt.upd_user = CURRENT_USER () + , tt.upd_date = CURRENT_TIMESTAMP () WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" + tt.end_datetime = "9999-12-31 00:00:00" + AND NOT EXISTS ( + SELECT + * + FROM + $$target_table_all$$ tta + WHERE + tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); From 2d9d1308b56a2b406723684aa23434958ad3e092 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 19/68] =?UTF-8?q?refactor:EXISTS=E3=81=AE=E4=B8=AD?= =?UTF-8?q?=E8=BA=AB=E3=81=AESELECT=E5=8F=A5=E3=82=92ID=E3=81=AE=E3=81=BF?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 01d27b9a..155bfb99 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - * + tt.id FROM $$target_table_all$$ tta WHERE @@ -37,8 +37,8 @@ BEGIN ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; From f093a5df226568879dfc6d8a9ba383b16150e160 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 20/68] =?UTF-8?q?refactor:=E5=8F=82=E7=85=A7ID=E3=82=92tta?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 155bfb99..e9986c0f 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - tt.id + tta.id FROM $$target_table_all$$ tta WHERE From 93717ae52843a267d0eff5067ad18535e8c76641 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:29 +0900 Subject: [PATCH 21/68] =?UTF-8?q?feat:CRM=E3=81=AE=E6=8B=A1=E5=BC=B5SQL?= =?UTF-8?q?=E3=80=81=E8=A8=AD=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s3/data/crm/settings/CRM_Account.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare_ex.sql | 1 + .../CRM_Account_Territory_Loader_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Account_ex.sql | 1 + .../settings/CRM_Approved_Document_vod__c.txt | 13 +++++ .../crm/settings/CRM_Call2_Detail_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Discussion_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Key_Message_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Call2_vod__c.txt | 13 +++++ .../settings/CRM_Call_Clickstream_vod__c.txt | 13 +++++ .../crm/settings/CRM_Child_Account_vod__c.txt | 13 +++++ .../settings/CRM_Child_Account_vod__c_ex.sql | 1 + .../CRM_Clm_Presentation_Slide_vod__c.txt | 13 +++++ .../settings/CRM_Clm_Presentation_vod__c.txt | 13 +++++ .../settings/CRM_Coaching_Report_vod__c.txt | 13 +++++ .../settings/CRM_Consent_Header_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Line_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Type_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Contact.txt | 13 +++++ s3/data/crm/settings/CRM_Contact_ex.sql | 1 + ...Dynamic_Attribute_Configuration_vod__c.txt | 13 +++++ .../settings/CRM_Dynamic_Attribute_vod__c.txt | 13 +++++ .../settings/CRM_Email_Activity_vod__c.txt | 13 +++++ .../settings/CRM_Event_Attendee_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Group.txt | 13 +++++ s3/data/crm/settings/CRM_Group_ex.sql | 1 + .../crm/settings/CRM_Key_Message_vod__c.txt | 13 +++++ .../CRM_MSJ_Hospital_Medical_Regimen__c.txt | 13 +++++ .../CRM_MSJ_Inquiry_Assignment__c.txt | 13 +++++ .../settings/CRM_MSJ_MR_Weekly_Report__c.txt | 13 +++++ .../CRM_MSJ_Medical_Event_Evaluation__c.txt | 13 +++++ .../settings/CRM_MSJ_Medical_Regimen__c.txt | 13 +++++ s3/data/crm/settings/CRM_MSJ_Patient__c.txt | 13 +++++ .../crm/settings/CRM_Medical_Event_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Inquiry_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Insight_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_Line_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_vod__c.txt | 13 +++++ .../CRM_Multichannel_Consent_vod__c.txt | 13 +++++ .../settings/CRM_My_Setup_Products_vod__c.txt | 13 +++++ .../CRM_ObjectTerritory2Association.txt | 13 +++++ .../CRM_ObjectTerritory2Association_ex.sql | 1 + .../crm/settings/CRM_Product_Group_vod__c.txt | 13 +++++ .../settings/CRM_Product_Metrics_vod__c.txt | 13 +++++ .../CRM_Product_Metrics_vod__c_ex.sql | 1 + s3/data/crm/settings/CRM_Product_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Profile.txt | 13 +++++ s3/data/crm/settings/CRM_Profile_ex.sql | 1 + .../settings/CRM_Question_Response_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_RecordType.txt | 13 +++++ .../settings/CRM_Remote_Meeting_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Email_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Fragment_vod__c.txt | 13 +++++ .../settings/CRM_Survey_Question_vod__c.txt | 13 +++++ .../crm/settings/CRM_Survey_Target_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Survey_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2_ALL.txt | 14 +++++ s3/data/crm/settings/CRM_Territory2_ex.sql | 2 + .../CRM_Time_Off_Territory_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_User.txt | 13 +++++ s3/data/crm/settings/CRM_UserRole.txt | 13 +++++ .../CRM_UserTerritory2Association.txt | 13 +++++ .../CRM_UserTerritory2Association_ALL.txt | 14 +++++ .../CRM_UserTerritory2Association_ex.sql | 2 + s3/data/crm/settings/configmap.config | 58 +++++++++++++++++++ 67 files changed, 800 insertions(+) create mode 100644 s3/data/crm/settings/CRM_Account.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare_ex.sql create mode 100644 s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Account_ex.sql create mode 100644 s3/data/crm/settings/CRM_Approved_Document_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Header_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Type_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Contact.txt create mode 100644 s3/data/crm/settings/CRM_Contact_ex.sql create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Email_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Group.txt create mode 100644 s3/data/crm/settings/CRM_Group_ex.sql create mode 100644 s3/data/crm/settings/CRM_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Patient__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Event_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_Group_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Profile.txt create mode 100644 s3/data/crm/settings/CRM_Profile_ex.sql create mode 100644 s3/data/crm/settings/CRM_Question_Response_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_RecordType.txt create mode 100644 s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Email_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Question_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Target_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Territory2.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ALL.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ex.sql create mode 100644 s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_User.txt create mode 100644 s3/data/crm/settings/CRM_UserRole.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/configmap.config diff --git a/s3/data/crm/settings/CRM_Account.txt b/s3/data/crm/settings/CRM_Account.txt new file mode 100644 index 00000000..bee3992c --- /dev/null +++ b/s3/data/crm/settings/CRM_Account.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +248 +Id,IsDeleted,MasterRecordId,Name,LastName,FirstName,Salutation,RecordTypeId,Phone,Fax,Website,PhotoUrl,NumberOfEmployees,Ownership,OwnerId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,IsExcludedFromRealign,PersonContactId,IsPersonAccount,PersonMailingStreet,PersonMailingCity,PersonMailingState,PersonMailingPostalCode,PersonMailingCountry,PersonMailingLatitude,PersonMailingLongitude,PersonMailingGeocodeAccuracy,PersonMailingAddress,PersonOtherStreet,PersonOtherCity,PersonOtherState,PersonOtherPostalCode,PersonOtherCountry,PersonOtherLatitude,PersonOtherLongitude,PersonOtherGeocodeAccuracy,PersonOtherAddress,PersonMobilePhone,PersonHomePhone,PersonOtherPhone,PersonAssistantPhone,PersonEmail,PersonTitle,PersonDepartment,PersonAssistantName,PersonBirthdate,PersonHasOptedOutOfEmail,PersonHasOptedOutOfFax,PersonDoNotCall,PersonLastCURequestDate,PersonLastCUUpdateDate,PersonEmailBouncedReason,PersonEmailBouncedDate,PersonIndividualId,Jigsaw,JigsawCompanyId,AccountSource,SicDesc,External_ID_vod__c,Credentials_vod__c,Territory_vod__c,Exclude_from_Zip_to_Terr_Processing_vod__c,Group_Specialty_1_vod__c,Group_Specialty_2_vod__c,Specialty_1_vod__c,Specialty_2_vod__c,Formatted_Name_vod__c,Territory_Test_vod__c,Mobile_ID_vod__c,Gender_vod__c,ID_vod__c,Do_Not_Sync_Sales_Data_vod__c,ID2_vod__c,Preferred_Name_vod__c,Sample_Default_vod__c,Segmentations_vod__c,Restricted_Products_vod__c,Payer_Id_vod__c,Alternate_Name_vod__c,Do_Not_Call_vod__c,MSJ_Beds__c,Spend_Amount__c,PDRP_Opt_Out_vod__c,Spend_Status_Value_vod__c,PDRP_Opt_Out_Date_vod__c,Spend_Status_vod__c,Enable_Restricted_Products_vod__c,Call_Reminder_vod__c,Account_Group_vod__c,Primary_Parent_vod__c,Color_vod__c,Middle_vod__c,Suffix_vod__c,MSJ_Type__c,No_Orders_vod__c,MSJ_BU_ONC__c,MSJ_BU_FE__c,Account_Search_FirstLast_vod__c,Account_Search_LastFirst_vod__c,MSJ_Operation__c,Practice_at_Hospital_vod__c,Practice_Near_Hospital_vod__c,Do_Not_Create_Child_Account_vod__c,Total_MDs_DOs__c,AHA__c,Order_Type_vod__c,NPI_vod__c,ME__c,Speaker__c,Investigator_vod__c,Default_Order_Type_vod__c,Tax_Status__c,Model__c,Offerings__c,Departments__c,Account_Type__c,MSJ_ONC_Tier__c,Account_Search_Business_vod__c,Business_Professional_Person_vod__c,Hospital_Type_vod__c,Account_Class_vod__c,Furigana_vod__c,MSJ_JISART__c,Total_Revenue_000__c,Net_Income_Loss_000__c,PMPM_Income_Loss_000__c,Commercial_Premiums_PMPM__c,Medical_Loss_Ratio__c,Medical_Expenses_PMPM__c,Commercial_Patient_Days_1000__c,HMO_Market_Shr__c,HMO__c,HMO_POS__c,PPO__c,PPO_POS__c,Medicare__c,Medicaid__c,MSJ_HP_Name_E__c,MSJ_Department__c,MSJ_Date_Of_Birth__c,MSJ_FE_GF_Potential__c,MSJ_FE_SZ_Potential__c,MSJ_EB_CRC_Ladder__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,Business_Description__c,Regional_Strategy__c,Contracts_Process__c,MSJ_GF_segment__c,MSJ_DCF_DR_Code__c,MSJ_SZ_Segment__c,MSJ_Remark__c,MSJ_Title__c,MSJ_Role__c,MSJ_Kana__c,MSJ_Specialism__c,MSJ_Graduated_from__c,MSJ_Year_Graduation__c,Target__c,KOL_vod__c,MSJ_EPPV_Code__c,MSJ_DCF_HP_Code__c,Total_Lives__c,Total_Physicians_Enrolled__c,MSJ_Delete__c,MSJ_KOL_LOL__c,MSJ_ONC_Status__c,Account_Identifier_vod__c,Approved_Email_Opt_Type_vod__c,Language_vod__c,MSJ_KRAS_Routine_Date__c,MSJ_KRAS_Routine__c,MSJ_DRP_Target__c,MSJ_Fertility_Evaluation_Score__c,MSJ_Fertility_Tracking_Last_Modify_Date__c,Total_Pharmacists__c,MSJ_Number_of_Gonadotropin__c,MSJ_Number_of_IUI_cycle__c,MSJ_Number_of_OI_monthly_cycle__c,MSJ_OI_Protocol_learning_level__c,MSJ_H_N_Tier__c,MSJ_XLK_Segment__c,MSJ_XLK_Tier__c,Career_Status_vod__c,Photo_vod__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_FE_CE_Potential__c,MSJ_FE_1C_potential__c,MSJ_FE_OV_potential__c,MSJ_FE_Tech_potential__c,MSJ_CE_segment__c,MSJ_1C_segment__c,MSJ_OV_segment__c,MSJ_Tech_segment__c,MSJ_Target_Call_Num__c,MSJ_DR_Change_Log__c,MSJ_Global_scientific_exposure__c,MSJ_H_index__c,MSJ_Num_of_Article_3Y__c,MSJ_Num_of_Article__c,MSJ_Num_of_Article_as_1st_Author_3Y__c,MSJ_Num_of_article_growth_rate_3Y__c,MSJ_Num_of_cited_3Y__c,MSJ_Num_of_impact_factor_3Y__c,MSJ_impact_factor_as_1st_Author_3Y__c,EMDS_Has_Pipeline_Opportunity__c,EMDS_Pipeline_Count__c,MSJ_BVC_Segment__c,MSJ_BVC_Tier__c,MSJ_BVC_AcctOpen__c,MSJ_BVC_MCC_Patients__c,MSJ_ONC_HP_Segment__c,MSJ_AE_Department__c,MSJ_AE_Facility__c,MSJ_AE_Name__c,MSJ_AE_Title__c,MSJ_Email__c,MSJ_FE_GF2_Potential__c,MSJ_FE_Location_potential__c,MSJ_GF2_segment__c,MSJ_OPTIN_target__c,MSJ_Merck_Specialty1__c,MSJ_Merck_Specialty2__c,MSJ_Marketing_Cloud_Integration__c,MSJ_Marketing_Cloud1__c,MSJ_Marketing_Cloud2__c,MSJ_Marketing_Cloud3__c,MSJ_Marketing_Cloud4__c,MSJ_Medical_Department__c,MSJ_Marketing_Cloud0__c,Mobile_ID_vod__pc,H1Insights__H1_NPI_Value_for_Testing__pc,H1Insights__H1_Person_ID__pc,H1Insights__H1_Request_Status__pc,H1Insights__H1_URL__pc,H1Insights__NPI_Number__pc,H1Insights__NPI_Number_for_H1_Insights__pc,MSJ_Marketing_Cloud_Integration__pc +id,is_deleted,master_record_id,name,last_name,first_name,salutation,record_type_id,phone,fax,website,photo_url,number_of_employees,ownership,owner_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,is_excluded_from_realign,person_contact_id,is_person_account,person_mailing_street,person_mailing_city,person_mailing_state,person_mailing_postal_code,person_mailing_country,person_mailing_latitude,person_mailing_longitude,person_mailing_geocode_accuracy,person_mailing_address,person_other_street,person_other_city,person_other_state,person_other_postal_code,person_other_country,person_other_latitude,person_other_longitude,person_other_geocode_accuracy,person_other_address,person_mobile_phone,person_home_phone,person_other_phone,person_assistant_phone,person_email,person_title,person_department,person_assistant_name,person_birthdate,person_has_opted_out_of_email,person_has_opted_out_of_fax,person_do_not_call,person_last_curequest_date,person_last_cuupdate_date,person_email_bounced_reason,person_email_bounced_date,person_individual_id,jigsaw,jigsaw_company_id,account_source,sic_desc,external_id_vod__c,credentials_vod__c,territory_vod__c,exclude_from_zip_to_terr_processing_vod__c,group_specialty_1_vod__c,group_specialty_2_vod__c,specialty_1_vod__c,specialty_2_vod__c,formatted_name_vod__c,territory_test_vod__c,mobile_id_vod__c,gender_vod__c,id_vod__c,do_not_sync_sales_data_vod__c,id2_vod__c,preferred_name_vod__c,sample_default_vod__c,segmentations_vod__c,restricted_products_vod__c,payer_id_vod__c,alternate_name_vod__c,do_not_call_vod__c,msj_beds__c,spend_amount__c,pdrp_opt_out_vod__c,spend_status_value_vod__c,pdrp_opt_out_date_vod__c,spend_status_vod__c,enable_restricted_products_vod__c,call_reminder_vod__c,account_group_vod__c,primary_parent_vod__c,color_vod__c,middle_vod__c,suffix_vod__c,msj_type__c,no_orders_vod__c,msj_bu_onc__c,msj_bu_fe__c,account_search_first_last_vod__c,account_search_last_first_vod__c,msj_operation__c,practice_at_hospital_vod__c,practice_near_hospital_vod__c,do_not_create_child_account_vod__c,total_mds_dos__c,aha__c,order_type_vod__c,npi_vod__c,me__c,speaker__c,investigator_vod__c,default_order_type_vod__c,tax_status__c,model__c,offerings__c,departments__c,account_type__c,msj_onc_tier__c,account_search_business_vod__c,business_professional_person_vod__c,hospital_type_vod__c,account_class_vod__c,furigana_vod__c,msj_jisart__c,total_revenue_000__c,net_income_loss_000__c,pmpm_income_loss_000__c,commercial_premiums_pmpm__c,medical_loss_ratio__c,medical_expenses_pmpm__c,commercial_patient_days_1000__c,hmo_market_shr__c,hmo__c,hmo_pos__c,ppo__c,ppo_pos__c,medicare__c,medicaid__c,msj_hp_name_e__c,msj_department__c,msj_date_of_birth__c,msj_fe_gf_potential__c,msj_fe_sz_potential__c,msj_eb_crc_ladder__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,business_description__c,regional_strategy__c,contracts_process__c,msj_gf_segment__c,msj_dcf_dr_code__c,msj_sz_segment__c,msj_remark__c,msj_title__c,msj_role__c,msj_kana__c,msj_specialism__c,msj_graduated_from__c,msj_year_graduation__c,target__c,kol_vod__c,msj_eppv_code__c,msj_dcf_hp_code__c,total_lives__c,total_physicians_enrolled__c,msj_delete__c,msj_kol_lol__c,msj_onc_status__c,account_identifier_vod__c,approved_email_opt_type_vod__c,language_vod__c,msj_kras_routine_date__c,msj_kras_routine__c,msj_drp_target__c,msj_fertility_evaluation_score__c,msj_fertility_tracking_last_modify_date__c,total_pharmacists__c,msj_number_of_gonadotropin__c,msj_number_of_iui_cycle__c,msj_number_of_oi_monthly_cycle__c,msj_oi_protocol_learning_level__c,msj_h_n_tier__c,msj_xlk_segment__c,msj_xlk_tier__c,career_status_vod__c,photo_vod__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_fe_ce_potential__c,msj_fe_1_c_potential__c,msj_fe_ov_potential__c,msj_fe_tech_potential__c,msj_ce_segment__c,msj_1_c_segment__c,msj_ov_segment__c,msj_tech_segment__c,msj_target_call_num__c,msj_dr_change_log__c,msj_global_scientific_exposure__c,msj_h_index__c,msj_num_of_article_3_y__c,msj_num_of_article__c,msj_num_of_article_as_1st_author_3_y__c,msj_num_of_article_growth_rate_3_y__c,msj_num_of_cited_3_y__c,msj_num_of_impact_factor_3_y__c,msj_impact_factor_as_1st_author_3_y__c,emds_has_pipeline_opportunity__c,emds_pipeline_count__c,msj_bvc_segment__c,msj_bvc_tier__c,msj_bvc_acct_open__c,msj_bvc_mcc_patients__c,msj_onc_hp_segment__c,msj_ae_department__c,msj_ae_facility__c,msj_ae_name__c,msj_ae_title__c,msj_email__c,msj_fe_gf2_potential__c,msj_fe_location_potential__c,msj_gf2_segment__c,msj_optin_target__c,msj_merck_specialty1__c,msj_merck_specialty2__c,msj_marketing_cloud_integration__c,msj_marketing_cloud1__c,msj_marketing_cloud2__c,msj_marketing_cloud3__c,msj_marketing_cloud4__c,msj_medical_department__c,msj_marketing_cloud0__c,mobile_id_vod__pc,h1_insights__h1_npi_value_for_testing__pc,h1_insights__h1_person_id__pc,h1_insights__h1_request_status__pc,h1_insights__h1_url__pc,h1_insights__npi_number__pc,h1_insights__npi_number_for_h1_insights__pc,msj_marketing_cloud_integration__pc +src02.crm_account +org02.crm_account +CRM_Account_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare.txt b/s3/data/crm/settings/CRM_AccountShare.txt new file mode 100644 index 00000000..8176af1e --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +11 +Id,AccountId,UserOrGroupId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,RowCause,LastModifiedDate,LastModifiedById,IsDeleted +id,account_id,user_or_group_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,row_cause,last_modified_date,last_modified_by_id,is_deleted +src02.crm_account_share +org02.crm_account_share +CRM_AccountShare_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare_ex.sql b/s3/data/crm/settings/CRM_AccountShare_ex.sql new file mode 100644 index 00000000..d18e68db --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account_share', 'last_modified_date'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt new file mode 100644 index 00000000..676e8b39 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +19 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,External_ID_vod__c,Territory_vod__c,Mobile_ID_vod__c,Territory_To_Add_vod__c,Territory_to_Drop_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,external_id_vod__c,territory_vod__c,mobile_id_vod__c,territory_to_add_vod__c,territory_to_drop_vod__c +src02.crm_account_territory_loader_vod__c +org02.crm_account_territory_loader_vod__c + + diff --git a/s3/data/crm/settings/CRM_Account_ex.sql b/s3/data/crm/settings/CRM_Account_ex.sql new file mode 100644 index 00000000..792d7a28 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt new file mode 100644 index 00000000..23683a8c --- /dev/null +++ b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +53 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Detail_Group_vod__c,Document_Description_vod__c,Document_Host_URL_vod__c,Document_ID_vod__c,Document_Last_Mod_DateTime_vod__c,Email_Allows_Documents_vod__c,Email_Domain_vod__c,Email_Fragment_HTML_vod__c,Email_From_Address_vod__c,Email_From_Name_vod__c,Email_HTML_1_vod__c,Email_HTML_2_vod__c,Email_ReplyTo_Address_vod__c,Email_ReplyTo_Name_vod__c,Email_Subject_vod__c,Email_Template_Fragment_Document_ID_vod__c,Email_Template_Fragment_HTML_vod__c,ISI_Document_ID_vod__c,Language_vod__c,Other_Document_ID_List_vod__c,PI_Document_ID_vod__c,Piece_Document_ID_vod__c,Product_vod__c,Status_vod__c,Territory_vod__c,Vault_Instance_ID_vod__c,Allow_Any_Product_Fragment_vod__c,Allowed_Document_IDs_vod__c,Engage_Document_Id_vod__c,Vault_Document_ID_vod__c,Key_Message_vod__c,Events_Management_Subtype_vod__c,Survey_vod__c,Content_Type_vod__c,Bcc_vod__c,Audience_vod__c,WeChat_Template_ID_vod__c,Check_Consent_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,detail_group_vod__c,document_description_vod__c,document_host_url_vod__c,document_id_vod__c,document_last_mod_date_time_vod__c,email_allows_documents_vod__c,email_domain_vod__c,email_fragment_html_vod__c,email_from_address_vod__c,email_from_name_vod__c,email_html_1_vod__c,email_html_2_vod__c,email_reply_to_address_vod__c,email_reply_to_name_vod__c,email_subject_vod__c,email_template_fragment_document_id_vod__c,email_template_fragment_html_vod__c,isi_document_id_vod__c,language_vod__c,other_document_id_list_vod__c,pi_document_id_vod__c,piece_document_id_vod__c,product_vod__c,status_vod__c,territory_vod__c,vault_instance_id_vod__c,allow_any_product_fragment_vod__c,allowed_document_ids_vod__c,engage_document_id_vod__c,vault_document_id_vod__c,key_message_vod__c,events_management_subtype_vod__c,survey_vod__c,content_type_vod__c,bcc_vod__c,audience_vod__c,we_chat_template_id_vod__c,check_consent_vod__c +src02.crm_approved_document_vod__c +org02.crm_approved_document_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt new file mode 100644 index 00000000..67a53029 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Is_Parent_Call_vod__c,Call2_vod__c,Product_vod__c,Detail_Priority_vod__c,Mobile_ID_vod__c,Override_Lock_vod__c,Type_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,is_parent_call_vod__c,call2_vod__c,product_vod__c,detail_priority_vod__c,mobile_id_vod__c,override_lock_vod__c,type_vod__c +src02.crm_call2_detail_vod__c +org02.crm_call2_detail_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt new file mode 100644 index 00000000..c86c840c --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +44 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Activity__c,Comments__c,Contact_vod__c,Call_Date_vod__c,Product_Strategy_vod__c,Product_Tactic_vod__c,Restricted_Comments__c,Product_vod__c,Presentation__c,Discussion_Topics__c,Slides__c,User_vod__c,Indication__c,Mobile_ID_vod__c,Medical_Event_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,zvod_Product_Map_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Account_Tactic_vod__c,MSJ_Material_Type__c,MSJ_Discussion_Contents__c,MSJ_IST_Minutes__c,MSJ_Off_Label_Minutes__c,MSJ_Discussion_Objectives__c,MSJ_Insight__c,EMDS_Materials__c,EMDS_Topic__c,MSJ_Visit_Purpose__c,MSJ_Insight_Count__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,activity__c,comments__c,contact_vod__c,call_date_vod__c,product_strategy_vod__c,product_tactic_vod__c,restricted_comments__c,product_vod__c,presentation__c,discussion_topics__c,slides__c,user_vod__c,indication__c,mobile_id_vod__c,medical_event_vod__c,is_parent_call_vod__c,override_lock_vod__c,zvod_product_map_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,account_tactic_vod__c,msj_material_type__c,msj_discussion_contents__c,msj_ist_minutes__c,msj_off_label_minutes__c,msj_discussion_objectives__c,msj_insight__c,emds_materials__c,emds_topic__c,msj_visit_purpose__c,msj_insight_count__c +src02.crm_call2_discussion_vod__c +org02.crm_call2_discussion_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt new file mode 100644 index 00000000..40267bd0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Reaction_vod__c,Product_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Contact_vod__c,Call_Date_vod__c,User_vod__c,Category_vod__c,Vehicle_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,CLM_ID_vod__c,Slide_Version_vod__c,Duration_vod__c,Presentation_ID_vod__c,Start_Time_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Segment_vod__c,Display_Order_vod__c,Clm_Presentation_Name_vod__c,Clm_Presentation_Version_vod__c,Clm_Presentation_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,reaction_vod__c,product_vod__c,key_message_vod__c,mobile_id_vod__c,contact_vod__c,call_date_vod__c,user_vod__c,category_vod__c,vehicle_vod__c,is_parent_call_vod__c,override_lock_vod__c,clm_id_vod__c,slide_version_vod__c,duration_vod__c,presentation_id_vod__c,start_time_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,segment_vod__c,display_order_vod__c,clm_presentation_name_vod__c,clm_presentation_version_vod__c,clm_presentation_vod__c +src02.crm_call2_key_message_vod__c +org02.crm_call2_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_vod__c.txt b/s3/data/crm/settings/CRM_Call2_vod__c.txt new file mode 100644 index 00000000..6b2c330e --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +205 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Call_Comments_vod__c,Sample_Card_vod__c,Add_Detail_vod__c,Property_vod__c,Account_vod__c,zvod_Product_Discussion_vod__c,Status_vod__c,Parent_Address_vod__c,Account_Plan_vod__c,zvod_SaveNew_vod__c,Next_Call_Notes_vod__c,Pre_Call_Notes_vod__c,Mobile_ID_vod__c,zvod_Account_Credentials_vod_c_vod__c,zvod_Account_Preferred_Name_vod_c_vod__c,zvod_Account_Sample_Status_vod_c_vod__c,zvod_Attendees_vod__c,zvod_Key_Messages_vod__c,zvod_Detailing_vod__c,zvod_Expenses_vod__c,zvod_Followup_vod__c,zvod_Samples_vod__c,zvod_Save_vod__c,zvod_Submit_vod__c,zvod_Delete_vod__c,Activity_Type__c,Significant_Event__c,Location_vod__c,Subject_vod__c,Unlock_vod__c,Call_Datetime_vod__c,Disbursed_To_vod__c,Disclaimer_vod__c,Request_Receipt_vod__c,Signature_Date_vod__c,Signature_vod__c,Territory_vod__c,Submitted_By_Mobile_vod__c,Call_Type_vod__c,Add_Key_Message_vod__c,Address_vod__c,Attendees_vod__c,Attendee_Type_vod__c,Call_Date_vod__c,Detailed_Products_vod__c,No_Disbursement_vod__c,Parent_Call_vod__c,User_vod__c,Contact_vod__c,zvod_Entity_vod__c,Medical_Event_vod__c,Mobile_Created_Datetime_vod__c,Mobile_Last_Modified_Datetime_vod__c,License_vod__c,Is_Parent_Call_vod__c,Entity_Display_Name_vod__c,Override_Lock_vod__c,Last_Device_vod__c,Ship_Address_Line_1_vod__c,Ship_Address_Line_2_vod__c,Ship_City_vod__c,Ship_Country_vod__c,Ship_License_Expiration_Date_vod__c,Ship_License_Status_vod__c,Ship_License_vod__c,Ship_State_vod__c,Ship_To_Address_vod__c,Ship_Zip_vod__c,Ship_To_Address_Text_vod__c,CLM_vod__c,zvod_CLMDetails_vod__c,Is_Sampled_Call_vod__c,zvod_Surveys_vod__c,Presentations_vod__c,Entity_Reference_Id_vod__c,Error_Reference_Call_vod__c,Duration_vod__c,Color_vod__c,Allowed_Products_vod__c,zvod_Attachments_vod__c,Sample_Card_Reason_vod__c,ASSMCA_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,DEA_Address_Line_1_vod__c,DEA_Address_Line_2_vod__c,DEA_Address_vod__c,DEA_City_vod__c,DEA_Expiration_Date_vod__c,DEA_State_vod__c,DEA_Zip_4_vod__c,DEA_Zip_vod__c,DEA_vod__c,Ship_Zip_4_vod__c,State_vod__c,Zip_4_vod__c,Zip_vod__c,Sample_Send_Card_vod__c,zvod_Address_vod_c_DEA_Status_vod_c_vod__c,Signature_Page_Image_vod__c,Credentials_vod__c,Salutation_vod__c,zvod_Account_Call_Reminder_vod_c_vod__c,MSJ_Meeting_Duration__c,MSJ_Double_Visit_AM__c,zvod_Business_Account_vod__c,Product_Priority_1_vod__c,Product_Priority_2_vod__c,Product_Priority_3_vod__c,Product_Priority_4_vod__c,Product_Priority_5_vod__c,zvod_More_Actions_vod__c,zvod_Call_Conflict_Status_vod__c,Signature_Timestamp_vod__c,Expense_Amount_vod__c,Total_Expense_Attendees_Count_vod__c,Attendee_list_vod__c,Expense_Post_Status_vod__c,Attendee_Post_Status_vod__c,Expense_System_External_ID_vod__c,Incurred_Expense_vod__c,Assigner_vod__c,Assignment_Datetime_vod__c,zvod_Call_Objective_vod__c,Signature_Location_Longitude_vod__c,Signature_Location_Latitude_vod__c,Location_Services_Status_vod__c,MSJ_Double_Visit_Other__c,MSJ_Comment__c,MSJ_For_Reporting__c,MSJ_Number_of_Attendees__c,MSJ_Main_Dept__c,Planned_Type_vjh__c,Cobrowse_URL_Participant_vod__c,MSJ_Activity_Method_Text__c,MSJ_Activity_Method__c,MSJ_Classification__c,MSJ_Double_Visit_MSL__c,MSJ_MSL_Comment_for_MR__c,MSJ_APD__c,Medical_Inquiry_vod__c,MSJ_Call_Type_MSJ__c,MSJ_Prescription_Request__c,MSJ_Patient_Follow__c,Child_Account_Id_vod__c,Child_Account_vod__c,Location_Id_vod__c,Location_Name_vod__c,MSJ_Comments_about_technology__c,Remote_Meeting_vod__c,Veeva_Remote_Meeting_Id_vod__c,MSJ_Activity_Type_Report__c,MSJ_Activity_Type__c,MSJ_Activity__c,MSJ_Comments__c,MSJ_Therapy__c,MSJ_Time_Hrs__c,EMDS_CO_Reference__c,EMDS_Call_Sub_Type__c,EMDS_Call_Type__c,EMDS_Call_Unsuccessful__c,EMDS_Congress_Type__c,EMDS_Date_of_Service__c,EMDS_Fertility_DisInterest__c,EMDS_Fertility_Interest__c,EMDS_Installed_Equipment__c,EMDS_Pipeline_Stage_Value__c,EMDS_Pipeline_Stage__c,EMDS_Pipeline__c,EMDS_Reason_for_Call__c,EMDS_Training_Completed__c,MSJ_BrainStorming__c,MSJ_SIPAGL_1A__c,MSJ_SIPAGL_1B__c,MSJ_SIPAGL_2__c,MSJ_SIPAGL_3__c,MSJ_SIPAGL_4A__c,MSJ_SIPAGL_5A__c,MSJ_SIPAGL_comment__c,MSJ_SIPAGL_4B__c,MSJ_SIPAGL_5B__c,Location_Text_vod__c,Call_Channel_vod__c,MSJ_Scientific_Interaction__c,MSJ_Activity_Email_Reply__c,MSJ_Interaction_Duration__c,MSJ_SIPAGL_1A_date__c,MSJ_CoPromotion__c,Call_Channel_Formula_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,call_comments_vod__c,sample_card_vod__c,add_detail_vod__c,property_vod__c,account_vod__c,zvod_product_discussion_vod__c,status_vod__c,parent_address_vod__c,account_plan_vod__c,zvod_save_new_vod__c,next_call_notes_vod__c,pre_call_notes_vod__c,mobile_id_vod__c,zvod_account_credentials_vod_c_vod__c,zvod_account_preferred_name_vod_c_vod__c,zvod_account_sample_status_vod_c_vod__c,zvod_attendees_vod__c,zvod_key_messages_vod__c,zvod_detailing_vod__c,zvod_expenses_vod__c,zvod_followup_vod__c,zvod_samples_vod__c,zvod_save_vod__c,zvod_submit_vod__c,zvod_delete_vod__c,activity_type__c,significant_event__c,location_vod__c,subject_vod__c,unlock_vod__c,call_datetime_vod__c,disbursed_to_vod__c,disclaimer_vod__c,request_receipt_vod__c,signature_date_vod__c,signature_vod__c,territory_vod__c,submitted_by_mobile_vod__c,call_type_vod__c,add_key_message_vod__c,address_vod__c,attendees_vod__c,attendee_type_vod__c,call_date_vod__c,detailed_products_vod__c,no_disbursement_vod__c,parent_call_vod__c,user_vod__c,contact_vod__c,zvod_entity_vod__c,medical_event_vod__c,mobile_created_datetime_vod__c,mobile_last_modified_datetime_vod__c,license_vod__c,is_parent_call_vod__c,entity_display_name_vod__c,override_lock_vod__c,last_device_vod__c,ship_address_line_1_vod__c,ship_address_line_2_vod__c,ship_city_vod__c,ship_country_vod__c,ship_license_expiration_date_vod__c,ship_license_status_vod__c,ship_license_vod__c,ship_state_vod__c,ship_to_address_vod__c,ship_zip_vod__c,ship_to_address_text_vod__c,clm_vod__c,zvod_clmdetails_vod__c,is_sampled_call_vod__c,zvod_surveys_vod__c,presentations_vod__c,entity_reference_id_vod__c,error_reference_call_vod__c,duration_vod__c,color_vod__c,allowed_products_vod__c,zvod_attachments_vod__c,sample_card_reason_vod__c,assmca_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,dea_address_line_1_vod__c,dea_address_line_2_vod__c,dea_address_vod__c,dea_city_vod__c,dea_expiration_date_vod__c,dea_state_vod__c,dea_zip_4_vod__c,dea_zip_vod__c,dea_vod__c,ship_zip_4_vod__c,state_vod__c,zip_4_vod__c,zip_vod__c,sample_send_card_vod__c,zvod_address_vod_c_dea_status_vod_c_vod__c,signature_page_image_vod__c,credentials_vod__c,salutation_vod__c,zvod_account_call_reminder_vod_c_vod__c,msj_meeting_duration__c,msj_double_visit_am__c,zvod_business_account_vod__c,product_priority_1_vod__c,product_priority_2_vod__c,product_priority_3_vod__c,product_priority_4_vod__c,product_priority_5_vod__c,zvod_more_actions_vod__c,zvod_call_conflict_status_vod__c,signature_timestamp_vod__c,expense_amount_vod__c,total_expense_attendees_count_vod__c,attendee_list_vod__c,expense_post_status_vod__c,attendee_post_status_vod__c,expense_system_external_id_vod__c,incurred_expense_vod__c,assigner_vod__c,assignment_datetime_vod__c,zvod_call_objective_vod__c,signature_location_longitude_vod__c,signature_location_latitude_vod__c,location_services_status_vod__c,msj_double_visit_other__c,msj_comment__c,msj_for_reporting__c,msj_number_of_attendees__c,msj_main_dept__c,planned_type_vjh__c,cobrowse_url_participant_vod__c,msj_activity_method_text__c,msj_activity_method__c,msj_classification__c,msj_double_visit_msl__c,msj_msl_comment_for_mr__c,msj_apd__c,medical_inquiry_vod__c,msj_call_type_msj__c,msj_prescription_request__c,msj_patient_follow__c,child_account_id_vod__c,child_account_vod__c,location_id_vod__c,location_name_vod__c,msj_comments_about_technology__c,remote_meeting_vod__c,veeva_remote_meeting_id_vod__c,msj_activity_type_report__c,msj_activity_type__c,msj_activity__c,msj_comments__c,msj_therapy__c,msj_time_hrs__c,emds_co_reference__c,emds_call_sub_type__c,emds_call_type__c,emds_call_unsuccessful__c,emds_congress_type__c,emds_date_of_service__c,emds_fertility_dis_interest__c,emds_fertility_interest__c,emds_installed_equipment__c,emds_pipeline_stage_value__c,emds_pipeline_stage__c,emds_pipeline__c,emds_reason_for_call__c,emds_training_completed__c,msj_brain_storming__c,msj_sipagl_1_a__c,msj_sipagl_1_b__c,msj_sipagl_2__c,msj_sipagl_3__c,msj_sipagl_4_a__c,msj_sipagl_5_a__c,msj_sipagl_comment__c,msj_sipagl_4_b__c,msj_sipagl_5_b__c,location_text_vod__c,call_channel_vod__c,msj_scientific_interaction__c,msj_activity_email_reply__c,msj_interaction_duration__c,msj_sipagl_1_a_date__c,msj_co_promotion__c,call_channel_formula_vod__c +src02.crm_call2_vod__c +org02.crm_call2_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt new file mode 100644 index 00000000..e2b56535 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +34 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Answer_vod__c,Call_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Popup_Opened_vod__c,Possible_Answers_vod__c,Presentation_ID_vod__c,Product_vod__c,Range_Value_vod__c,Rollover_Entered_vod__c,Selected_Items_vod__c,CLM_ID_vod__c,Question_vod__c,Survey_Type_vod__c,Text_Entered_vod__c,Toggle_Button_On_vod__c,Track_Element_Description_vod__c,Track_Element_Id_vod__c,Track_Element_Type_vod__c,Usage_Duration_vod__c,Usage_Start_Time_vod__c,AuxillaryId_vod__c,ParentId_vod__c,Revision_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,answer_vod__c,call_vod__c,key_message_vod__c,mobile_id_vod__c,popup_opened_vod__c,possible_answers_vod__c,presentation_id_vod__c,product_vod__c,range_value_vod__c,rollover_entered_vod__c,selected_items_vod__c,clm_id_vod__c,question_vod__c,survey_type_vod__c,text_entered_vod__c,toggle_button_on_vod__c,track_element_description_vod__c,track_element_id_vod__c,track_element_type_vod__c,usage_duration_vod__c,usage_start_time_vod__c,auxillary_id_vod__c,parent_id_vod__c,revision_vod__c +src02.crm_call_clickstream_vod__c +org02.crm_call_clickstream_vod__c + + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c.txt b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt new file mode 100644 index 00000000..876bef05 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +57 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Parent_Account_vod__c,Child_Account_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Primary_vod__c,Copy_Address_vod__c,Child_Name_vod__c,Parent_Name_vod__c,Parent_Child_Name_vod__c,Account_Code__c,Child_Department__c,Child_Role__c,Child_Title__c,Child_Remark__c,MSJ_1C_segment__c,MSJ_BU_FE__c,MSJ_BU_ONC__c,MSJ_BVC_Segment__c,MSJ_CE_segment__c,MSJ_Child_Account_Link__c,MSJ_DCF_DR_Code__c,MSJ_DCF_HP_Code__c,MSJ_DR_Change_Log__c,MSJ_Delete__c,MSJ_Department__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_External_ID__c,MSJ_Fax__c,MSJ_GF2_segment__c,MSJ_GF_segment__c,MSJ_KOL_LOL__c,MSJ_KOL__c,MSJ_ONC_HP_Segment__c,MSJ_OPTIN_target__c,MSJ_OV_segment__c,MSJ_Parent_Child_Name__c,MSJ_Phone__c,MSJ_Remark__c,MSJ_Target_Call_Num__c,MSJ_Tech_segment__c,MSJ_Title__c,MSJ_XLK_Segment__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,parent_account_vod__c,child_account_vod__c,external_id_vod__c,mobile_id_vod__c,primary_vod__c,copy_address_vod__c,child_name_vod__c,parent_name_vod__c,parent_child_name_vod__c,account_code__c,child_department__c,child_role__c,child_title__c,child_remark__c,msj_1_c_segment__c,msj_bu_fe__c,msj_bu_onc__c,msj_bvc_segment__c,msj_ce_segment__c,msj_child_account_link__c,msj_dcf_dr_code__c,msj_dcf_hp_code__c,msj_dr_change_log__c,msj_delete__c,msj_department__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_external_id__c,msj_fax__c,msj_gf2_segment__c,msj_gf_segment__c,msj_kol_lol__c,msj_kol__c,msj_onc_hp_segment__c,msj_optin_target__c,msj_ov_segment__c,msj_parent_child_name__c,msj_phone__c,msj_remark__c,msj_target_call_num__c,msj_tech_segment__c,msj_title__c,msj_xlk_segment__c +src02.crm_child_account_vod__c +org02.crm_child_account_vod__c +CRM_Child_Account_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql new file mode 100644 index 00000000..cac33f47 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_child_account_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt new file mode 100644 index 00000000..422a6926 --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Clm_Presentation_vod__c,Key_Message_vod__c,Display_Order_vod__c,Sub_Presentation_vod__c,Mobile_ID_vod__c,External_ID_vod__c,VExternal_Id_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,clm_presentation_vod__c,key_message_vod__c,display_order_vod__c,sub_presentation_vod__c,mobile_id_vod__c,external_id_vod__c,vexternal_id_vod__c +src02.crm_clm_presentation_slide_vod__c +org02.crm_clm_presentation_slide_vod__c + + diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt new file mode 100644 index 00000000..364a308b --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Presentation_Id_vod__c,Product_vod__c,Default_Presentation_vod__c,Training_vod__c,ParentId_vod__c,Hidden_vod__c,Type_vod__c,Approved_vod__c,Copied_From_vod__c,Copy_Date_vod__c,Survey_vod__c,Original_Record_ID_vod__c,Directory_vod__c,End_Date_vod__c,Start_Date_vod__c,Status_vod__c,VExternal_Id_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Version_vod__c,Enable_Survey_Overlay_vod__c,Description_vod__c,Keywords_vod__c,Content_Channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,presentation_id_vod__c,product_vod__c,default_presentation_vod__c,training_vod__c,parent_id_vod__c,hidden_vod__c,type_vod__c,approved_vod__c,copied_from_vod__c,copy_date_vod__c,survey_vod__c,original_record_id_vod__c,directory_vod__c,end_date_vod__c,start_date_vod__c,status_vod__c,vexternal_id_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,version_vod__c,enable_survey_overlay_vod__c,description_vod__c,keywords_vod__c,content_channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +src02.crm_clm_presentation_vod__c +org02.crm_clm_presentation_vod__c + + diff --git a/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt new file mode 100644 index 00000000..fd64a473 --- /dev/null +++ b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +144 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Manager_vod__c,Employee_vod__c,Review_Date__c,Review_Period__c,Status__c,Comments__c,Strategic_Planning__c,Customer_Focus__c,Knowledge_Expertise__c,Business_Account_Planning__c,Call_Productivity__c,Overall_Rating__c,MSJ_A01__c,MSJ_A02__c,MSJ_A03__c,MSJ_AM_Memo__c,MSJ_Aid_Total__c,MSJ_C0_GC__c,MSJ_C1_GC__c,MSJ_C2_GC__c,MSJ_Countermeasure__c,MSJ_Deadline__c,MSJ_Double_Visit_Time__c,MSJ_Hospital__c,MSJ_K01_FE__c,MSJ_K01_ONC__c,MSJ_K02_FE__c,MSJ_K02_ONC__c,MSJ_K03_FE__c,MSJ_K03_ONC__c,MSJ_K04_FE__c,MSJ_K04_ONC__c,MSJ_K05_FE__c,MSJ_K05_ONC__c,MSJ_K06_FE__c,MSJ_K06_ONC__c,MSJ_K0_GC__c,MSJ_K1_GC__c,MSJ_K2_GC__c,MSJ_Knowledge_Total__c,MSJ_L0_GC__c,MSJ_L1_GC__c,MSJ_L2_GC__c,MSJ_MR_GC__c,MSJ_MR_Problems__c,MSJ_N0_GC__c,MSJ_N1_GC__c,MSJ_N2_GC__c,MSJ_Num_of_DTL__c,MSJ_P01__c,MSJ_P02__c,MSJ_P03__c,MSJ_P04__c,MSJ_P05__c,MSJ_P0_GC__c,MSJ_P1_GC__c,MSJ_P2_GC__c,MSJ_PlanningTotal__c,MSJ_R0_GC__c,MSJ_R1_GC__c,MSJ_R2_GC__c,MSJ_S01__c,MSJ_S02__c,MSJ_S03__c,MSJ_S04__c,MSJ_S05__c,MSJ_S06__c,MSJ_S07__c,MSJ_S08__c,MSJ_S09__c,MSJ_S10__c,MSJ_S11__c,MSJ_S12__c,MSJ_Skill_Total__c,MSJ_After_Call_01__c,MSJ_After_Call_02__c,MSJ_After_Call_03__c,MSJ_After_Call_04__c,MSJ_Closing__c,MSJ_Comment_by_MR__c,MSJ_Confirmed_by_MR__c,MSJ_Createdby__c,MSJ_FT_AM_Name__c,MSJ_Interview_Preparation__c,MSJ_Interview_Reflection__c,MSJ_Notify_To_MR__c,MSJ_Opening__c,MSJ_Others_01_Result__c,MSJ_Others_01__c,MSJ_Others_02_Result__c,MSJ_Others_02__c,MSJ_Patient_Thinking__c,MSJ_Probing__c,MSJ_Supporting__c,MSJ_Patient_Thinking_for_FE__c,MSJ_After_Call_05__c,MSJ_After_Call_06__c,MSJ_After_Call_07__c,MSJ_After_Call_08__c,MSJ_Createdby_FE__c,MSJ_Createdby_ONC__c,MSJ_Development_Level__c,MSJ_Interview_Prep_01__c,MSJ_Interview_Prep_02__c,MSJ_Leadership_Style__c,MSJ_Overcome_01__c,MSJ_Overcome_02__c,MSJ_Overcome_03__c,MSJ_Overcome_04__c,MSJ_Review_01__c,MSJ_Review_02__c,MSJ_SK_01__c,MSJ_SK_02__c,MSJ_SK_03__c,MSJ_SK_04__c,MSJ_SK_05__c,MSJ_SK_06__c,MSJ_SK_07__c,MSJ_SK_08__c,MSJ_SK_09__c,MSJ_SK_10__c,MSJ_Specific_Action__c,MSJ_Training_Point__c,MSJ_Efforts_of_Year__c,MSJ_Efforts_of_Month__c,MSJ_Skill_Task__c,MSJ_Action_of_This_Month__c,MSJ_Achievement_of_This_Month__c,MSJ_Comment_from_AM__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,manager_vod__c,employee_vod__c,review_date__c,review_period__c,status__c,comments__c,strategic_planning__c,customer_focus__c,knowledge_expertise__c,business_account_planning__c,call_productivity__c,overall_rating__c,msj_a01__c,msj_a02__c,msj_a03__c,msj_am_memo__c,msj_aid_total__c,msj_c0_gc__c,msj_c1_gc__c,msj_c2_gc__c,msj_countermeasure__c,msj_deadline__c,msj_double_visit_time__c,msj_hospital__c,msj_k01_fe__c,msj_k01_onc__c,msj_k02_fe__c,msj_k02_onc__c,msj_k03_fe__c,msj_k03_onc__c,msj_k04_fe__c,msj_k04_onc__c,msj_k05_fe__c,msj_k05_onc__c,msj_k06_fe__c,msj_k06_onc__c,msj_k0_gc__c,msj_k1_gc__c,msj_k2_gc__c,msj_knowledge_total__c,msj_l0_gc__c,msj_l1_gc__c,msj_l2_gc__c,msj_mr_gc__c,msj_mr_problems__c,msj_n0_gc__c,msj_n1_gc__c,msj_n2_gc__c,msj_num_of_dtl__c,msj_p01__c,msj_p02__c,msj_p03__c,msj_p04__c,msj_p05__c,msj_p0_gc__c,msj_p1_gc__c,msj_p2_gc__c,msj_planning_total__c,msj_r0_gc__c,msj_r1_gc__c,msj_r2_gc__c,msj_s01__c,msj_s02__c,msj_s03__c,msj_s04__c,msj_s05__c,msj_s06__c,msj_s07__c,msj_s08__c,msj_s09__c,msj_s10__c,msj_s11__c,msj_s12__c,msj_skill_total__c,msj_after_call_01__c,msj_after_call_02__c,msj_after_call_03__c,msj_after_call_04__c,msj_closing__c,msj_comment_by_mr__c,msj_confirmed_by_mr__c,msj_createdby__c,msj_ft_am_name__c,msj_interview_preparation__c,msj_interview_reflection__c,msj_notify_to_mr__c,msj_opening__c,msj_others_01_result__c,msj_others_01__c,msj_others_02_result__c,msj_others_02__c,msj_patient_thinking__c,msj_probing__c,msj_supporting__c,msj_patient_thinking_for_fe__c,msj_after_call_05__c,msj_after_call_06__c,msj_after_call_07__c,msj_after_call_08__c,msj_createdby_fe__c,msj_createdby_onc__c,msj_development_level__c,msj_interview_prep_01__c,msj_interview_prep_02__c,msj_leadership_style__c,msj_overcome_01__c,msj_overcome_02__c,msj_overcome_03__c,msj_overcome_04__c,msj_review_01__c,msj_review_02__c,msj_sk_01__c,msj_sk_02__c,msj_sk_03__c,msj_sk_04__c,msj_sk_05__c,msj_sk_06__c,msj_sk_07__c,msj_sk_08__c,msj_sk_09__c,msj_sk_10__c,msj_specific_action__c,msj_training_point__c,msj_efforts_of_year__c,msj_efforts_of_month__c,msj_skill_task__c,msj_action_of_this_month__c,msj_achievement_of_this_month__c,msj_comment_from_am__c +src02.crm_coaching_report_vod__c +org02.crm_coaching_report_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt new file mode 100644 index 00000000..729c3452 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +22 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_Help_Text_vod__c,Country_vod__c,Inactive_Datetime_vod__c,Language_vod__c,Status_vod__c,Signature_Required_On_Opt_Out_vod__c,Request_Receipt_vod__c,Subscription_Option_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_help_text_vod__c,country_vod__c,inactive_datetime_vod__c,language_vod__c,status_vod__c,signature_required_on_opt_out_vod__c,request_receipt_vod__c,subscription_option_vod__c +src02.crm_consent_header_vod__c +org02.crm_consent_header_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt new file mode 100644 index 00000000..3cc95e31 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Type_vod__c,Detail_Group_Display_Name_vod__c,Detail_Group_vod__c,Display_Order_vod__c,End_Date_vod__c,Group_By_vod__c,Product_Display_Name_vod__c,Product_vod__c,Start_Date_vod__c,Sub_Channel_Description_vod__c,Sub_Channel_Display_Name_vod__c,Sub_Channel_Key_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_type_vod__c,detail_group_display_name_vod__c,detail_group_vod__c,display_order_vod__c,end_date_vod__c,group_by_vod__c,product_display_name_vod__c,product_vod__c,start_date_vod__c,sub_channel_description_vod__c,sub_channel_display_name_vod__c,sub_channel_key_vod__c +src02.crm_consent_line_vod__c +org02.crm_consent_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt new file mode 100644 index 00000000..2a3451a0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_vod__c,Channel_Label_vod__c,Channel_Source_vod__c,Consent_Expires_In_vod__c,Default_Consent_Type_vod__c,Disclaimer_Text_vod__c,Display_Order_vod__c,Product_Preference_vod__c,zvod_Consent_Default_Consent_Text_vod__c,zvod_Consent_Line_vod__c,zvod_Signature_Capture_vod__c,Double_Opt_In_vod__c,zvod_Consent_Activity_Tracking_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_vod__c,channel_label_vod__c,channel_source_vod__c,consent_expires_in_vod__c,default_consent_type_vod__c,disclaimer_text_vod__c,display_order_vod__c,product_preference_vod__c,zvod_consent_default_consent_text_vod__c,zvod_consent_line_vod__c,zvod_signature_capture_vod__c,double_opt_in_vod__c,zvod_consent_activity_tracking_vod__c +src02.crm_consent_type_vod__c +org02.crm_consent_type_vod__c + + diff --git a/s3/data/crm/settings/CRM_Contact.txt b/s3/data/crm/settings/CRM_Contact.txt new file mode 100644 index 00000000..21a9c5dd --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +71 +Id,IsDeleted,MasterRecordId,AccountId,IsPersonAccount,LastName,FirstName,Salutation,Name,OtherStreet,OtherCity,OtherState,OtherPostalCode,OtherCountry,OtherLatitude,OtherLongitude,OtherGeocodeAccuracy,OtherAddress,MailingStreet,MailingCity,MailingState,MailingPostalCode,MailingCountry,MailingLatitude,MailingLongitude,MailingGeocodeAccuracy,MailingAddress,Phone,Fax,MobilePhone,HomePhone,OtherPhone,AssistantPhone,ReportsToId,Email,Title,Department,AssistantName,Birthdate,Description,OwnerId,HasOptedOutOfEmail,HasOptedOutOfFax,DoNotCall,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,LastCURequestDate,LastCUUpdateDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,EmailBouncedReason,EmailBouncedDate,IsEmailBounced,PhotoUrl,Jigsaw,JigsawContactId,IndividualId,Mobile_ID_vod__c,H1Insights__H1_NPI_Value_for_Testing__c,H1Insights__H1_Person_ID__c,H1Insights__H1_Request_Status__c,H1Insights__H1_URL__c,H1Insights__NPI_Number__c,H1Insights__NPI_Number_for_H1_Insights__c,MSJ_Marketing_Cloud_Integration__c +id,is_deleted,master_record_id,account_id,is_person_account,last_name,first_name,salutation,name,other_street,other_city,other_state,other_postal_code,other_country,other_latitude,other_longitude,other_geocode_accuracy,other_address,mailing_street,mailing_city,mailing_state,mailing_postal_code,mailing_country,mailing_latitude,mailing_longitude,mailing_geocode_accuracy,mailing_address,phone,fax,mobile_phone,home_phone,other_phone,assistant_phone,reports_to_id,email,title,department,assistant_name,birthdate,description,owner_id,has_opted_out_of_email,has_opted_out_of_fax,do_not_call,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,last_curequest_date,last_cuupdate_date,may_edit,is_locked,last_viewed_date,last_referenced_date,email_bounced_reason,email_bounced_date,is_email_bounced,photo_url,jigsaw,jigsaw_contact_id,individual_id,mobile_id_vod__c,h1_insights__h1_npi_value_for_testing__c,h1_insights__h1_person_id__c,h1_insights__h1_request_status__c,h1_insights__h1_url__c,h1_insights__npi_number__c,h1_insights__npi_number_for_h1_insights__c,msj_marketing_cloud_integration__c +src02.crm_contact +org02.crm_contact +CRM_Contact_ex.sql + diff --git a/s3/data/crm/settings/CRM_Contact_ex.sql b/s3/data/crm/settings/CRM_Contact_ex.sql new file mode 100644 index 00000000..4b916e23 --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_contact', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt new file mode 100644 index 00000000..d48828a7 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +29 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Applies_To_vod__c,Attribute_Label_vod__c,Attribute_Name_vod__c,Available_Values_vod__c,Description_vod__c,Detail_Group_vod__c,Display_Order_vod__c,External_ID_vod__c,Help_Text_vod__c,Product_vod__c,Read_Only_vod__c,Section_Name_vod__c,Sharing_Group_vod__c,Status_vod__c,Track_Changes_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,applies_to_vod__c,attribute_label_vod__c,attribute_name_vod__c,available_values_vod__c,description_vod__c,detail_group_vod__c,display_order_vod__c,external_id_vod__c,help_text_vod__c,product_vod__c,read_only_vod__c,section_name_vod__c,sharing_group_vod__c,status_vod__c,track_changes_vod__c +src02.crm_dynamic_attribute_configuration_vod__c +org02.crm_dynamic_attribute_configuration_vod__c + + diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt new file mode 100644 index 00000000..adea9267 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Active_vod__c,Dynamic_Attribute_Configuration_vod__c,Dynamic_Attribute_Description_vod__c,Dynamic_Attribute_Help_Text_vod__c,Dynamic_Attribute_Label_vod__c,Dynamic_Attribute_Name_vod__c,Dynamic_Attribute_Record_Type_vod__c,Dynamic_Attribute_Value_Checkbox_vod__c,Dynamic_Attribute_Value_Date_Time_vod__c,Dynamic_Attribute_Value_Date_vod__c,Dynamic_Attribute_Value_Number_vod__c,Dynamic_Attribute_Value_Text_Area_vod__c,Dynamic_Attribute_Value_Text_vod__c,Mobile_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,active_vod__c,dynamic_attribute_configuration_vod__c,dynamic_attribute_description_vod__c,dynamic_attribute_help_text_vod__c,dynamic_attribute_label_vod__c,dynamic_attribute_name_vod__c,dynamic_attribute_record_type_vod__c,dynamic_attribute_value_checkbox_vod__c,dynamic_attribute_value_date_time_vod__c,dynamic_attribute_value_date_vod__c,dynamic_attribute_value_number_vod__c,dynamic_attribute_value_text_area_vod__c,dynamic_attribute_value_text_vod__c,mobile_id_vod__c +src02.crm_dynamic_attribute_vod__c +org02.crm_dynamic_attribute_vod__c + + diff --git a/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt new file mode 100644 index 00000000..2c801e06 --- /dev/null +++ b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +36 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Activity_DateTime_vod__c,City_vod__c,Click_URL_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Device_Type_vod__c,Event_Msg_vod__c,Event_type_vod__c,IP_Address_vod__c,Region_vod__c,User_Agent_vod__c,Vault_Doc_ID_vod__c,Vault_Doc_Name_vod__c,Vault_Document_Major_Version_vod__c,Vault_Document_Minor_Version_vod__c,Vault_Document_Number_vod__c,Vault_Document_Title_vod__c,Vault_Instance_ID_vod__c,Preference_Modification_vod__c,Approved_Document_vod__c,Link_Name_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,activity_date_time_vod__c,city_vod__c,click_url_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,device_type_vod__c,event_msg_vod__c,event_type_vod__c,ip_address_vod__c,region_vod__c,user_agent_vod__c,vault_doc_id_vod__c,vault_doc_name_vod__c,vault_document_major_version_vod__c,vault_document_minor_version_vod__c,vault_document_number_vod__c,vault_document_title_vod__c,vault_instance_id_vod__c,preference_modification_vod__c,approved_document_vod__c,link_name_vod__c +src02.crm_email_activity_vod__c +org02.crm_email_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt new file mode 100644 index 00000000..d5d6c0dc --- /dev/null +++ b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +31 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Attendee_vod__c,User_vod__c,Medical_Event_vod__c,Attendee_Type_vod__c,Status_vod__c,Contact_vod__c,Attendee_Name_vod__c,Account_vod__c,Start_Date_vod__c,Signature_vod__c,Signature_Datetime_vod__c,MSJ_Copy_Account_Type__c,MSJ_Evaluation__c,MSJ_Hospital__c,MSJ_Role__c,Mobile_ID_vod__c,MSJ_Evaluation_Comment__c,Position_vod__c,Talk_Title_vod__c,MSJ_Attendee_Reaction__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,attendee_vod__c,user_vod__c,medical_event_vod__c,attendee_type_vod__c,status_vod__c,contact_vod__c,attendee_name_vod__c,account_vod__c,start_date_vod__c,signature_vod__c,signature_datetime_vod__c,msj_copy_account_type__c,msj_evaluation__c,msj_hospital__c,msj_role__c,mobile_id_vod__c,msj_evaluation_comment__c,position_vod__c,talk_title_vod__c,msj_attendee_reaction__c +src02.crm_event_attendee_vod__c +org02.crm_event_attendee_vod__c + + diff --git a/s3/data/crm/settings/CRM_Group.txt b/s3/data/crm/settings/CRM_Group.txt new file mode 100644 index 00000000..94f4d0ca --- /dev/null +++ b/s3/data/crm/settings/CRM_Group.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,RelatedId,Type,Email,OwnerId,DoesSendEmailToMembers,DoesIncludeBosses,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp +id,name,developer_name,related_id,type,email,owner_id,does_send_email_to_members,does_include_bosses,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_group +org02.crm_group +CRM_Group_ex.sql + diff --git a/s3/data/crm/settings/CRM_Group_ex.sql b/s3/data/crm/settings/CRM_Group_ex.sql new file mode 100644 index 00000000..5e50dab6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Group_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_group', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt new file mode 100644 index 00000000..1c1f1df0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Strategy_vod__c,Display_Order_vod__c,Active_vod__c,Category_vod__c,Vehicle_vod__c,CLM_ID_vod__c,Custom_Reaction_vod__c,Slide_Version_vod__c,Language_vod__c,Media_File_CRC_vod__c,Media_File_Name_vod__c,Media_File_Size_vod__c,Segment_vod__c,Disable_Actions_vod__c,VExternal_Id_vod__c,CDN_Path_vod__c,Status_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Is_Shared_Resource_vod__c,iOS_Viewer_vod__c,iOS_Resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_strategy_vod__c,display_order_vod__c,active_vod__c,category_vod__c,vehicle_vod__c,clm_id_vod__c,custom_reaction_vod__c,slide_version_vod__c,language_vod__c,media_file_crc_vod__c,media_file_name_vod__c,media_file_size_vod__c,segment_vod__c,disable_actions_vod__c,vexternal_id_vod__c,cdn_path_vod__c,status_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,is_shared_resource_vod__c,i_os_viewer_vod__c,i_os_resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +src02.crm_key_message_vod__c +org02.crm_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt new file mode 100644 index 00000000..c295fc5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +18 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Line__c,MSJ_Medical_Regimen__c,Mobile_ID_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_line__c,msj_medical_regimen__c,mobile_id_vod__c +src02.crm_msj_hospital_medical_regimen__c +org02.crm_msj_hospital_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt new file mode 100644 index 00000000..a50bf1f3 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Medical_Inquiry__c,MSJ_Close__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Text__c,MSJ_MEC_User__c,MSJ_MSL_Manager__c,MSJ_MSL_User__c,MSJ_Notice_to_MR__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply__c,MSJ_AE_Infomation__c,MSJ_Cancel__c,MSJ_FAQ_number_c__c,MSJ_Return_Call__c,MSJ_Inquiry_Origin__c,First_Response__c,Inquiry_Created_Date__c,Inquiry_Type_1__c,Inquiry_Type_2__c,MSJ_First_User__c,MSJ_MEC_Comment__c,MSJ_Send_Email__c,MSJ_Temp_Aggregated_Info__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_Inquiry_Date__c,MSJ_MSL_Support__c,MSJ_Handover_Comment__c,MSJ_Handover_Email__c,MSJ_Material_Requirement__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_medical_inquiry__c,msj_close__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_text__c,msj_mec_user__c,msj_msl_manager__c,msj_msl_user__c,msj_notice_to_mr__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply__c,msj_ae_infomation__c,msj_cancel__c,msj_faq_number_c__c,msj_return_call__c,msj_inquiry_origin__c,first_response__c,inquiry_created_date__c,inquiry_type_1__c,inquiry_type_2__c,msj_first_user__c,msj_mec_comment__c,msj_send_email__c,msj_temp_aggregated_info__c,msj_ae_report__c,msj_background__c,msj_inquiry_date__c,msj_msl_support__c,msj_handover_comment__c,msj_handover_email__c,msj_material_requirement__c +src02.crm_msj_inquiry_assignment__c +org02.crm_msj_inquiry_assignment__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt new file mode 100644 index 00000000..89df0b85 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Account_Name__c,MSJ_Activity_Results_Summary__c,MSJ_MUID__c,MSJ_Next_Week_Action_What__c,MSJ_Next_Week_Action_When__c,MSJ_Next_Week_Action_Where__c,MSJ_Next_Week_Action_Who__c,MSJ_Report_Week__c,MSJ_Target_Patient_Count__c,Mobile_ID_vod__c,MSJ_Activity_Results_Summary_HN__c,MSJ_Next_Week_Action_Where_HN__c,MSJ_Next_Week_Action_Who_HN__c,MSJ_Next_Week_Action_What_HN__c,MSJ_Next_Week_Action_When_HN__c,MSJ_Target_Patient_Count_HN__c,MSJ_Activity_Results_Summary_MCC__c,MSJ_Next_Week_Action_Where_MCC__c,MSJ_Next_Week_Action_Who_MCC__c,MSJ_Next_Week_Action_What_MCC__c,MSJ_Next_Week_Action_When_MCC__c,MSJ_Target_Patient_Count_MCC__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_account_name__c,msj_activity_results_summary__c,msj_muid__c,msj_next_week_action_what__c,msj_next_week_action_when__c,msj_next_week_action_where__c,msj_next_week_action_who__c,msj_report_week__c,msj_target_patient_count__c,mobile_id_vod__c,msj_activity_results_summary_hn__c,msj_next_week_action_where_hn__c,msj_next_week_action_who_hn__c,msj_next_week_action_what_hn__c,msj_next_week_action_when_hn__c,msj_target_patient_count_hn__c,msj_activity_results_summary_mcc__c,msj_next_week_action_where_mcc__c,msj_next_week_action_who_mcc__c,msj_next_week_action_what_mcc__c,msj_next_week_action_when_mcc__c,msj_target_patient_count_mcc__c +src02.crm_msj_mr_weekly_report__c +org02.crm_msj_mr_weekly_report__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt new file mode 100644 index 00000000..5f1546f2 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Medical_Event__c,MSJ_Evaluation_Comment__c,MSJ_Evaluation__c,Mobile_ID_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_medical_event__c,msj_evaluation_comment__c,msj_evaluation__c,mobile_id_vod__c +src02.crm_msj_medical_event_evaluation__c +org02.crm_msj_medical_event_evaluation__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt new file mode 100644 index 00000000..321b8a5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Remark__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_remark__c +src02.crm_msj_medical_regimen__c +org02.crm_msj_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Patient__c.txt b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt new file mode 100644 index 00000000..8b1bac96 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_CRC_Group__c,MSJ_Casus_or_Transfer_Point__c,MSJ_Entry_Date__c,MSJ_IST_Name__c,MSJ_Indication__c,MSJ_Line__c,MSJ_MR_Comments__c,MSJ_MUID__c,MSJ_Medical_Regimen__c,MSJ_Month__c,MSJ_Report_Comments__c,MSJ_Start_Date_Of_Administration__c,MSJ_Year__c,Mobile_ID_vod__c,MSJ_CRC_RAS_KRAS__c,MSJ_End_Date_Of_Administration__c,MSJ_End_Date_of_Stop_Administration__c,MSJ_HN_Hospitalized_Type__c,MSJ_Start_Date_of_Stop_Administration__c,MSJ_Patient_Status__c,MSJ_Patient_TA__c,MSJ_Child_Account_Name__c,MSJ_Child_Account__c,MSJ_Parent_Account_Name__c,MSJ_Parent_Child_Name__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_crc_group__c,msj_casus_or_transfer_point__c,msj_entry_date__c,msj_ist_name__c,msj_indication__c,msj_line__c,msj_mr_comments__c,msj_muid__c,msj_medical_regimen__c,msj_month__c,msj_report_comments__c,msj_start_date_of_administration__c,msj_year__c,mobile_id_vod__c,msj_crc_ras_kras__c,msj_end_date_of_administration__c,msj_end_date_of_stop_administration__c,msj_hn_hospitalized_type__c,msj_start_date_of_stop_administration__c,msj_patient_status__c,msj_patient_ta__c,msj_child_account_name__c,msj_child_account__c,msj_parent_account_name__c,msj_parent_child_name__c +src02.crm_msj_patient__c +org02.crm_msj_patient__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt new file mode 100644 index 00000000..159a475b --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Primary_Product__c,Description_vod__c,Start_Date_vod__c,Location__c,End_Date_vod__c,Secondary_Product__c,Website__c,Active_vod__c,Event_Type__c,MSJ_Area__c,MSJ_Business_Unit__c,MSJ_Comment__c,MSJ_Company__c,MSJ_Expense_App_No__c,MSJ_Form__c,MSJ_HQ_Area__c,MSJ_Location__c,MSJ_MR__c,MSJ_Number_of_Attendee__c,MSJ_Product__c,MSJ_Site__c,MSJ_Type__c,MSJ_Number_of_Attendee_Auto_Calc__c,MSJ_Number_of_Attendee_Invited__c,Account_vod__c,MSJ_MUID__c,Country_Name_vod__c,MSJ_CE_SIPAGL_Updater__c,MSJ_CE_SIPAGL_1A__c,MSJ_CE_SIPAGL_1B__c,MSJ_CE_SIPAGL_2__c,MSJ_CE_SIPAGL_3__c,MSJ_CE_SIPAGL_4__c,MSJ_CE_SIPAGL_5__c,MSJ_CE_SIPAGL_Comment__c,MSJ_CE_SIPAGL_1A_date__c,MSJ_CE_SIPAGL_6__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,primary_product__c,description_vod__c,start_date_vod__c,location__c,end_date_vod__c,secondary_product__c,website__c,active_vod__c,event_type__c,msj_area__c,msj_business_unit__c,msj_comment__c,msj_company__c,msj_expense_app_no__c,msj_form__c,msj_hq_area__c,msj_location__c,msj_mr__c,msj_number_of_attendee__c,msj_product__c,msj_site__c,msj_type__c,msj_number_of_attendee_auto_calc__c,msj_number_of_attendee_invited__c,account_vod__c,msj_muid__c,country_name_vod__c,msj_ce_sipagl_updater__c,msj_ce_sipagl_1_a__c,msj_ce_sipagl_1_b__c,msj_ce_sipagl_2__c,msj_ce_sipagl_3__c,msj_ce_sipagl_4__c,msj_ce_sipagl_5__c,msj_ce_sipagl_comment__c,msj_ce_sipagl_1_a_date__c,msj_ce_sipagl_6__c +src02.crm_medical_event_vod__c +org02.crm_medical_event_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt new file mode 100644 index 00000000..cafca6d9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +67 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,Delivery_Method_vod__c,Email_vod__c,Fax_Number_vod__c,Inquiry_Text__c,Lock_vod__c,Mobile_ID_vod__c,Phone_Number_vod__c,Product__c,Rush_Delivery__c,Signature_Date_vod__c,Signature_vod__c,State_vod__c,Status_vod__c,Zip_vod__c,zvod_Delivery_Method_vod__c,zvod_Disclaimer_vod__c,Submitted_By_Mobile_vod__c,Disclaimer_vod__c,Entity_Reference_Id_vod__c,Call2_vod__c,Country_vod__c,Override_Lock_vod__c,MSJ_Department__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Assignment__c,MSJ_Inquiry_Date__c,MSJ_Inquiry_Input_Manager__c,MSJ_Inquiry_Input_User__c,MSJ_MSL_Manager__c,MSJ_Notice_to_MR__c,MSJ_Person_in_charge_1__c,MSJ_Person_in_charge_2__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply_User__c,MSJ_Reply__c,MSJ_Title__c,MSJ_AE_Infomation__c,MSJ_FAQ_Number_Report__c,MSJ_Return_Call_Report__c,MSJ_Inquiry_Origin_Report__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_MSL_Support__c,MSJ_Material_Requirement__c,MSJ_Hospital_Name_Disp__c,MSJ_Hospital__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,delivery_method_vod__c,email_vod__c,fax_number_vod__c,inquiry_text__c,lock_vod__c,mobile_id_vod__c,phone_number_vod__c,product__c,rush_delivery__c,signature_date_vod__c,signature_vod__c,state_vod__c,status_vod__c,zip_vod__c,zvod_delivery_method_vod__c,zvod_disclaimer_vod__c,submitted_by_mobile_vod__c,disclaimer_vod__c,entity_reference_id_vod__c,call2_vod__c,country_vod__c,override_lock_vod__c,msj_department__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_assignment__c,msj_inquiry_date__c,msj_inquiry_input_manager__c,msj_inquiry_input_user__c,msj_msl_manager__c,msj_notice_to_mr__c,msj_person_in_charge_1__c,msj_person_in_charge_2__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply_user__c,msj_reply__c,msj_title__c,msj_ae_infomation__c,msj_faq_number_report__c,msj_return_call_report__c,msj_inquiry_origin_report__c,msj_ae_report__c,msj_background__c,msj_msl_support__c,msj_material_requirement__c,msj_hospital_name_disp__c,msj_hospital__c +src02.crm_medical_inquiry_vod__c +org02.crm_medical_inquiry_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt new file mode 100644 index 00000000..0c477d5d --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +54 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Clinical_Trial_vod__c,Date_vod__c,Description_vod__c,Entity_Reference_Id_vod__c,Interaction_vod__c,Medical_Event_vod__c,Mobile_ID_vod__c,Other_Source_vod__c,Override_Lock_vod__c,Publication_vod__c,Status_vod__c,Summary_vod__c,Unlock_vod__c,Commercial_Medical__c,MSJ_Level_1A__c,MSJ_Level_1B__c,MSJ_Level_2A__c,MSJ_Level_2B__c,MSJ_Level_3A__c,MSJ_Level_3B__c,MSJ_Level_4A__c,MSJ_Level_4B__c,MSJ_SubStatus__c,MSJ_Type_A__c,MSJ_Type_B__c,MSJ_Description_Backup__c,MSJ_Country__c,MSJ_Received_at_Boomi__c,MSJ_Level_1A_Value__c,MSJ_Level_1B_Value__c,MSJ_Level_2A_Value__c,MSJ_Level_2B_Value__c,MSJ_Level_3A_Value__c,MSJ_Level_3B_Value__c,MSJ_Level_4A_Value__c,MSJ_Level_4B_Value__c,MSJ_Hospital_ID__c,MSJ_Hospital_Name__c,MSJ_Hospital__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,clinical_trial_vod__c,date_vod__c,description_vod__c,entity_reference_id_vod__c,interaction_vod__c,medical_event_vod__c,mobile_id_vod__c,other_source_vod__c,override_lock_vod__c,publication_vod__c,status_vod__c,summary_vod__c,unlock_vod__c,commercial_medical__c,msj_level_1_a__c,msj_level_1_b__c,msj_level_2_a__c,msj_level_2_b__c,msj_level_3_a__c,msj_level_3_b__c,msj_level_4_a__c,msj_level_4_b__c,msj_sub_status__c,msj_type_a__c,msj_type_b__c,msj_description_backup__c,msj_country__c,msj_received_at_boomi__c,msj_level_1_a_value__c,msj_level_1_b_value__c,msj_level_2_a_value__c,msj_level_2_b_value__c,msj_level_3_a_value__c,msj_level_3_b_value__c,msj_level_4_a_value__c,msj_level_4_b_value__c,msj_hospital_id__c,msj_hospital_name__c,msj_hospital__c +src02.crm_medical_insight_vod__c +org02.crm_medical_insight_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt new file mode 100644 index 00000000..1b4ed66a --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Multichannel_Activity_vod__c,Call_vod__c,Custom_vod__c,DateTime_vod__c,Debug_vod__c,Detail_Group_VExternal_Id_vod__c,Detail_Group_vod__c,Duration_vod__c,Event_Subtype_vod__c,Event_Type_vod__c,Key_Message_VExternal_Id_vod__c,Key_Message_vod__c,Multichannel_Content_Asset_Id_vod__c,Multichannel_Content_Asset_Version_vod__c,Multichannel_Content_Asset_vod__c,Multichannel_Content_vod__c,Product_VExternal_Id_vod__c,Product_vod__c,Sent_Email_vod__c,VExternal_Id_vod__c,Video_Last_Viewed_Time_vod__c,Video_Length_vod__c,Video_Total_Time_Spent_vod__c,View_Order_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,multichannel_activity_vod__c,call_vod__c,custom_vod__c,date_time_vod__c,debug_vod__c,detail_group_vexternal_id_vod__c,detail_group_vod__c,duration_vod__c,event_subtype_vod__c,event_type_vod__c,key_message_vexternal_id_vod__c,key_message_vod__c,multichannel_content_asset_id_vod__c,multichannel_content_asset_version_vod__c,multichannel_content_asset_vod__c,multichannel_content_vod__c,product_vexternal_id_vod__c,product_vod__c,sent_email_vod__c,vexternal_id_vod__c,video_last_viewed_time_vod__c,video_length_vod__c,video_total_time_spent_vod__c,view_order_vod__c +src02.crm_multichannel_activity_line_vod__c +org02.crm_multichannel_activity_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt new file mode 100644 index 00000000..9072d9e4 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_External_ID_Map_vod__c,Account_vod__c,Call_vod__c,City_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Debug_vod__c,Device_vod__c,IP_Address_vod__c,Multichannel_Activity_vod__c,Referring_Site_vod__c,Region_vod__c,Sent_Email_vod__c,Session_Id_vod__c,Site_vod__c,Start_DateTime_vod__c,Total_Duration_vod__c,URL_vod__c,User_Agent_vod__c,VExternal_Id_vod__c,Viewport_Height_vod__c,Viewport_Width_vod__c,Color_vod__c,Icon_vod__c,MCD_Primary_Key_vod__c,Record_Type_Name_vod__c,MSJ_Date_Opened__c,MSJ_Sent_Date__c,MSJ_Email_Subject__c,MSJ_Opens__c,MSJ_Email_Status__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_external_id_map_vod__c,account_vod__c,call_vod__c,city_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,debug_vod__c,device_vod__c,ip_address_vod__c,multichannel_activity_vod__c,referring_site_vod__c,region_vod__c,sent_email_vod__c,session_id_vod__c,site_vod__c,start_date_time_vod__c,total_duration_vod__c,url_vod__c,user_agent_vod__c,vexternal_id_vod__c,viewport_height_vod__c,viewport_width_vod__c,color_vod__c,icon_vod__c,mcd_primary_key_vod__c,record_type_name_vod__c,msj_date_opened__c,msj_sent_date__c,msj_email_subject__c,msj_opens__c,msj_email_status__c +src02.crm_multichannel_activity_vod__c +org02.crm_multichannel_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt new file mode 100644 index 00000000..be8d8b57 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Capture_Datetime_vod__c,Channel_Value_vod__c,Detail_Group_vod__c,External_ID_vod__c,Last_Device_vod__c,Mobile_ID_vod__c,Opt_Expiration_Date_vod__c,Opt_Type_vod__c,Optout_Event_Type_vod__c,Product_vod__c,Signature_Datetime_vod__c,Signature_ID_vod__c,Signature_vod__c,Sample_Consent_Template_Data_vod__c,Sample_Consent_Template_vod__c,Consent_Line_vod__c,Consent_Type_vod__c,Default_Consent_Text_vod__c,Disclaimer_Text_vod__c,Sub_Channel_Key_vod__c,Consent_Confirm_Datetime_vod__c,Related_Transaction_Id_vod__c,Sent_Email_vod__c,Content_Type_vod__c,Receipt_Email_vod__c,Receipt_Sent_Email_Transaction_Id_vod__c,Receipt_Sent_Email_vod__c,Captured_By_vod__c,Opt_Out_Disclaimer_Text_vod__c,Channel_Source_vod__c,Union_Id_vod__c,User_Last_Notified_vod__c,Sub_Channel_Display_Name__c,MSJ_Consent_Source__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,capture_datetime_vod__c,channel_value_vod__c,detail_group_vod__c,external_id_vod__c,last_device_vod__c,mobile_id_vod__c,opt_expiration_date_vod__c,opt_type_vod__c,optout_event_type_vod__c,product_vod__c,signature_datetime_vod__c,signature_id_vod__c,signature_vod__c,sample_consent_template_data_vod__c,sample_consent_template_vod__c,consent_line_vod__c,consent_type_vod__c,default_consent_text_vod__c,disclaimer_text_vod__c,sub_channel_key_vod__c,consent_confirm_datetime_vod__c,related_transaction_id_vod__c,sent_email_vod__c,content_type_vod__c,receipt_email_vod__c,receipt_sent_email_transaction_id_vod__c,receipt_sent_email_vod__c,captured_by_vod__c,opt_out_disclaimer_text_vod__c,channel_source_vod__c,union_id_vod__c,user_last_notified_vod__c,sub_channel_display_name__c,msj_consent_source__c +src02.crm_multichannel_consent_vod__c +org02.crm_multichannel_consent_vod__c + + diff --git a/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt new file mode 100644 index 00000000..47c71f53 --- /dev/null +++ b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +12 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Product_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,product_vod__c +src02.crm_my_setup_products_vod__c +org02.crm_my_setup_products_vod__c + + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt new file mode 100644 index 00000000..fff7b033 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +9 +Id,ObjectId,Territory2Id,AssociationCause,SobjectType,IsDeleted,LastModifiedDate,LastModifiedById,SystemModstamp +id,object_id,territory2_id,association_cause,sobject_type,is_deleted,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_object_territory2_association +org02.crm_object_territory2_association +CRM_ObjectTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql new file mode 100644 index 00000000..d142c071 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_object_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Product_Group_vod__c.txt b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt new file mode 100644 index 00000000..7b6c6cff --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Catalog_vod__c,Start_Date_vod__c,End_Date_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_catalog_vod__c,start_date_vod__c,end_date_vod__c +src02.crm_product_group_vod__c +org02.crm_product_group_vod__c + + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt new file mode 100644 index 00000000..4629f0eb --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,awareness__c,selling_stage__c,formulary_status__c,movement__c,products_vod__c,segment__c,x12_mo_trx_chg__c,speaker_skills__c,investigator_readiness__c,engagements__c,mobile_id_vod__c,external_id_vod__c,msj_patient__c,detail_group_vod__c,msj_eb_1st_line_liver_meta__c,msj_eb_1st_line_multi_meta__c,msj_eb_2nd_line_mono__c,msj_eb_2nd_line_combination__c,msj_eb_3rd_line_mono__c,msj_eb_3rd_line_combination__c,emds_ability__c,emds_brand_loyalty__c,emds_decision_maker__c,emds_early_tech_adopter__c,emds_influence__c,emds_main_driver__c,emds_priority__c,emds_willingness__c,msj_ktl_type__c,msj_ktl_tier__c,msj_publications__c,msj_clinical_trials__c,msj_speaker_for_medical_events__c,msj_advisor_to_medical_affairs__c,msj_guidelines_treatment_standards__c,msj_therapeutic_area_expertise__c,msj_map_gap__c,msj_associations__c,msj_tier_score__c +src02.crm_product_metrics_vod__c +org02.crm_product_metrics_vod__c +CRM_Product_Metrics_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql new file mode 100644 index 00000000..af2e678e --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_product_metrics_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Product_vod__c.txt b/s3/data/crm/settings/CRM_Product_vod__c.txt new file mode 100644 index 00000000..843cec84 --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consumer_site__c,Product_info__c,Therapeutic_Class_vod__c,Parent_Product_vod__c,Therapeutic_Area_vod__c,Product_Type_vod__c,Require_Key_Message_vod__c,Cost_vod__c,External_ID_vod__c,Manufacturer_vod__c,Company_Product_vod__c,Controlled_Substance_vod__c,Description_vod__c,Sample_Quantity_Picklist_vod__c,Display_Order_vod__c,No_Metrics_vod__c,Distributor_vod__c,Sample_Quantity_Bound_vod__c,Sample_U_M_vod__c,No_Details_vod__c,Quantity_Per_Case_vod__c,Schedule_vod__c,Restricted_vod__c,Pricing_Rule_Quantity_Bound_vod__c,No_Promo_Items_vod__c,User_Aligned_vod__c,Restricted_States_vod__c,Sort_Code_vod__c,No_Cycle_Plans_vod__c,Inventory_Order_UOM_vod__c,Inventory_Quantity_Per_Case_vod__c,VExternal_Id_vod__c,Country__c,MSJ_Product_Classification__c,MSJ_Indication__c,MSJ_Therapeutic_Area__c,MSJ_Global_Brand__c,MSJ_Global_Business_Unit__c,MSJ_Molecules__c,MSJ_SBU__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consumer_site__c,product_info__c,therapeutic_class_vod__c,parent_product_vod__c,therapeutic_area_vod__c,product_type_vod__c,require_key_message_vod__c,cost_vod__c,external_id_vod__c,manufacturer_vod__c,company_product_vod__c,controlled_substance_vod__c,description_vod__c,sample_quantity_picklist_vod__c,display_order_vod__c,no_metrics_vod__c,distributor_vod__c,sample_quantity_bound_vod__c,sample_u_m_vod__c,no_details_vod__c,quantity_per_case_vod__c,schedule_vod__c,restricted_vod__c,pricing_rule_quantity_bound_vod__c,no_promo_items_vod__c,user_aligned_vod__c,restricted_states_vod__c,sort_code_vod__c,no_cycle_plans_vod__c,inventory_order_uom_vod__c,inventory_quantity_per_case_vod__c,vexternal_id_vod__c,country__c,msj_product_classification__c,msj_indication__c,msj_therapeutic_area__c,msj_global_brand__c,msj_global_business_unit__c,msj_molecules__c,msj_sbu__c +src02.crm_product_vod__c +org02.crm_product_vod__c + + diff --git a/s3/data/crm/settings/CRM_Profile.txt b/s3/data/crm/settings/CRM_Profile.txt new file mode 100644 index 00000000..558ce629 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +237 +Id,Name,PermissionsEmailSingle,PermissionsEmailMass,PermissionsEditTask,PermissionsEditEvent,PermissionsExportReport,PermissionsImportPersonal,PermissionsDataExport,PermissionsManageUsers,PermissionsEditPublicFilters,PermissionsEditPublicTemplates,PermissionsModifyAllData,PermissionsManageCases,PermissionsManageSolutions,PermissionsCustomizeApplication,PermissionsEditReadonlyFields,PermissionsRunReports,PermissionsViewSetup,PermissionsTransferAnyEntity,PermissionsNewReportBuilder,PermissionsManageSelfService,PermissionsManageCssUsers,PermissionsActivateContract,PermissionsApproveContract,PermissionsImportLeads,PermissionsManageLeads,PermissionsTransferAnyLead,PermissionsViewAllData,PermissionsEditPublicDocuments,PermissionsViewEncryptedData,PermissionsEditBrandTemplates,PermissionsEditHtmlTemplates,PermissionsManageTranslation,PermissionsDeleteActivatedContract,PermissionsSendSitRequests,PermissionsApiUserOnly,PermissionsManageRemoteAccess,PermissionsCanUseNewDashboardBuilder,PermissionsManageCategories,PermissionsConvertLeads,PermissionsTestInstanceCreate,PermissionsPasswordNeverExpires,PermissionsUseTeamReassignWizards,PermissionsInstallMultiforce,PermissionsPublishMultiforce,PermissionsEditOppLineItemUnitPrice,PermissionsManageTerritories,PermissionsCreateMultiforce,PermissionsBulkApiHardDelete,PermissionsInboundMigrationToolsUser,PermissionsSolutionImport,PermissionsManageCallCenters,PermissionsManageSynonyms,PermissionsOutboundMigrationToolsUser,PermissionsViewContent,PermissionsManageEmailClientConfig,PermissionsEnableNotifications,PermissionsManageDataIntegrations,PermissionsDistributeFromPersWksp,PermissionsViewDataCategories,PermissionsManageDataCategories,PermissionsAuthorApex,PermissionsManageMobile,PermissionsApiEnabled,PermissionsManageCustomReportTypes,PermissionsEditCaseComments,PermissionsTransferAnyCase,PermissionsContentAdministrator,PermissionsCreateWorkspaces,PermissionsManageContentPermissions,PermissionsManageContentProperties,PermissionsManageContentTypes,PermissionsScheduleJob,PermissionsManageExchangeConfig,PermissionsManageAnalyticSnapshots,PermissionsScheduleReports,PermissionsManageBusinessHourHolidays,PermissionsManageDynamicDashboards,PermissionsManageInteraction,PermissionsViewMyTeamsDashboards,PermissionsResetPasswords,PermissionsFlowUFLRequired,PermissionsActivitiesAccess,PermissionsEmailTemplateManagement,PermissionsEmailAdministration,PermissionsChatterFileLink,PermissionsForceTwoFactor,PermissionsViewEventLogFiles,PermissionsManageNetworks,PermissionsManageAuthProviders,PermissionsRunFlow,PermissionsCreateCustomizeDashboards,PermissionsCreateDashboardFolders,PermissionsViewPublicDashboards,PermissionsManageDashbdsInPubFolders,PermissionsCreateCustomizeReports,PermissionsCreateReportFolders,PermissionsViewPublicReports,PermissionsManageReportsInPubFolders,PermissionsEditMyDashboards,PermissionsEditMyReports,PermissionsViewAllUsers,PermissionsConnectOrgToEnvironmentHub,PermissionsCreateCustomizeFilters,PermissionsContentHubUser,PermissionsGovernNetworks,PermissionsSalesConsole,PermissionsTwoFactorApi,PermissionsDeleteTopics,PermissionsEditTopics,PermissionsCreateTopics,PermissionsAssignTopics,PermissionsIdentityEnabled,PermissionsIdentityConnect,PermissionsContentWorkspaces,PermissionsCustomMobileAppsAccess,PermissionsViewHelpLink,PermissionsManageProfilesPermissionsets,PermissionsAssignPermissionSets,PermissionsManageRoles,PermissionsManageIpAddresses,PermissionsManageSharing,PermissionsManageInternalUsers,PermissionsManagePasswordPolicies,PermissionsManageLoginAccessPolicies,PermissionsManageCustomPermissions,PermissionsStdAutomaticActivityCapture,PermissionsManageTwoFactor,PermissionsDebugApex,PermissionsLightningExperienceUser,PermissionsConfigCustomRecs,PermissionsSubmitMacrosAllowed,PermissionsBulkMacrosAllowed,PermissionsManageSessionPermissionSets,PermissionsCreateAuditFields,PermissionsUpdateWithInactiveOwner,PermissionsManageSandboxes,PermissionsAutomaticActivityCapture,PermissionsImportCustomObjects,PermissionsDelegatedTwoFactor,PermissionsSelectFilesFromSalesforce,PermissionsModerateNetworkUsers,PermissionsMergeTopics,PermissionsSubscribeToLightningReports,PermissionsManagePvtRptsAndDashbds,PermissionsAllowLightningLogin,PermissionsCampaignInfluence2,PermissionsViewDataAssessment,PermissionsCanApproveFeedPost,PermissionsAllowViewEditConvertedLeads,PermissionsShowCompanyNameAsUserBadge,PermissionsAccessCMC,PermissionsViewHealthCheck,PermissionsManageHealthCheck,PermissionsPackaging2,PermissionsManageCertificates,PermissionsCreateReportInLightning,PermissionsPreventClassicExperience,PermissionsListEmailSend,PermissionsChangeDashboardColors,PermissionsManageRecommendationStrategies,PermissionsManagePropositions,PermissionsSubscribeReportRolesGrps,PermissionsSubscribeDashboardRolesGrps,PermissionsUseWebLink,PermissionsHasUnlimitedNBAExecutions,PermissionsViewOnlyEmbeddedAppUser,PermissionsViewAllActivities,PermissionsSubscribeReportToOtherUsers,PermissionsLightningConsoleAllowedForUser,PermissionsSubscribeReportsRunAsUser,PermissionsSubscribeToLightningDashboards,PermissionsSubscribeDashboardToOtherUsers,PermissionsCreateLtngTempInPub,PermissionsTransactionalEmailSend,PermissionsViewPrivateStaticResources,PermissionsCreateLtngTempFolder,PermissionsApexRestServices,PermissionsEnableCommunityAppLauncher,PermissionsGiveRecognitionBadge,PermissionsUseMySearch,PermissionsLtngPromoReserved01UserPerm,PermissionsManageSubscriptions,PermissionsManageSurveys,PermissionsUseAssistantDialog,PermissionsUseQuerySuggestions,PermissionsViewRoles,PermissionsLMOutboundMessagingUserPerm,PermissionsModifyDataClassification,PermissionsPrivacyDataAccess,PermissionsQueryAllFiles,PermissionsModifyMetadata,PermissionsManageCMS,PermissionsSandboxTestingInCommunityApp,PermissionsCanEditPrompts,PermissionsViewUserPII,PermissionsManageHubConnections,PermissionsB2BMarketingAnalyticsUser,PermissionsTraceXdsQueries,PermissionsViewAllCustomSettings,PermissionsViewAllForeignKeyNames,PermissionsHeadlessCMSAccess,PermissionsLMEndMessagingSessionUserPerm,PermissionsConsentApiUpdate,PermissionsAccessContentBuilder,PermissionsAccountSwitcherUser,PermissionsManageC360AConnections,PermissionsManageReleaseUpdates,PermissionsViewAllProfiles,PermissionsSkipIdentityConfirmation,PermissionsSendCustomNotifications,PermissionsPackaging2Delete,PermissionsFSCComprehensiveUserAccess,PermissionsManageTrustMeasures,PermissionsViewTrustMeasures,PermissionsIsotopeCToCUser,PermissionsIsotopeAccess,PermissionsIsotopeLEX,PermissionsQuipMetricsAccess,PermissionsQuipUserEngagementMetrics,PermissionsManageExternalConnections,PermissionsAIViewInsightObjects,PermissionsAICreateInsightObjects,PermissionsNativeWebviewScrolling,PermissionsViewDeveloperName,Type,UserLicenseId,UserType,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,Description,LastViewedDate,LastReferencedDate +id,name,permissions_email_single,permissions_email_mass,permissions_edit_task,permissions_edit_event,permissions_export_report,permissions_import_personal,permissions_data_export,permissions_manage_users,permissions_edit_public_filters,permissions_edit_public_templates,permissions_modify_all_data,permissions_manage_cases,permissions_manage_solutions,permissions_customize_application,permissions_edit_readonly_fields,permissions_run_reports,permissions_view_setup,permissions_transfer_any_entity,permissions_new_report_builder,permissions_manage_self_service,permissions_manage_css_users,permissions_activate_contract,permissions_approve_contract,permissions_import_leads,permissions_manage_leads,permissions_transfer_any_lead,permissions_view_all_data,permissions_edit_public_documents,permissions_view_encrypted_data,permissions_edit_brand_templates,permissions_edit_html_templates,permissions_manage_translation,permissions_delete_activated_contract,permissions_send_sit_requests,permissions_api_user_only,permissions_manage_remote_access,permissions_can_use_new_dashboard_builder,permissions_manage_categories,permissions_convert_leads,permissions_test_instance_create,permissions_password_never_expires,permissions_use_team_reassign_wizards,permissions_install_multiforce,permissions_publish_multiforce,permissions_edit_opp_line_item_unit_price,permissions_manage_territories,permissions_create_multiforce,permissions_bulk_api_hard_delete,permissions_inbound_migration_tools_user,permissions_solution_import,permissions_manage_call_centers,permissions_manage_synonyms,permissions_outbound_migration_tools_user,permissions_view_content,permissions_manage_email_client_config,permissions_enable_notifications,permissions_manage_data_integrations,permissions_distribute_from_pers_wksp,permissions_view_data_categories,permissions_manage_data_categories,permissions_author_apex,permissions_manage_mobile,permissions_api_enabled,permissions_manage_custom_report_types,permissions_edit_case_comments,permissions_transfer_any_case,permissions_content_administrator,permissions_create_workspaces,permissions_manage_content_permissions,permissions_manage_content_properties,permissions_manage_content_types,permissions_schedule_job,permissions_manage_exchange_config,permissions_manage_analytic_snapshots,permissions_schedule_reports,permissions_manage_business_hour_holidays,permissions_manage_dynamic_dashboards,permissions_manage_interaction,permissions_view_my_teams_dashboards,permissions_reset_passwords,permissions_flow_uflrequired,permissions_activities_access,permissions_email_template_management,permissions_email_administration,permissions_chatter_file_link,permissions_force_two_factor,permissions_view_event_log_files,permissions_manage_networks,permissions_manage_auth_providers,permissions_run_flow,permissions_create_customize_dashboards,permissions_create_dashboard_folders,permissions_view_public_dashboards,permissions_manage_dashbds_in_pub_folders,permissions_create_customize_reports,permissions_create_report_folders,permissions_view_public_reports,permissions_manage_reports_in_pub_folders,permissions_edit_my_dashboards,permissions_edit_my_reports,permissions_view_all_users,permissions_connect_org_to_environment_hub,permissions_create_customize_filters,permissions_content_hub_user,permissions_govern_networks,permissions_sales_console,permissions_two_factor_api,permissions_delete_topics,permissions_edit_topics,permissions_create_topics,permissions_assign_topics,permissions_identity_enabled,permissions_identity_connect,permissions_content_workspaces,permissions_custom_mobile_apps_access,permissions_view_help_link,permissions_manage_profiles_permissionsets,permissions_assign_permission_sets,permissions_manage_roles,permissions_manage_ip_addresses,permissions_manage_sharing,permissions_manage_internal_users,permissions_manage_password_policies,permissions_manage_login_access_policies,permissions_manage_custom_permissions,permissions_std_automatic_activity_capture,permissions_manage_two_factor,permissions_debug_apex,permissions_lightning_experience_user,permissions_config_custom_recs,permissions_submit_macros_allowed,permissions_bulk_macros_allowed,permissions_manage_session_permission_sets,permissions_create_audit_fields,permissions_update_with_inactive_owner,permissions_manage_sandboxes,permissions_automatic_activity_capture,permissions_import_custom_objects,permissions_delegated_two_factor,permissions_select_files_from_salesforce,permissions_moderate_network_users,permissions_merge_topics,permissions_subscribe_to_lightning_reports,permissions_manage_pvt_rpts_and_dashbds,permissions_allow_lightning_login,permissions_campaign_influence2,permissions_view_data_assessment,permissions_can_approve_feed_post,permissions_allow_view_edit_converted_leads,permissions_show_company_name_as_user_badge,permissions_access_cmc,permissions_view_health_check,permissions_manage_health_check,permissions_packaging2,permissions_manage_certificates,permissions_create_report_in_lightning,permissions_prevent_classic_experience,permissions_list_email_send,permissions_change_dashboard_colors,permissions_manage_recommendation_strategies,permissions_manage_propositions,permissions_subscribe_report_roles_grps,permissions_subscribe_dashboard_roles_grps,permissions_use_web_link,permissions_has_unlimited_nbaexecutions,permissions_view_only_embedded_app_user,permissions_view_all_activities,permissions_subscribe_report_to_other_users,permissions_lightning_console_allowed_for_user,permissions_subscribe_reports_run_as_user,permissions_subscribe_to_lightning_dashboards,permissions_subscribe_dashboard_to_other_users,permissions_create_ltng_temp_in_pub,permissions_transactional_email_send,permissions_view_private_static_resources,permissions_create_ltng_temp_folder,permissions_apex_rest_services,permissions_enable_community_app_launcher,permissions_give_recognition_badge,permissions_use_my_search,permissions_ltng_promo_reserved01_user_perm,permissions_manage_subscriptions,permissions_manage_surveys,permissions_use_assistant_dialog,permissions_use_query_suggestions,permissions_view_roles,permissions_lmoutbound_messaging_user_perm,permissions_modify_data_classification,permissions_privacy_data_access,permissions_query_all_files,permissions_modify_metadata,permissions_manage_cms,permissions_sandbox_testing_in_community_app,permissions_can_edit_prompts,permissions_view_user_pii,permissions_manage_hub_connections,permissions_b2_bmarketing_analytics_user,permissions_trace_xds_queries,permissions_view_all_custom_settings,permissions_view_all_foreign_key_names,permissions_headless_cmsaccess,permissions_lmend_messaging_session_user_perm,permissions_consent_api_update,permissions_access_content_builder,permissions_account_switcher_user,permissions_manage_c360_aconnections,permissions_manage_release_updates,permissions_view_all_profiles,permissions_skip_identity_confirmation,permissions_send_custom_notifications,permissions_packaging2_delete,permissions_fsccomprehensive_user_access,permissions_manage_trust_measures,permissions_view_trust_measures,permissions_isotope_cto_cuser,permissions_isotope_access,permissions_isotope_lex,permissions_quip_metrics_access,permissions_quip_user_engagement_metrics,permissions_manage_external_connections,permissions_aiview_insight_objects,permissions_aicreate_insight_objects,permissions_native_webview_scrolling,permissions_view_developer_name,type,user_license_id,user_type,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,description,last_viewed_date,last_referenced_date +src02.crm_profile +org02.crm_profile +CRM_Profile_ex.sql + diff --git a/s3/data/crm/settings/CRM_Profile_ex.sql b/s3/data/crm/settings/CRM_Profile_ex.sql new file mode 100644 index 00000000..b858ab02 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_profile', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Question_Response_vod__c.txt b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt new file mode 100644 index 00000000..a994ab4a --- /dev/null +++ b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +30 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_Target_vod__c,Answer_Choice_vod__c,Date_vod__c,Datetime_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Number_vod__c,Order_vod__c,Question_Text_vod__c,Required_vod__c,Response_Hash_vod__c,Response_vod__c,Score_vod__c,Survey_Question_vod__c,Text_vod__c,Type_vod__c,Condition_vod__c,Inactive_Condition_vod__c,Source_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_target_vod__c,answer_choice_vod__c,date_vod__c,datetime_vod__c,external_id_vod__c,mobile_id_vod__c,number_vod__c,order_vod__c,question_text_vod__c,required_vod__c,response_hash_vod__c,response_vod__c,score_vod__c,survey_question_vod__c,text_vod__c,type_vod__c,condition_vod__c,inactive_condition_vod__c,source_id_vod__c +src02.crm_question_response_vod__c +org02.crm_question_response_vod__c + + diff --git a/s3/data/crm/settings/CRM_RecordType.txt b/s3/data/crm/settings/CRM_RecordType.txt new file mode 100644 index 00000000..78960693 --- /dev/null +++ b/s3/data/crm/settings/CRM_RecordType.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,NamespacePrefix,Description,BusinessProcessId,SobjectType,IsActive,IsPersonType,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate,SystemModstamp +id,name,developer_name,namespace_prefix,description,business_process_id,sobject_type,is_active,is_person_type,created_by_id,created_date,last_modified_by_id,last_modified_date,system_modstamp +src02.crm_record_type +org02.crm_record_type + + diff --git a/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt new file mode 100644 index 00000000..1b4827c9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +24 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Meeting_Id_vod__c,Meeting_Name_vod__c,Mobile_ID_vod__c,Scheduled_DateTime_vod__c,Scheduled_vod__c,Attendance_Report_Process_Status_vod__c,Latest_Meeting_Start_Datetime_vod__c,Meeting_Password_vod__c,Meeting_Outcome_Status_vod__c,Allow_for_Joining_via_Zoom_vod__c,Zoom_Join_Token_vod__c,VExternal_Id_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,meeting_id_vod__c,meeting_name_vod__c,mobile_id_vod__c,scheduled_date_time_vod__c,scheduled_vod__c,attendance_report_process_status_vod__c,latest_meeting_start_datetime_vod__c,meeting_password_vod__c,meeting_outcome_status_vod__c,allow_for_joining_via_zoom_vod__c,zoom_join_token_vod__c,vexternal_id_vod__c +src02.crm_remote_meeting_vod__c +org02.crm_remote_meeting_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt new file mode 100644 index 00000000..148ed757 --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +65 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Account_Email_vod__c,Account_vod__c,Approved_Email_Template_vod__c,Capture_Datetime_vod__c,Detail_Group_vod__c,Email_Config_Values_vod__c,Email_Content2_vod__c,Email_Content_vod__c,Email_Fragments_vod__c,Email_Sent_Date_vod__c,Failure_Msg_vod__c,Last_Activity_Date_vod__c,Last_Device_vod__c,MC_Capture_Datetime_vod__c,Mobile_ID_vod__c,Opened_vod__c,Product_Display_vod__c,Product_vod__c,Sender_Email_vod__c,Status_vod__c,Valid_Consent_Exists_vod__c,Approved_Document_Views_vod__c,Click_Count_vod__c,Last_Click_Date_vod__c,Last_Open_Date_vod__c,Open_Count_vod__c,Receipt_Entity_Type_vod__c,Receipt_Record_Id_vod__c,Territory_vod__c,Call2_vod__c,Medical_Inquiry_vod__c,Parent_Email_vod__c,Related_Transaction_ID_vod__c,Case_vod__c,Key_Message_vod__c,Suggestion_vod__c,EM_Attendee_vod__c,EM_Event_Speaker_vod__c,EM_Event_Team_Member_vod__c,Event_Attendee_vod__c,Event_vod__c,Medical_Event_vod__c,Scheduled_Send_Datetime_vod__c,User_vod__c,Content_Type_vod__c,Bcc_vod__c,Event_Attendee_Mobile_Id_vod__c,Event_Mobile_Id_vod__c,Activity_Tracking_Mode_vod__c,Email_Source_vod__c,Subject_vod__c,User_Input_Text_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,account_email_vod__c,account_vod__c,approved_email_template_vod__c,capture_datetime_vod__c,detail_group_vod__c,email_config_values_vod__c,email_content2_vod__c,email_content_vod__c,email_fragments_vod__c,email_sent_date_vod__c,failure_msg_vod__c,last_activity_date_vod__c,last_device_vod__c,mc_capture_datetime_vod__c,mobile_id_vod__c,opened_vod__c,product_display_vod__c,product_vod__c,sender_email_vod__c,status_vod__c,valid_consent_exists_vod__c,approved_document_views_vod__c,click_count_vod__c,last_click_date_vod__c,last_open_date_vod__c,open_count_vod__c,receipt_entity_type_vod__c,receipt_record_id_vod__c,territory_vod__c,call2_vod__c,medical_inquiry_vod__c,parent_email_vod__c,related_transaction_id_vod__c,case_vod__c,key_message_vod__c,suggestion_vod__c,em_attendee_vod__c,em_event_speaker_vod__c,em_event_team_member_vod__c,event_attendee_vod__c,event_vod__c,medical_event_vod__c,scheduled_send_datetime_vod__c,user_vod__c,content_type_vod__c,bcc_vod__c,event_attendee_mobile_id_vod__c,event_mobile_id_vod__c,activity_tracking_mode_vod__c,email_source_vod__c,subject_vod__c,user_input_text_vod__c +src02.crm_sent_email_vod__c +org02.crm_sent_email_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt new file mode 100644 index 00000000..c93f9f9e --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Account_vod__c,Email_Template_vod__c,Sent_Fragment_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,account_vod__c,email_template_vod__c,sent_fragment_vod__c +src02.crm_sent_fragment_vod__c +org02.crm_sent_fragment_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt new file mode 100644 index 00000000..3a636f0a --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +23 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_vod__c,Answer_Choice_vod__c,External_ID_vod__c,Max_Score_vod__c,Min_Score_vod__c,Order_vod__c,Question_vod__c,Required_vod__c,Text_vod__c,Condition_vod__c,Source_ID_vod__c,MSJ_External_ID__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_vod__c,answer_choice_vod__c,external_id_vod__c,max_score_vod__c,min_score_vod__c,order_vod__c,question_vod__c,required_vod__c,text_vod__c,condition_vod__c,source_id_vod__c,msj_external_id__c +src02.crm_survey_question_vod__c +org02.crm_survey_question_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt new file mode 100644 index 00000000..f9f80626 --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +39 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_Display_Name_vod__c,Account_vod__c,Channels_vod__c,End_Date_vod__c,Entity_Reference_Id_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Mobile_ID_vod__c,No_Autoassign_vod__c,Not_Completed_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Survey_vod__c,Territory_vod__c,zvod_Address_vod__c,zvod_Specialty_vod__c,Score_vod__c,User_vod__c,Child_Account_vod__c,Location_Entity_Reference_Id_vod__c,Location_vod__c,Target_Type_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_display_name_vod__c,account_vod__c,channels_vod__c,end_date_vod__c,entity_reference_id_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,mobile_id_vod__c,no_autoassign_vod__c,not_completed_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,survey_vod__c,territory_vod__c,zvod_address_vod__c,zvod_specialty_vod__c,score_vod__c,user_vod__c,child_account_vod__c,location_entity_reference_id_vod__c,location_vod__c,target_type_vod__c +src02.crm_survey_target_vod__c +org02.crm_survey_target_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_vod__c.txt b/s3/data/crm/settings/CRM_Survey_vod__c.txt new file mode 100644 index 00000000..bfd04a2e --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Assignment_Type_vod__c,Channels_vod__c,End_Date_vod__c,Expired_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Open_vod__c,Product_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Territory_vod__c,zvod_Questions_vod__c,zvod_Segments_vod__c,zvod_Targets_vod__c,Max_Score_vod__c,Min_Score_vod__c,Autotarget_vod__c,Territories_vod__c,Target_Type_vod__c,MSJ_External_ID__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,assignment_type_vod__c,channels_vod__c,end_date_vod__c,expired_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,open_vod__c,product_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,territory_vod__c,zvod_questions_vod__c,zvod_segments_vod__c,zvod_targets_vod__c,max_score_vod__c,min_score_vod__c,autotarget_vod__c,territories_vod__c,target_type_vod__c,msj_external_id__c +src02.crm_survey_vod__c +org02.crm_survey_vod__c + + diff --git a/s3/data/crm/settings/CRM_Territory2.txt b/s3/data/crm/settings/CRM_Territory2.txt new file mode 100644 index 00000000..5486b657 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,MSJ_Territory_Type__c,MSJ_Level__c +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name,msj_territory_type__c,msj_level__c +src02.crm_territory2 +org02.crm_territory2 +CRM_Territory2_ex.sql + diff --git a/s3/data/crm/settings/CRM_Territory2_ALL.txt b/s3/data/crm/settings/CRM_Territory2_ALL.txt new file mode 100644 index 00000000..525e1796 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name +src02.crm_territory2_all +org02.crm_territory2_all + + +truncate_src_table:src02.crm_territory2_all diff --git a/s3/data/crm/settings/CRM_Territory2_ex.sql b/s3/data/crm/settings/CRM_Territory2_ex.sql new file mode 100644 index 00000000..a30ccd91 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_territory2', 'src02.crm_territory2_all', 'system_modstamp'); +CALL crm_history('src02.crm_territory2', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt new file mode 100644 index 00000000..e2b1b9b6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Reason_vod__c,Territory_vod__c,Date_vod__c,Status_vod__c,Time_vod__c,Hours_vod__c,Mobile_ID_vod__c,Hours_off_vod__c,Start_Time_vod__c,MSJ_Day__c,MSJ_Comment__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,reason_vod__c,territory_vod__c,date_vod__c,status_vod__c,time_vod__c,hours_vod__c,mobile_id_vod__c,hours_off_vod__c,start_time_vod__c,msj_day__c,msj_comment__c +src02.crm_time_off_territory_vod__c +org02.crm_time_off_territory_vod__c + + diff --git a/s3/data/crm/settings/CRM_User.txt b/s3/data/crm/settings/CRM_User.txt new file mode 100644 index 00000000..317a5e14 --- /dev/null +++ b/s3/data/crm/settings/CRM_User.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +197 +Id,Username,LastName,FirstName,Name,CompanyName,Division,Department,Title,Street,City,State,PostalCode,Country,Latitude,Longitude,GeocodeAccuracy,Address,Email,EmailPreferencesAutoBcc,EmailPreferencesAutoBccStayInTouch,EmailPreferencesStayInTouchReminder,SenderEmail,SenderName,Signature,StayInTouchSubject,StayInTouchSignature,StayInTouchNote,Phone,Fax,MobilePhone,Alias,CommunityNickname,BadgeText,IsActive,TimeZoneSidKey,UserRoleId,LocaleSidKey,ReceivesInfoEmails,ReceivesAdminInfoEmails,EmailEncodingKey,ProfileId,UserType,LanguageLocaleKey,EmployeeNumber,DelegatedApproverId,ManagerId,LastLoginDate,LastPasswordChangeDate,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,NumberOfFailedLogins,OfflineTrialExpirationDate,OfflinePdaTrialExpirationDate,UserPermissionsMarketingUser,UserPermissionsOfflineUser,UserPermissionsWirelessUser,UserPermissionsAvantgoUser,UserPermissionsCallCenterAutoLogin,UserPermissionsSFContentUser,UserPermissionsInteractionUser,UserPermissionsSupportUser,UserPermissionsChatterAnswersUser,ForecastEnabled,UserPreferencesActivityRemindersPopup,UserPreferencesEventRemindersCheckboxDefault,UserPreferencesTaskRemindersCheckboxDefault,UserPreferencesReminderSoundOff,UserPreferencesDisableAllFeedsEmail,UserPreferencesApexPagesDeveloperMode,UserPreferencesReceiveNoNotificationsAsApprover,UserPreferencesReceiveNotificationsAsDelegatedApprover,UserPreferencesHideCSNGetChatterMobileTask,UserPreferencesHideCSNDesktopTask,UserPreferencesHideChatterOnboardingSplash,UserPreferencesHideSecondChatterOnboardingSplash,UserPreferencesShowTitleToExternalUsers,UserPreferencesShowManagerToExternalUsers,UserPreferencesShowEmailToExternalUsers,UserPreferencesShowWorkPhoneToExternalUsers,UserPreferencesShowMobilePhoneToExternalUsers,UserPreferencesShowFaxToExternalUsers,UserPreferencesShowStreetAddressToExternalUsers,UserPreferencesShowCityToExternalUsers,UserPreferencesShowStateToExternalUsers,UserPreferencesShowPostalCodeToExternalUsers,UserPreferencesShowCountryToExternalUsers,UserPreferencesShowProfilePicToGuestUsers,UserPreferencesShowTitleToGuestUsers,UserPreferencesShowCityToGuestUsers,UserPreferencesShowStateToGuestUsers,UserPreferencesShowPostalCodeToGuestUsers,UserPreferencesShowCountryToGuestUsers,UserPreferencesHideInvoicesRedirectConfirmation,UserPreferencesHideStatementsRedirectConfirmation,UserPreferencesPathAssistantCollapsed,UserPreferencesCacheDiagnostics,UserPreferencesShowEmailToGuestUsers,UserPreferencesShowManagerToGuestUsers,UserPreferencesShowWorkPhoneToGuestUsers,UserPreferencesShowMobilePhoneToGuestUsers,UserPreferencesShowFaxToGuestUsers,UserPreferencesShowStreetAddressToGuestUsers,UserPreferencesLightningExperiencePreferred,UserPreferencesPreviewLightning,UserPreferencesHideEndUserOnboardingAssistantModal,UserPreferencesHideLightningMigrationModal,UserPreferencesHideSfxWelcomeMat,UserPreferencesHideBiggerPhotoCallout,UserPreferencesGlobalNavBarWTShown,UserPreferencesGlobalNavGridMenuWTShown,UserPreferencesCreateLEXAppsWTShown,UserPreferencesFavoritesWTShown,UserPreferencesRecordHomeSectionCollapseWTShown,UserPreferencesRecordHomeReservedWTShown,UserPreferencesFavoritesShowTopFavorites,UserPreferencesExcludeMailAppAttachments,UserPreferencesSuppressTaskSFXReminders,UserPreferencesSuppressEventSFXReminders,UserPreferencesPreviewCustomTheme,UserPreferencesHasCelebrationBadge,UserPreferencesUserDebugModePref,UserPreferencesSRHOverrideActivities,UserPreferencesNewLightningReportRunPageEnabled,UserPreferencesReverseOpenActivitiesView,UserPreferencesNativeEmailClient,UserPreferencesHideBrowseProductRedirectConfirmation,UserPreferencesHideOnlineSalesAppWelcomeMat,ContactId,AccountId,CallCenterId,Extension,FederationIdentifier,AboutMe,FullPhotoUrl,SmallPhotoUrl,IsExtIndicatorVisible,OutOfOfficeMessage,MediumPhotoUrl,DigestFrequency,DefaultGroupNotificationFrequency,LastViewedDate,LastReferencedDate,BannerPhotoUrl,SmallBannerPhotoUrl,MediumBannerPhotoUrl,IsProfilePhotoActive,IndividualId,Last_Mobile_Connect_vod__c,Last_Tablet_Connect_vod__c,Last_Mobile_Connect_Version_vod__c,Last_Tablet_Connect_Version_vod__c,Last_Mobile_Sync_vod__c,Last_Tablet_Sync_vod__c,RaiseLoggingLevel_vod__c,SendDetailedLog_vod__c,Last_Blackberry_Connect_vod__c,Last_Blackberry_Connect_Version_vod__c,Last_Blackberry_Sync_vod__c,Force_Full_Refresh_vod__c,Override_SystemModstamp_Timestamp_vod__c,Facetime_Email_vod__c,Facetime_Phone_vod__c,Product_Expertise_vod__c,Available_vod__c,Available_Last_Update_vod__c,Last_iPad_Connect_Version_vod__c,Last_iPad_Connect_vod__c,Last_iPad_Sync_vod__c,Inventory_Order_Allocation_Group_vod__c,Concur_User_Id_vod__c,Last_iPad_iOS_Version_vod__c,Approved_Email_Admin_vod__c,Last_WinModern_Connect_Version_vod__c,Last_WinModern_Connect_vod__c,Last_WinModern_Sync_vod__c,Primary_Territory_vod__c,Analytics_Admin_vod__c,Content_Admin_vod__c,Last_WinModern_Windows_Version_vod__c,Upload_VTrans_vod__c,Sync_Frequency_vjh__c,Clear_Client_Sync_Errors_vod__c,Remote_Meeting_Host_Id_vod__c,Remote_Meeting_Host_Token_vod__c,Last_iPhone_Connect_Version_vod__c,Last_iPhone_Connect_vod__c,Last_iPhone_Sync_vod__c,Last_iPhone_iOS_Version_vod__c,Remote_Meeting_Start_From_CRM_Online_vod__c,Country_Code_vod__c,User_Type_vod__c,Engage_Group_Provisioning_Status_vod__c,Engage_Group_Request_vod__c,Engage_Group_vod__c,Last_CRMDesktop_Mac_Sync_vod__c,Last_CRMDesktop_Mac_Version_vod__c,Last_CRMDesktop_Windows_Sync_vod__c,Last_CRMDesktop_Windows_Version_vod__c,MSJ_Test_User__c +id,username,last_name,first_name,name,company_name,division,department,title,street,city,state,postal_code,country,latitude,longitude,geocode_accuracy,address,email,email_preferences_auto_bcc,email_preferences_auto_bcc_stay_in_touch,email_preferences_stay_in_touch_reminder,sender_email,sender_name,signature,stay_in_touch_subject,stay_in_touch_signature,stay_in_touch_note,phone,fax,mobile_phone,alias,community_nickname,badge_text,is_active,time_zone_sid_key,user_role_id,locale_sid_key,receives_info_emails,receives_admin_info_emails,email_encoding_key,profile_id,user_type,language_locale_key,employee_number,delegated_approver_id,manager_id,last_login_date,last_password_change_date,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,number_of_failed_logins,offline_trial_expiration_date,offline_pda_trial_expiration_date,user_permissions_marketing_user,user_permissions_offline_user,user_permissions_wireless_user,user_permissions_avantgo_user,user_permissions_call_center_auto_login,user_permissions_sfcontent_user,user_permissions_interaction_user,user_permissions_support_user,user_permissions_chatter_answers_user,forecast_enabled,user_preferences_activity_reminders_popup,user_preferences_event_reminders_checkbox_default,user_preferences_task_reminders_checkbox_default,user_preferences_reminder_sound_off,user_preferences_disable_all_feeds_email,user_preferences_apex_pages_developer_mode,user_preferences_receive_no_notifications_as_approver,user_preferences_receive_notifications_as_delegated_approver,user_preferences_hide_csnget_chatter_mobile_task,user_preferences_hide_csndesktop_task,user_preferences_hide_chatter_onboarding_splash,user_preferences_hide_second_chatter_onboarding_splash,user_preferences_show_title_to_external_users,user_preferences_show_manager_to_external_users,user_preferences_show_email_to_external_users,user_preferences_show_work_phone_to_external_users,user_preferences_show_mobile_phone_to_external_users,user_preferences_show_fax_to_external_users,user_preferences_show_street_address_to_external_users,user_preferences_show_city_to_external_users,user_preferences_show_state_to_external_users,user_preferences_show_postal_code_to_external_users,user_preferences_show_country_to_external_users,user_preferences_show_profile_pic_to_guest_users,user_preferences_show_title_to_guest_users,user_preferences_show_city_to_guest_users,user_preferences_show_state_to_guest_users,user_preferences_show_postal_code_to_guest_users,user_preferences_show_country_to_guest_users,user_preferences_hide_invoices_redirect_confirmation,user_preferences_hide_statements_redirect_confirmation,user_preferences_path_assistant_collapsed,user_preferences_cache_diagnostics,user_preferences_show_email_to_guest_users,user_preferences_show_manager_to_guest_users,user_preferences_show_work_phone_to_guest_users,user_preferences_show_mobile_phone_to_guest_users,user_preferences_show_fax_to_guest_users,user_preferences_show_street_address_to_guest_users,user_preferences_lightning_experience_preferred,user_preferences_preview_lightning,user_preferences_hide_end_user_onboarding_assistant_modal,user_preferences_hide_lightning_migration_modal,user_preferences_hide_sfx_welcome_mat,user_preferences_hide_bigger_photo_callout,user_preferences_global_nav_bar_wtshown,user_preferences_global_nav_grid_menu_wtshown,user_preferences_create_lexapps_wtshown,user_preferences_favorites_wtshown,user_preferences_record_home_section_collapse_wtshown,user_preferences_record_home_reserved_wtshown,user_preferences_favorites_show_top_favorites,user_preferences_exclude_mail_app_attachments,user_preferences_suppress_task_sfxreminders,user_preferences_suppress_event_sfxreminders,user_preferences_preview_custom_theme,user_preferences_has_celebration_badge,user_preferences_user_debug_mode_pref,user_preferences_srhoverride_activities,user_preferences_new_lightning_report_run_page_enabled,user_preferences_reverse_open_activities_view,user_preferences_native_email_client,user_preferences_hide_browse_product_redirect_confirmation,user_preferences_hide_online_sales_app_welcome_mat,contact_id,account_id,call_center_id,extension,federation_identifier,about_me,full_photo_url,small_photo_url,is_ext_indicator_visible,out_of_office_message,medium_photo_url,digest_frequency,default_group_notification_frequency,last_viewed_date,last_referenced_date,banner_photo_url,small_banner_photo_url,medium_banner_photo_url,is_profile_photo_active,individual_id,last_mobile_connect_vod__c,last_tablet_connect_vod__c,last_mobile_connect_version_vod__c,last_tablet_connect_version_vod__c,last_mobile_sync_vod__c,last_tablet_sync_vod__c,raise_logging_level_vod__c,send_detailed_log_vod__c,last_blackberry_connect_vod__c,last_blackberry_connect_version_vod__c,last_blackberry_sync_vod__c,force_full_refresh_vod__c,override_system_modstamp_timestamp_vod__c,facetime_email_vod__c,facetime_phone_vod__c,product_expertise_vod__c,available_vod__c,available_last_update_vod__c,last_i_pad_connect_version_vod__c,last_i_pad_connect_vod__c,last_i_pad_sync_vod__c,inventory_order_allocation_group_vod__c,concur_user_id_vod__c,last_i_pad_i_os_version_vod__c,approved_email_admin_vod__c,last_win_modern_connect_version_vod__c,last_win_modern_connect_vod__c,last_win_modern_sync_vod__c,primary_territory_vod__c,analytics_admin_vod__c,content_admin_vod__c,last_win_modern_windows_version_vod__c,upload_vtrans_vod__c,sync_frequency_vjh__c,clear_client_sync_errors_vod__c,remote_meeting_host_id_vod__c,remote_meeting_host_token_vod__c,last_i_phone_connect_version_vod__c,last_i_phone_connect_vod__c,last_i_phone_sync_vod__c,last_i_phone_i_os_version_vod__c,remote_meeting_start_from_crm_online_vod__c,country_code_vod__c,user_type_vod__c,engage_group_provisioning_status_vod__c,engage_group_request_vod__c,engage_group_vod__c,last_crmdesktop_mac_sync_vod__c,last_crmdesktop_mac_version_vod__c,last_crmdesktop_windows_sync_vod__c,last_crmdesktop_windows_version_vod__c,msj_test_user__c +src02.crm_user +org02.crm_user + + diff --git a/s3/data/crm/settings/CRM_UserRole.txt b/s3/data/crm/settings/CRM_UserRole.txt new file mode 100644 index 00000000..4b10b6c2 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserRole.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,Name,ParentRoleId,RollupDescription,OpportunityAccessForAccountOwner,CaseAccessForAccountOwner,ContactAccessForAccountOwner,ForecastUserId,MayForecastManagerShare,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,PortalAccountId,PortalType,PortalAccountOwnerId +id,name,parent_role_id,rollup_description,opportunity_access_for_account_owner,case_access_for_account_owner,contact_access_for_account_owner,forecast_user_id,may_forecast_manager_share,last_modified_date,last_modified_by_id,system_modstamp,developer_name,portal_account_id,portal_type,portal_account_owner_id +src02.crm_user_role +org02.crm_user_role + + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association.txt b/s3/data/crm/settings/CRM_UserTerritory2Association.txt new file mode 100644 index 00000000..039757b9 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association +org02.crm_user_territory2_association +CRM_UserTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt new file mode 100644 index 00000000..4617829d --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association_all +org02.crm_user_territory2_association_all + + +truncate_src_table:src02.crm_user_territory2_association_all diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql new file mode 100644 index 00000000..6a9aaece --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_user_territory2_association', 'src02.crm_user_territory2_association_all', 'system_modstamp'); +CALL crm_history('src02.crm_user_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/configmap.config b/s3/data/crm/settings/configmap.config new file mode 100644 index 00000000..89993b8b --- /dev/null +++ b/s3/data/crm/settings/configmap.config @@ -0,0 +1,58 @@ +/* 【CRMデータ 差分連携】 */ +CRM_Clm_Presentation_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_vod__c.txt +CRM_Clm_Presentation_Slide_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_Slide_vod__c.txt +CRM_Medical_Insight_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Insight_vod__c.txt +CRM_MSJ_MR_Weekly_Report__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_MR_Weekly_Report__c.txt +CRM_Account_Territory_Loader_vod__c_[0-9]{14}\.(CSV|csv) CRM_Account_Territory_Loader_vod__c.txt +CRM_Event_Attendee_vod__c_[0-9]{14}\.(CSV|csv) CRM_Event_Attendee_vod__c.txt +CRM_ObjectTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_ObjectTerritory2Association.txt +CRM_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Key_Message_vod__c.txt +CRM_Group_[0-9]{14}\.(CSV|csv) CRM_Group.txt +CRM_Medical_Event_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Event_vod__c.txt +CRM_MSJ_Medical_Event_Evaluation__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Event_Evaluation__c.txt +CRM_Coaching_Report_vod__c_[0-9]{14}\.(CSV|csv) CRM_Coaching_Report_vod__c.txt +CRM_Call2_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_vod__c.txt +CRM_Call2_Detail_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Detail_vod__c.txt +CRM_Call2_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Key_Message_vod__c.txt +CRM_Call_Clickstream_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call_Clickstream_vod__c.txt +CRM_Call2_Discussion_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Discussion_vod__c.txt +CRM_Time_Off_Territory_vod__c_[0-9]{14}\.(CSV|csv) CRM_Time_Off_Territory_vod__c.txt +CRM_Dynamic_Attribute_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_vod__c.txt +CRM_Dynamic_Attribute_Configuration_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_Configuration_vod__c.txt +CRM_Territory2_[0-9]{14}\.(CSV|csv) CRM_Territory2.txt +CRM_Profile_[0-9]{14}\.(CSV|csv) CRM_Profile.txt +CRM_My_Setup_Products_vod__c_[0-9]{14}\.(CSV|csv) CRM_My_Setup_Products_vod__c.txt +CRM_Multichannel_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_vod__c.txt +CRM_Multichannel_Activity_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_Line_vod__c.txt +CRM_Multichannel_Consent_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Consent_vod__c.txt +CRM_Medical_Inquiry_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Inquiry_vod__c.txt +CRM_Email_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Email_Activity_vod__c.txt +CRM_User_[0-9]{14}\.(CSV|csv) CRM_User.txt +CRM_UserTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association.txt +CRM_Remote_Meeting_vod__c_[0-9]{14}\.(CSV|csv) CRM_Remote_Meeting_vod__c.txt +CRM_RecordType_[0-9]{14}\.(CSV|csv) CRM_RecordType.txt +CRM_UserRole_[0-9]{14}\.(CSV|csv) CRM_UserRole.txt +CRM_Account_[0-9]{14}\.(CSV|csv) CRM_Account.txt +CRM_AccountShare_[0-9]{14}\.(CSV|csv) CRM_AccountShare.txt +CRM_Contact_[0-9]{14}\.(CSV|csv) CRM_Contact.txt +CRM_Consent_Type_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Type_vod__c.txt +CRM_Consent_Header_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Header_vod__c.txt +CRM_Consent_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Line_vod__c.txt +CRM_MSJ_Inquiry_Assignment__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Inquiry_Assignment__c.txt +CRM_Approved_Document_vod__c_[0-9]{14}\.(CSV|csv) CRM_Approved_Document_vod__c.txt +CRM_Child_Account_vod__c_[0-9]{14}\.(CSV|csv) CRM_Child_Account_vod__c.txt +CRM_MSJ_Hospital_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Hospital_Medical_Regimen__c.txt +CRM_MSJ_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Regimen__c.txt +CRM_MSJ_Patient__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Patient__c.txt +CRM_Product_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_vod__c.txt +CRM_Product_Group_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Group_vod__c.txt +CRM_Product_Metrics_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Metrics_vod__c.txt +CRM_Survey_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_vod__c.txt +CRM_Survey_Target_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Target_vod__c.txt +CRM_Survey_Question_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Question_vod__c.txt +CRM_Question_Response_vod__c_[0-9]{14}\.(CSV|csv) CRM_Question_Response_vod__c.txt +CRM_Sent_Fragment_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Fragment_vod__c.txt +CRM_Sent_Email_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Email_vod__c.txt +/* 【CRMデータ 全件連携】 */ +CRM_Territory2_ALL_[0-9]{14}\.(CSV|csv) CRM_Territory2_ALL.txt +CRM_UserTerritory2Association_ALL_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association_ALL.txt From 78ac0ba11411d607f3566d778d962cf0cdca93a9 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Mon, 1 Aug 2022 20:02:30 +0900 Subject: [PATCH 22/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89=E3=80=81=E9=9B=9B=E5=BD=A2?= =?UTF-8?q?=E3=82=92=E4=BD=9C=E3=81=A3=E3=81=A6=E3=81=BF=E3=81=9F=E3=80=82?= =?UTF-8?q?=E5=8B=95=E4=BD=9C=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=81=93?= =?UTF-8?q?=E3=81=A8=E3=81=AF=E7=A2=BA=E8=AA=8D=E3=81=A7=E3=81=8D=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ecs/crm-datafetch/Pipfile | 7 + ecs/crm-datafetch/Pipfile.lock | 471 ++++++++++++++++++++++-- ecs/crm-datafetch/tests/__init__.py | 0 ecs/crm-datafetch/tests/aws/__init__.py | 0 ecs/crm-datafetch/tests/aws/test_s3.py | 20 + ecs/crm-datafetch/tests/conftest.py | 21 ++ 7 files changed, 488 insertions(+), 32 deletions(-) create mode 100644 ecs/crm-datafetch/tests/__init__.py create mode 100644 ecs/crm-datafetch/tests/aws/__init__.py create mode 100644 ecs/crm-datafetch/tests/aws/test_s3.py create mode 100644 ecs/crm-datafetch/tests/conftest.py diff --git a/.gitignore b/.gitignore index 0e397fc3..88a052ff 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ lambda/mbj-newdwh2021-staging-PublishFromLog/node_modules/* __pycache__/ .env **/.vscode/settings.json +.coverage diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 33501d98..3d7988e7 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -3,6 +3,10 @@ url = "https://pypi.org/simple" verify_ssl = true name = "pypi" +[scripts] +test = "pytest tests/" +"test:cov" = "pytest --cov=src tests/" + [packages] boto3 = "*" simple-salesforce = "*" @@ -11,6 +15,9 @@ tenacity = "*" [dev-packages] autopep8 = "*" flake8 = "*" +pytest = "*" +pytest-cov = "*" +moto = "*" [requires] python_version = "3.8" diff --git a/ecs/crm-datafetch/Pipfile.lock b/ecs/crm-datafetch/Pipfile.lock index c8c60540..7c13f0c9 100644 --- a/ecs/crm-datafetch/Pipfile.lock +++ b/ecs/crm-datafetch/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "ec1d83143aff859500979be73f67196dcfe2298ad3553a7d81ad0605a277d672" + "sha256": "f1433a55f486f24bb14d6447713a0cdeeb704542a695103debd9514face495cc" }, "pipfile-spec": 6, "requires": { @@ -18,11 +18,11 @@ "default": { "attrs": { "hashes": [ - "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4", - "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd" + "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6", + "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", - "version": "==21.4.0" + "markers": "python_version >= '3.5'", + "version": "==22.1.0" }, "authlib": { "hashes": [ @@ -33,19 +33,19 @@ }, "boto3": { "hashes": [ - "sha256:5c775dcb12ca5d6be3f5aa3c49d77783faa64eb30fd3f4af93ff116bb42f9ffb", - "sha256:5d9bcc355cf6edd7f3849fedac4252e12a0aa2b436cdbc0d4371b16a0f852a30" + "sha256:aec404d06690a0ca806592efc6bbe30a9ac88fa2ad73b6d907f7794a8b3b1459", + "sha256:df3d6ef02304bd7c3711090936c092d5db735dda109decac1e236c3ef7fdb7af" ], "index": "pypi", - "version": "==1.24.34" + "version": "==1.24.42" }, "botocore": { "hashes": [ - "sha256:0d824a5315f5f5c3bea53c14107a69695ef43190edf647f1281bac8f172ca77c", - "sha256:9c695d47f1f1212f3e306e51f7bacdf67e58055194ddcf7d8296660b124cf135" + "sha256:38a180a6666c5a9b069a75ec3cf374ff2a64c3e90c9f24a916858bcdeb04456d", + "sha256:f8e6c2f69a9d577fb9c69e4e74f49f4315a48decee0e7dc88b6e470772110884" ], "markers": "python_version >= '3.7'", - "version": "==1.27.34" + "version": "==1.27.42" }, "cached-property": { "hashes": [ @@ -59,7 +59,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==2022.6.15" }, "cffi": { @@ -136,7 +136,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==2.1.0" }, "cryptography": { @@ -164,7 +164,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==37.0.4" }, "idna": { @@ -352,22 +352,30 @@ }, "urllib3": { "hashes": [ - "sha256:8298d6d56d39be0e3bc13c1c97d133f9b45d797169a0e11cdd0e0489d786f7ec", - "sha256:879ba4d1e89654d9769ce13121e0f94310ea32e8d2f8cf587b77c08bbcdb30d6" + "sha256:c33ccba33c819596124764c23a97d25f32b28433ba0dedeb77d873a38722c9bc", + "sha256:ea6e8fb210b19d950fab93b60c9009226c63a28808bc8386e05301e25883ac0a" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'", - "version": "==1.26.10" + "version": "==1.26.11" }, "zeep": { "hashes": [ "sha256:5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5", "sha256:81c491092b71f5b276de8c63dfd452be3f322622c48a54f3a497cf913bdfb2f4" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==4.1.0" } }, "develop": { + "attrs": { + "hashes": [ + "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6", + "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c" + ], + "markers": "python_version >= '3.5'", + "version": "==22.1.0" + }, "autopep8": { "hashes": [ "sha256:44f0932855039d2c15c4510d6df665e4730f2b8582704fa48f9c55bd3e17d979", @@ -376,36 +384,403 @@ "index": "pypi", "version": "==1.6.0" }, - "flake8": { + "boto3": { "hashes": [ - "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d", - "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d" + "sha256:aec404d06690a0ca806592efc6bbe30a9ac88fa2ad73b6d907f7794a8b3b1459", + "sha256:df3d6ef02304bd7c3711090936c092d5db735dda109decac1e236c3ef7fdb7af" ], "index": "pypi", - "version": "==4.0.1" + "version": "==1.24.42" + }, + "botocore": { + "hashes": [ + "sha256:38a180a6666c5a9b069a75ec3cf374ff2a64c3e90c9f24a916858bcdeb04456d", + "sha256:f8e6c2f69a9d577fb9c69e4e74f49f4315a48decee0e7dc88b6e470772110884" + ], + "markers": "python_version >= '3.7'", + "version": "==1.27.42" + }, + "certifi": { + "hashes": [ + "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", + "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==2022.6.15" + }, + "cffi": { + "hashes": [ + "sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5", + "sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef", + "sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104", + "sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426", + "sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405", + "sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375", + "sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a", + "sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e", + "sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc", + "sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf", + "sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185", + "sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497", + "sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3", + "sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35", + "sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c", + "sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83", + "sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21", + "sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca", + "sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984", + "sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac", + "sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd", + "sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee", + "sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a", + "sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2", + "sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192", + "sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7", + "sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585", + "sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f", + "sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e", + "sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27", + "sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b", + "sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e", + "sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e", + "sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d", + "sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c", + "sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415", + "sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82", + "sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02", + "sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314", + "sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325", + "sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c", + "sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3", + "sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914", + "sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045", + "sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d", + "sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9", + "sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5", + "sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2", + "sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c", + "sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3", + "sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2", + "sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8", + "sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d", + "sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d", + "sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9", + "sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162", + "sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76", + "sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4", + "sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e", + "sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9", + "sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6", + "sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b", + "sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01", + "sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0" + ], + "version": "==1.15.1" + }, + "charset-normalizer": { + "hashes": [ + "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", + "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==2.1.0" + }, + "coverage": { + "extras": [ + "toml" + ], + "hashes": [ + "sha256:0895ea6e6f7f9939166cc835df8fa4599e2d9b759b02d1521b574e13b859ac32", + "sha256:0f211df2cba951ffcae210ee00e54921ab42e2b64e0bf2c0befc977377fb09b7", + "sha256:147605e1702d996279bb3cc3b164f408698850011210d133a2cb96a73a2f7996", + "sha256:24b04d305ea172ccb21bee5bacd559383cba2c6fcdef85b7701cf2de4188aa55", + "sha256:25b7ec944f114f70803d6529394b64f8749e93cbfac0fe6c5ea1b7e6c14e8a46", + "sha256:2b20286c2b726f94e766e86a3fddb7b7e37af5d0c635bdfa7e4399bc523563de", + "sha256:2dff52b3e7f76ada36f82124703f4953186d9029d00d6287f17c68a75e2e6039", + "sha256:2f8553878a24b00d5ab04b7a92a2af50409247ca5c4b7a2bf4eabe94ed20d3ee", + "sha256:3def6791adf580d66f025223078dc84c64696a26f174131059ce8e91452584e1", + "sha256:422fa44070b42fef9fb8dabd5af03861708cdd6deb69463adc2130b7bf81332f", + "sha256:4f89d8e03c8a3757aae65570d14033e8edf192ee9298303db15955cadcff0c63", + "sha256:5336e0352c0b12c7e72727d50ff02557005f79a0b8dcad9219c7c4940a930083", + "sha256:54d8d0e073a7f238f0666d3c7c0d37469b2aa43311e4024c925ee14f5d5a1cbe", + "sha256:5ef42e1db047ca42827a85e34abe973971c635f83aed49611b7f3ab49d0130f0", + "sha256:5f65e5d3ff2d895dab76b1faca4586b970a99b5d4b24e9aafffc0ce94a6022d6", + "sha256:6c3ccfe89c36f3e5b9837b9ee507472310164f352c9fe332120b764c9d60adbe", + "sha256:6d0b48aff8e9720bdec315d67723f0babd936a7211dc5df453ddf76f89c59933", + "sha256:6fe75dcfcb889b6800f072f2af5a331342d63d0c1b3d2bf0f7b4f6c353e8c9c0", + "sha256:79419370d6a637cb18553ecb25228893966bd7935a9120fa454e7076f13b627c", + "sha256:7bb00521ab4f99fdce2d5c05a91bddc0280f0afaee0e0a00425e28e209d4af07", + "sha256:80db4a47a199c4563d4a25919ff29c97c87569130375beca3483b41ad5f698e8", + "sha256:866ebf42b4c5dbafd64455b0a1cd5aa7b4837a894809413b930026c91e18090b", + "sha256:8af6c26ba8df6338e57bedbf916d76bdae6308e57fc8f14397f03b5da8622b4e", + "sha256:a13772c19619118903d65a91f1d5fea84be494d12fd406d06c849b00d31bf120", + "sha256:a697977157adc052284a7160569b36a8bbec09db3c3220642e6323b47cec090f", + "sha256:a9032f9b7d38bdf882ac9f66ebde3afb8145f0d4c24b2e600bc4c6304aafb87e", + "sha256:b5e28db9199dd3833cc8a07fa6cf429a01227b5d429facb56eccd765050c26cd", + "sha256:c77943ef768276b61c96a3eb854eba55633c7a3fddf0a79f82805f232326d33f", + "sha256:d230d333b0be8042ac34808ad722eabba30036232e7a6fb3e317c49f61c93386", + "sha256:d4548be38a1c810d79e097a38107b6bf2ff42151900e47d49635be69943763d8", + "sha256:d4e7ced84a11c10160c0697a6cc0b214a5d7ab21dfec1cd46e89fbf77cc66fae", + "sha256:d56f105592188ce7a797b2bd94b4a8cb2e36d5d9b0d8a1d2060ff2a71e6b9bbc", + "sha256:d714af0bdba67739598849c9f18efdcc5a0412f4993914a0ec5ce0f1e864d783", + "sha256:d774d9e97007b018a651eadc1b3970ed20237395527e22cbeb743d8e73e0563d", + "sha256:e0524adb49c716ca763dbc1d27bedce36b14f33e6b8af6dba56886476b42957c", + "sha256:e2618cb2cf5a7cc8d698306e42ebcacd02fb7ef8cfc18485c59394152c70be97", + "sha256:e36750fbbc422c1c46c9d13b937ab437138b998fe74a635ec88989afb57a3978", + "sha256:edfdabe7aa4f97ed2b9dd5dde52d2bb29cb466993bb9d612ddd10d0085a683cf", + "sha256:f22325010d8824594820d6ce84fa830838f581a7fd86a9235f0d2ed6deb61e29", + "sha256:f23876b018dfa5d3e98e96f5644b109090f16a4acb22064e0f06933663005d39", + "sha256:f7bd0ffbcd03dc39490a1f40b2669cc414fae0c4e16b77bb26806a4d0b7d1452" + ], + "markers": "python_version >= '3.7'", + "version": "==6.4.2" + }, + "cryptography": { + "hashes": [ + "sha256:190f82f3e87033821828f60787cfa42bff98404483577b591429ed99bed39d59", + "sha256:2be53f9f5505673eeda5f2736bea736c40f051a739bfae2f92d18aed1eb54596", + "sha256:30788e070800fec9bbcf9faa71ea6d8068f5136f60029759fd8c3efec3c9dcb3", + "sha256:3d41b965b3380f10e4611dbae366f6dc3cefc7c9ac4e8842a806b9672ae9add5", + "sha256:4c590ec31550a724ef893c50f9a97a0c14e9c851c85621c5650d699a7b88f7ab", + "sha256:549153378611c0cca1042f20fd9c5030d37a72f634c9326e225c9f666d472884", + "sha256:63f9c17c0e2474ccbebc9302ce2f07b55b3b3fcb211ded18a42d5764f5c10a82", + "sha256:6bc95ed67b6741b2607298f9ea4932ff157e570ef456ef7ff0ef4884a134cc4b", + "sha256:7099a8d55cd49b737ffc99c17de504f2257e3787e02abe6d1a6d136574873441", + "sha256:75976c217f10d48a8b5a8de3d70c454c249e4b91851f6838a4e48b8f41eb71aa", + "sha256:7bc997818309f56c0038a33b8da5c0bfbb3f1f067f315f9abd6fc07ad359398d", + "sha256:80f49023dd13ba35f7c34072fa17f604d2f19bf0989f292cedf7ab5770b87a0b", + "sha256:91ce48d35f4e3d3f1d83e29ef4a9267246e6a3be51864a5b7d2247d5086fa99a", + "sha256:a958c52505c8adf0d3822703078580d2c0456dd1d27fabfb6f76fe63d2971cd6", + "sha256:b62439d7cd1222f3da897e9a9fe53bbf5c104fff4d60893ad1355d4c14a24157", + "sha256:b7f8dd0d4c1f21759695c05a5ec8536c12f31611541f8904083f3dc582604280", + "sha256:d204833f3c8a33bbe11eda63a54b1aad7aa7456ed769a982f21ec599ba5fa282", + "sha256:e007f052ed10cc316df59bc90fbb7ff7950d7e2919c9757fd42a2b8ecf8a5f67", + "sha256:f2dcb0b3b63afb6df7fd94ec6fbddac81b5492513f7b0436210d390c14d46ee8", + "sha256:f721d1885ecae9078c3f6bbe8a88bc0786b6e749bf32ccec1ef2b18929a05046", + "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", + "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==37.0.4" + }, + "flake8": { + "hashes": [ + "sha256:44e3ecd719bba1cb2ae65d1b54212cc9df4f5db15ac271f8856e5e6c2eebefed", + "sha256:9c51d3d1426379fd444d3b79eabbeb887849368bd053039066439523d8486961" + ], + "index": "pypi", + "version": "==5.0.1" + }, + "idna": { + "hashes": [ + "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff", + "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" + ], + "markers": "python_version >= '3.5'", + "version": "==3.3" + }, + "iniconfig": { + "hashes": [ + "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3", + "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32" + ], + "version": "==1.1.1" + }, + "jinja2": { + "hashes": [ + "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852", + "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61" + ], + "markers": "python_version >= '3.7'", + "version": "==3.1.2" + }, + "jmespath": { + "hashes": [ + "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980", + "sha256:90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe" + ], + "markers": "python_version >= '3.7'", + "version": "==1.0.1" + }, + "markupsafe": { + "hashes": [ + "sha256:0212a68688482dc52b2d45013df70d169f542b7394fc744c02a57374a4207003", + "sha256:089cf3dbf0cd6c100f02945abeb18484bd1ee57a079aefd52cffd17fba910b88", + "sha256:10c1bfff05d95783da83491be968e8fe789263689c02724e0c691933c52994f5", + "sha256:33b74d289bd2f5e527beadcaa3f401e0df0a89927c1559c8566c066fa4248ab7", + "sha256:3799351e2336dc91ea70b034983ee71cf2f9533cdff7c14c90ea126bfd95d65a", + "sha256:3ce11ee3f23f79dbd06fb3d63e2f6af7b12db1d46932fe7bd8afa259a5996603", + "sha256:421be9fbf0ffe9ffd7a378aafebbf6f4602d564d34be190fc19a193232fd12b1", + "sha256:43093fb83d8343aac0b1baa75516da6092f58f41200907ef92448ecab8825135", + "sha256:46d00d6cfecdde84d40e572d63735ef81423ad31184100411e6e3388d405e247", + "sha256:4a33dea2b688b3190ee12bd7cfa29d39c9ed176bda40bfa11099a3ce5d3a7ac6", + "sha256:4b9fe39a2ccc108a4accc2676e77da025ce383c108593d65cc909add5c3bd601", + "sha256:56442863ed2b06d19c37f94d999035e15ee982988920e12a5b4ba29b62ad1f77", + "sha256:671cd1187ed5e62818414afe79ed29da836dde67166a9fac6d435873c44fdd02", + "sha256:694deca8d702d5db21ec83983ce0bb4b26a578e71fbdbd4fdcd387daa90e4d5e", + "sha256:6a074d34ee7a5ce3effbc526b7083ec9731bb3cbf921bbe1d3005d4d2bdb3a63", + "sha256:6d0072fea50feec76a4c418096652f2c3238eaa014b2f94aeb1d56a66b41403f", + "sha256:6fbf47b5d3728c6aea2abb0589b5d30459e369baa772e0f37a0320185e87c980", + "sha256:7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b", + "sha256:86b1f75c4e7c2ac2ccdaec2b9022845dbb81880ca318bb7a0a01fbf7813e3812", + "sha256:8dc1c72a69aa7e082593c4a203dcf94ddb74bb5c8a731e4e1eb68d031e8498ff", + "sha256:8e3dcf21f367459434c18e71b2a9532d96547aef8a871872a5bd69a715c15f96", + "sha256:8e576a51ad59e4bfaac456023a78f6b5e6e7651dcd383bcc3e18d06f9b55d6d1", + "sha256:96e37a3dc86e80bf81758c152fe66dbf60ed5eca3d26305edf01892257049925", + "sha256:97a68e6ada378df82bc9f16b800ab77cbf4b2fada0081794318520138c088e4a", + "sha256:99a2a507ed3ac881b975a2976d59f38c19386d128e7a9a18b7df6fff1fd4c1d6", + "sha256:a49907dd8420c5685cfa064a1335b6754b74541bbb3706c259c02ed65b644b3e", + "sha256:b09bf97215625a311f669476f44b8b318b075847b49316d3e28c08e41a7a573f", + "sha256:b7bd98b796e2b6553da7225aeb61f447f80a1ca64f41d83612e6139ca5213aa4", + "sha256:b87db4360013327109564f0e591bd2a3b318547bcef31b468a92ee504d07ae4f", + "sha256:bcb3ed405ed3222f9904899563d6fc492ff75cce56cba05e32eff40e6acbeaa3", + "sha256:d4306c36ca495956b6d568d276ac11fdd9c30a36f1b6eb928070dc5360b22e1c", + "sha256:d5ee4f386140395a2c818d149221149c54849dfcfcb9f1debfe07a8b8bd63f9a", + "sha256:dda30ba7e87fbbb7eab1ec9f58678558fd9a6b8b853530e176eabd064da81417", + "sha256:e04e26803c9c3851c931eac40c695602c6295b8d432cbe78609649ad9bd2da8a", + "sha256:e1c0b87e09fa55a220f058d1d49d3fb8df88fbfab58558f1198e08c1e1de842a", + "sha256:e72591e9ecd94d7feb70c1cbd7be7b3ebea3f548870aa91e2732960fa4d57a37", + "sha256:e8c843bbcda3a2f1e3c2ab25913c80a3c5376cd00c6e8c4a86a89a28c8dc5452", + "sha256:efc1913fd2ca4f334418481c7e595c00aad186563bbc1ec76067848c7ca0a933", + "sha256:f121a1420d4e173a5d96e47e9a0c0dcff965afdf1626d28de1460815f7c4ee7a", + "sha256:fc7b548b17d238737688817ab67deebb30e8073c95749d55538ed473130ec0c7" + ], + "markers": "python_version >= '3.7'", + "version": "==2.1.1" }, "mccabe": { "hashes": [ - "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42", - "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f" + "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", + "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e" ], - "version": "==0.6.1" + "markers": "python_version >= '3.6'", + "version": "==0.7.0" + }, + "moto": { + "hashes": [ + "sha256:8bb8e267d9b948509d4739d81d995615a193d2c459f5c0a979aaeb0d3bd4b381", + "sha256:cbe8ad8a949f519771e5d25b670738604757fb67cd474d75d14c20677582e81f" + ], + "index": "pypi", + "version": "==3.1.16" + }, + "packaging": { + "hashes": [ + "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb", + "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522" + ], + "markers": "python_version >= '3.6'", + "version": "==21.3" + }, + "pluggy": { + "hashes": [ + "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159", + "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3" + ], + "markers": "python_version >= '3.6'", + "version": "==1.0.0" + }, + "py": { + "hashes": [ + "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719", + "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==1.11.0" }, "pycodestyle": { "hashes": [ - "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20", - "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f" + "sha256:289cdc0969d589d90752582bef6dff57c5fbc6949ee8b013ad6d6449a8ae9437", + "sha256:beaba44501f89d785be791c9462553f06958a221d166c64e1f107320f839acc2" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", - "version": "==2.8.0" + "markers": "python_version >= '3.6'", + "version": "==2.9.0" + }, + "pycparser": { + "hashes": [ + "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9", + "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206" + ], + "version": "==2.21" }, "pyflakes": { "hashes": [ - "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c", - "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e" + "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2", + "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3" + ], + "markers": "python_version >= '3.6'", + "version": "==2.5.0" + }, + "pyparsing": { + "hashes": [ + "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb", + "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc" + ], + "markers": "python_full_version >= '3.6.8'", + "version": "==3.0.9" + }, + "pytest": { + "hashes": [ + "sha256:13d0e3ccfc2b6e26be000cb6568c832ba67ba32e719443bfe725814d3c42433c", + "sha256:a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45" + ], + "index": "pypi", + "version": "==7.1.2" + }, + "pytest-cov": { + "hashes": [ + "sha256:578d5d15ac4a25e5f961c938b85a05b09fdaae9deef3bb6de9a6e766622ca7a6", + "sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470" + ], + "index": "pypi", + "version": "==3.0.0" + }, + "python-dateutil": { + "hashes": [ + "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", + "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "version": "==2.4.0" + "version": "==2.8.2" + }, + "pytz": { + "hashes": [ + "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7", + "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c" + ], + "version": "==2022.1" + }, + "requests": { + "hashes": [ + "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983", + "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349" + ], + "markers": "python_version >= '3.7' and python_version < '4'", + "version": "==2.28.1" + }, + "responses": { + "hashes": [ + "sha256:2dcc863ba63963c0c3d9ee3fa9507cbe36b7d7b0fccb4f0bdfd9e96c539b1487", + "sha256:b82502eb5f09a0289d8e209e7bad71ef3978334f56d09b444253d5ad67bf5253" + ], + "markers": "python_version >= '3.7'", + "version": "==0.21.0" + }, + "s3transfer": { + "hashes": [ + "sha256:06176b74f3a15f61f1b4f25a1fc29a4429040b7647133a463da8fa5bd28d5ecd", + "sha256:2ed07d3866f523cc561bf4a00fc5535827981b117dd7876f036b0c1aca42c947" + ], + "markers": "python_version >= '3.7'", + "version": "==0.6.0" + }, + "six": { + "hashes": [ + "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", + "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.16.0" }, "toml": { "hashes": [ @@ -414,6 +789,38 @@ ], "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.10.2" + }, + "tomli": { + "hashes": [ + "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", + "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" + ], + "markers": "python_version >= '3.7'", + "version": "==2.0.1" + }, + "urllib3": { + "hashes": [ + "sha256:c33ccba33c819596124764c23a97d25f32b28433ba0dedeb77d873a38722c9bc", + "sha256:ea6e8fb210b19d950fab93b60c9009226c63a28808bc8386e05301e25883ac0a" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'", + "version": "==1.26.11" + }, + "werkzeug": { + "hashes": [ + "sha256:4d7013ef96fd197d1cdeb03e066c6c5a491ccb44758a5b2b91137319383e5a5a", + "sha256:7e1db6a5ba6b9a8be061e47e900456355b8714c0f238b0313f53afce1a55a79a" + ], + "markers": "python_version >= '3.7'", + "version": "==2.2.1" + }, + "xmltodict": { + "hashes": [ + "sha256:341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56", + "sha256:aa89e8fd76320154a40d19a0df04a4695fb9dc5ba977cbb68ab3e4eb225e7852" + ], + "markers": "python_version >= '3.4'", + "version": "==0.13.0" } } } diff --git a/ecs/crm-datafetch/tests/__init__.py b/ecs/crm-datafetch/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ecs/crm-datafetch/tests/aws/__init__.py b/ecs/crm-datafetch/tests/aws/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py new file mode 100644 index 00000000..61c3d352 --- /dev/null +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -0,0 +1,20 @@ +import pytest +from src.aws.s3 import S3Resource + + +@pytest.fixture +def bucket_name(): + return 'test-bucket' + + +@pytest.fixture +def s3_test(s3_client, bucket_name): + s3_client.create_bucket(Bucket=bucket_name) + yield + + +class TestS3Resource: + + def test_put_object(self, s3_test, s3_client, bucket_name): + s3_resource = S3Resource(bucket_name) + s3_resource.put_object('hogehoge', 'aaaaaaaaaaaaaaa') diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py new file mode 100644 index 00000000..1120ced6 --- /dev/null +++ b/ecs/crm-datafetch/tests/conftest.py @@ -0,0 +1,21 @@ +import os + +import boto3 +import pytest +from moto import mock_s3 + + +@pytest.fixture +def aws_credentials(): + """Mocked AWS Credentials for moto.""" + os.environ["AWS_ACCESS_KEY_ID"] = "testing" + os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" + os.environ["AWS_SECURITY_TOKEN"] = "testing" + os.environ["AWS_SESSION_TOKEN"] = "testing" + + +@pytest.fixture +def s3_client(aws_credentials): + with mock_s3(): + conn = boto3.client("s3", region_name="us-east-1") + yield conn From deb44cd1e2e4cf968294eb9c421274a59c0941ba Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Mon, 1 Aug 2022 20:02:30 +0900 Subject: [PATCH 23/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index 61c3d352..f341cd2c 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -15,6 +15,28 @@ def s3_test(s3_client, bucket_name): class TestS3Resource: + def test_get_object(self, s3_test, s3_client, bucket_name): + s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) + actual = s3_resource.get_object('hogehoge/test.txt') + assert actual == 'aaaaaaaaaaaaaaa' + def test_put_object(self, s3_test, s3_client, bucket_name): s3_resource = S3Resource(bucket_name) - s3_resource.put_object('hogehoge', 'aaaaaaaaaaaaaaa') + s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') + assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + + def test_copy(self, s3_test, s3_client, bucket_name): + for_copy_bucket = 'for-copy-bucket' + s3_client.create_bucket(Bucket=for_copy_bucket) + s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) + s3_resource.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') + actual = s3_client.get_object(Bucket=for_copy_bucket, Key='test.txt') + assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + + def test_init_raise_no_provide_bucket_name(self): + with pytest.raises(Exception) as e: + S3Resource() + assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" From 6c31ff800722957bd0db7de48d4a2d26bdd1bfc3 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Mon, 1 Aug 2022 20:02:30 +0900 Subject: [PATCH 24/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E8=BF=BD=E5=8A=A0=20Config=E3=83=90=E3=82=B1=E3=83=83?= =?UTF-8?q?=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index f341cd2c..db4f1c09 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,5 +1,7 @@ import pytest -from src.aws.s3 import S3Resource +from src.aws.s3 import ConfigBucket, S3Resource +from src.system_var import environments +from src.system_var.constants import OBJECT_INFO_FILENAME, OBJECT_INFO_FOLDER @pytest.fixture @@ -40,3 +42,18 @@ class TestS3Resource: with pytest.raises(Exception) as e: S3Resource() assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" + + +class TestConfigBucket: + + def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): + # = bucket_name + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') + monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') + s3_client.put_object(Bucket=bucket_name, Key=f'crm/objects.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + actual = config_bucket.get_object_info_file() + print(actual) + assert actual == 'aaaaaaaaaaaaaaa' From e3421996ec6be7500ba42dfc46bab3a4c4a80122 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Mon, 1 Aug 2022 20:02:30 +0900 Subject: [PATCH 25/68] =?UTF-8?q?feat:=20=E3=82=B3=E3=83=B3=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=82=B0=E3=83=90=E3=82=B1=E3=83=83=E3=83=88=E3=81=AE?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 29 ++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index db4f1c09..db97825a 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,7 +1,5 @@ import pytest from src.aws.s3 import ConfigBucket, S3Resource -from src.system_var import environments -from src.system_var.constants import OBJECT_INFO_FILENAME, OBJECT_INFO_FOLDER @pytest.fixture @@ -27,7 +25,7 @@ class TestS3Resource: s3_resource = S3Resource(bucket_name) s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') - assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_copy(self, s3_test, s3_client, bucket_name): for_copy_bucket = 'for-copy-bucket' @@ -47,7 +45,6 @@ class TestS3Resource: class TestConfigBucket: def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): - # = bucket_name monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') @@ -57,3 +54,27 @@ class TestConfigBucket: actual = config_bucket.get_object_info_file() print(actual) assert actual == 'aaaaaaaaaaaaaaa' + + def test_get_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + s3_client.put_object(Bucket=bucket_name, Key=f'crm/Object.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + actual = config_bucket.get_last_fetch_datetime_file('Object.json') + print(actual) + assert actual == 'aaaaaaaaaaaaaaa' + + def test_put_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + config_bucket.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' + + def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + config_bucket = ConfigBucket() + assert str(config_bucket) == bucket_name From 223e97241f0738d975d8c586bd5f3d0140d4a66c Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 11:55:53 +0900 Subject: [PATCH 26/68] =?UTF-8?q?feat:=20=E3=83=89=E3=82=AD=E3=83=A5?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=8B=E3=82=89=E3=83=AC=E3=83=9D=E3=83=BC=E3=83=88=E3=82=92?= =?UTF-8?q?=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + .../.vscode/python.code-snippets | 17 ++++ ecs/crm-datafetch/Pipfile | 2 + ecs/crm-datafetch/Pipfile.lock | 32 +++++-- ecs/crm-datafetch/tests/aws/test_s3.py | 89 +++++++++++++++++-- ecs/crm-datafetch/tests/conftest.py | 41 +++++++++ ecs/crm-datafetch/tests/docstring_parser.py | 32 +++++++ 7 files changed, 203 insertions(+), 13 deletions(-) create mode 100644 ecs/crm-datafetch/.vscode/python.code-snippets create mode 100644 ecs/crm-datafetch/tests/docstring_parser.py diff --git a/.gitignore b/.gitignore index 88a052ff..16a48619 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ lambda/mbj-newdwh2021-staging-PublishFromLog/node_modules/* __pycache__/ .env **/.vscode/settings.json + +# python test .coverage +.report/ \ No newline at end of file diff --git a/ecs/crm-datafetch/.vscode/python.code-snippets b/ecs/crm-datafetch/.vscode/python.code-snippets new file mode 100644 index 00000000..9f01c623 --- /dev/null +++ b/ecs/crm-datafetch/.vscode/python.code-snippets @@ -0,0 +1,17 @@ +{ + "Generate Test docstring": { + "scope": "python", + "prefix": "\"\"\"\"\"\"", + "body": [ + "\"\"\"", + "Tests:", + " $1", + "Arranges:", + " $2", + "Expects:", + " $3", + "\"\"\"" + ], + "description": "Test docstring (User Snipets)" + } +} diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 3d7988e7..990beb4b 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -6,6 +6,7 @@ name = "pypi" [scripts] test = "pytest tests/" "test:cov" = "pytest --cov=src tests/" +"test:report" = "pytest --cov=src --html=.report/test_result.html tests/" [packages] boto3 = "*" @@ -17,6 +18,7 @@ autopep8 = "*" flake8 = "*" pytest = "*" pytest-cov = "*" +pytest-html = "*" moto = "*" [requires] diff --git a/ecs/crm-datafetch/Pipfile.lock b/ecs/crm-datafetch/Pipfile.lock index 7c13f0c9..cfd16ed2 100644 --- a/ecs/crm-datafetch/Pipfile.lock +++ b/ecs/crm-datafetch/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "f1433a55f486f24bb14d6447713a0cdeeb704542a695103debd9514face495cc" + "sha256": "7006de596d6123ecd56760b584ab75430fa6bcfc0ecd3fdf49f08368ff53477d" }, "pipfile-spec": 6, "requires": { @@ -59,7 +59,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2022.6.15" }, "cffi": { @@ -136,7 +136,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2.1.0" }, "cryptography": { @@ -164,7 +164,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==37.0.4" }, "idna": { @@ -363,7 +363,7 @@ "sha256:5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5", "sha256:81c491092b71f5b276de8c63dfd452be3f322622c48a54f3a497cf913bdfb2f4" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==4.1.0" } }, @@ -405,7 +405,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2022.6.15" }, "cffi": { @@ -482,7 +482,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2.1.0" }, "coverage": { @@ -560,7 +560,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==37.0.4" }, "flake8": { @@ -735,6 +735,22 @@ "index": "pypi", "version": "==3.0.0" }, + "pytest-html": { + "hashes": [ + "sha256:3ee1cf319c913d19fe53aeb0bc400e7b0bc2dbeb477553733db1dad12eb75ee3", + "sha256:b7f82f123936a3f4d2950bc993c2c1ca09ce262c9ae12f9ac763a2401380b455" + ], + "index": "pypi", + "version": "==3.1.1" + }, + "pytest-metadata": { + "hashes": [ + "sha256:39261ee0086f17649b180baf2a8633e1922a4c4b6fcc28a2de7d8127a82541bf", + "sha256:fcd2f416f15be295943527b3c8ba16a44ae5a7141939c90c3dc5ce9d167cf2a5" + ], + "markers": "python_version >= '3.7' and python_version < '4'", + "version": "==2.0.2" + }, "python-dateutil": { "hashes": [ "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index db97825a..b6016b35 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -16,27 +16,71 @@ def s3_test(s3_client, bucket_name): class TestS3Resource: def test_get_object(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3からオブジェクトが取得できるか + Arranges: + - S3をモック化する + - 期待値となるファイルを配置する + Expects: + オブジェクトが取得でき、期待値と正しいこと + """ + # Arrange s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + + # ActAssert s3_resource = S3Resource(bucket_name) actual = s3_resource.get_object('hogehoge/test.txt') + + # Assert assert actual == 'aaaaaaaaaaaaaaa' def test_put_object(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3にオブジェクトをPUTできるか + Arranges: + - S3をモック化する + Expects: + オブジェクトがPUTできること + """ s3_resource = S3Resource(bucket_name) + s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_copy(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3内のオブジェクトを別バケットにコピーできるか + Arranges: + - S3をモック化する + - 期待値となるファイルをコピー元バケットに配置する + Expects: + - コピーされたファイルが存在する + - コピーされたファイルの内容が期待値と一致する + """ for_copy_bucket = 'for-copy-bucket' s3_client.create_bucket(Bucket=for_copy_bucket) s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) s3_resource.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') + actual = s3_client.get_object(Bucket=for_copy_bucket, Key='test.txt') assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' def test_init_raise_no_provide_bucket_name(self): + """ + Cases: + バケット名を指定しない場合、例外となること + Arranges: + + Expects: + 例外が発生すること + """ with pytest.raises(Exception) as e: S3Resource() assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" @@ -45,36 +89,71 @@ class TestS3Resource: class TestConfigBucket: def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト情報ファイルが取得できること + Arranges: + オブジェクト情報ファイルを配置する + Expects: + オブジェクト情報ファイルが文字列として取得でき、期待値と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') s3_client.put_object(Bucket=bucket_name, Key=f'crm/objects.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) actual = config_bucket.get_object_info_file() - print(actual) + assert actual == 'aaaaaaaaaaaaaaa' def test_get_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト最終更新日時ファイルが取得できること + Arranges: + オブジェクト最終更新日時ファイルを配置する + Expects: + オブジェクト最終更新日時ファイルが文字列として取得でき、期待値と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') s3_client.put_object(Bucket=bucket_name, Key=f'crm/Object.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) actual = config_bucket.get_last_fetch_datetime_file('Object.json') - print(actual) + assert actual == 'aaaaaaaaaaaaaaa' def test_put_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト最終更新日時ファイルをPUTできること + Arranges: + + Expects: + オブジェクト最終更新日時ファイルが存在する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) config_bucket.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + Arranges: + + Expects: + 環境変数の設定ファイル配置バケット名と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + config_bucket = ConfigBucket() + assert str(config_bucket) == bucket_name diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py index 1120ced6..e46746bb 100644 --- a/ecs/crm-datafetch/tests/conftest.py +++ b/ecs/crm-datafetch/tests/conftest.py @@ -1,8 +1,12 @@ import os +from datetime import datetime import boto3 import pytest from moto import mock_s3 +from py.xml import html # type: ignore + +from . import docstring_parser @pytest.fixture @@ -19,3 +23,40 @@ def s3_client(aws_credentials): with mock_s3(): conn = boto3.client("s3", region_name="us-east-1") yield conn + + +# 以下、レポート出力用の設定 + +def pytest_html_report_title(report): + # レポートタイトル + report.title = "CRMデータ連携 CRMデータ取得機能 単体機能テスト結果報告書" + + +# # def pytest_configure(config): +# # config._metadata["結果確認者"] = "" # Version情報を追加 + + +def pytest_html_results_table_header(cells): + del cells[2:] + cells.insert(3, html.th("Cases")) + cells.insert(4, html.th("Arranges")) + cells.insert(5, html.th("Expects")) + cells.append(html.th("Time", class_="sortable time", col="time")) + + +def pytest_html_results_table_row(report, cells): + del cells[2:] + cells.insert(3, html.td(html.pre(report.cases))) # 「テスト内容」をレポートに出力 + cells.insert(4, html.td(html.pre(report.arranges))) # 「期待結果」をレポートに出力 + cells.insert(5, html.td(html.pre(report.expects))) # 「期待結果」をレポートに出力 + cells.append(html.td(datetime.now(), class_="col-time")) # ついでに「時間」もレポートに出力 + + +@pytest.hookimpl(hookwrapper=True) +def pytest_runtest_makereport(item, call): + outcome = yield + report = outcome.get_result() + docstring = docstring_parser.parse(str(item.function.__doc__)) + report.cases = docstring.get("Cases", '') # 「テスト内容」を`report`に追加 + report.arranges = docstring.get("Arranges", '') # 「準備作業」を`report`に追加 + report.expects = docstring.get("Expects", '') # 「期待結果」を`report`に追加 diff --git a/ecs/crm-datafetch/tests/docstring_parser.py b/ecs/crm-datafetch/tests/docstring_parser.py new file mode 100644 index 00000000..32ac1579 --- /dev/null +++ b/ecs/crm-datafetch/tests/docstring_parser.py @@ -0,0 +1,32 @@ +import re +from itertools import takewhile + +_section_rgx = re.compile(r"^\s*[a-zA-Z]+:\s*$") +_lspace_rgx = re.compile(r"^\s*") + + +def _parse_section(lines: list) -> list: + matches = map(lambda x: _section_rgx.match(x), lines) + indexes = [i for i, x in enumerate(matches) if x is not None] + return list(map(lambda x: (x, lines[x].strip()[: -1]), indexes)) + + +def _count_lspace(s: str) -> int: + rgx = _lspace_rgx.match(s) + if rgx is not None: + return rgx.end() + return 0 + + +def _parse_content(index: int, lines: list) -> str: + lspace = _count_lspace(lines[index]) + i = index + 1 + contents = takewhile(lambda x: _count_lspace(x) > lspace, lines[i:]) + return "\n".join(map(lambda x: x.strip(), contents)) + + +def parse(docstring: str) -> dict: + """🚧sloppy docstring parser🚧""" + lines = docstring.splitlines() + sections = _parse_section(lines) + return dict(map(lambda x: (x[1], _parse_content(x[0], lines)), sections)) From 96326b1a463163fbbbd79b07a6c3d17a3b09b86c Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 15:32:23 +0900 Subject: [PATCH 27/68] =?UTF-8?q?docs:=20README=E3=81=AB=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=E8=BF=BD=E8=A8=98?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/.env.example | 17 +++++ .../.vscode/python.code-snippets | 2 +- ecs/crm-datafetch/README.md | 72 +++++++++++++++++++ 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 ecs/crm-datafetch/.env.example diff --git a/ecs/crm-datafetch/.env.example b/ecs/crm-datafetch/.env.example new file mode 100644 index 00000000..aa6a3d18 --- /dev/null +++ b/ecs/crm-datafetch/.env.example @@ -0,0 +1,17 @@ +CRM_AUTH_DOMAIN=test +CRM_USER_NAME=test +CRM_USER_PASSWORD=test +CRM_USER_SECURITY_TOKEN=test +CRM_CONFIG_BUCKET=test +CRM_BACKUP_BUCKET=test +IMPORT_DATA_BUCKET=test +OBJECT_INFO_FOLDER=test +OBJECT_INFO_FILENAME=test +PROCESS_RESULT_FOLDER=test +PROCESS_RESULT_FILENAME=test +LAST_FETCH_DATE_FOLDER=test +CRM_IMPORT_DATA_FOLDER=test +LAST_FETCH_DATE_BACKUP_FOLDER=test +RESPONSE_JSON_BACKUP_FOLDER=test +CRM_IMPORT_DATA_BACKUP_FOLDER=test +TZ=Asia/Tokyo diff --git a/ecs/crm-datafetch/.vscode/python.code-snippets b/ecs/crm-datafetch/.vscode/python.code-snippets index 9f01c623..aa7b3501 100644 --- a/ecs/crm-datafetch/.vscode/python.code-snippets +++ b/ecs/crm-datafetch/.vscode/python.code-snippets @@ -12,6 +12,6 @@ " $3", "\"\"\"" ], - "description": "Test docstring (User Snipets)" + "description": "Test docstring (User Snippets)" } } diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index 5a23e966..f0188f5f 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -67,3 +67,75 @@ - 環境変数が必要な場合、直接設定するか、上記JSONの`"envFile"`に設定されたパスに`.env`ファイルを作成し、環境変数を入力する - キーボードの「F5」キーを押して起動する - デバッグモードで実行されるため、適当なところにブレークポイントを置いてデバッグすることができる + +## 単体テストについて + +### 前提 + +- Pytestを使用する + - +- カバレッジも取得したいため、pytest-covも使う + - +- レポートを出力するため、pytest-htmlを使う + - +- S3をモック化したいため、motoをつかう + - +- CRMはテスト用の環境を使いたいため、newdwh_opeのアドレスでDeveloper組織を登録する + +### テスト環境構築 + +- Pipenvの仮想環境下で、以下のコマンドを実行する + +```sh +pipenv install --dev +``` + +- `.env.example`をコピーし、同じ階層に`.env`を作成する +- `.env`の以下に示す環境変数の値をDeveloper組織のものに書き換える + - CRM_AUTH_DOMAIN + - CRM_USER_NAME + - CRM_USER_PASSWORD + - CRM_USER_SECURITY_TOKEN +- 以下のコマンドを実行して単体テストを起動する + +```sh +pipenv run test:cov +``` + +#### 各コマンドの説明 + +- `pipenv run test` + - pytestを使用してテストを実行する + - `tests`フォルダに配置されているテストモジュールを対象に、単体テストを実行する +- `pipenv run test:cov` + - pytestのテスト終了時にカバレッジを収集する + - 標準出力とカバレッジファイル(`.coverage`)に出力される +- `pipenv run test:report` + - pytestのテスト終了時にテスト結果をHTMLで出力する + - `.report/test_result.html`が出力される + +## 単体テストの追加方法 + +- `tests`フォルダ内に、`src`フォルダの構成と同じようにフォルダを作り、`test_<テスト対象のモジュール名.py>`というファイルを作成する + - 例:`src/aws/s3.py`をテストする場合は`tests/aws/test_s3.py`というファイル名にする +- テスト関数はクラスにまとめて、テストスイートとする +- テスト関数にはドキュメントコメントを付け、テスト観点・準備作業・期待値を記載すること + - 上記が出力されるスニペットを用意してある。 + - `""""""`と入力し、「Test docstring (User Snippets)」を選択し、ドキュメントコメントを挿入できる + +```python + +from src.aws.s3 import S3Resource +class TestS3Resource: + def test_get_object(self, s3_test, s3_): + """ + Cases: + S3からオブジェクトが取得できるか + Arranges: + - S3をモック化する + - 期待値となるファイルを配置する + Expects: + オブジェクトが取得でき、期待値と正しいこと + """ + # more code... +``` From d5abe856cf7944834019603d8bc04da25833c0d1 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 28/68] =?UTF-8?q?feat:crm=5Fhistory=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_history.sql diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql new file mode 100644 index 00000000..cf2ca1d8 --- /dev/null +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -0,0 +1,24 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること + +CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) +BEGIN + SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + PREPARE new_history_save_stmt from @new_history_save; + EXECUTE new_history_save_stmt; + + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; + EXECUTE make_history_tmp_create_stmt; + + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + DROP TEMPORARY TABLE make_history_tmp; +END \ No newline at end of file From 16d0b9803b1d95197799591e4c66b14ff696bcdd Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 29/68] =?UTF-8?q?refactor:=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index cf2ca1d8..3247da51 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -2,23 +2,27 @@ CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; END \ No newline at end of file From 0238c401dcca853acab9cea0c338ba63723f01b0 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 30/68] =?UTF-8?q?fix:=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC?= =?UTF-8?q?=E3=83=96=E3=83=AB=E4=BD=9C=E6=88=90=E6=99=82=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 3247da51..caeb09c0 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,7 +10,7 @@ BEGIN EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id'; + SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; From 119731b20353700161b3423f98b39946990455db Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 31/68] =?UTF-8?q?fix:=20=E2=91=A1-2=E3=81=AE=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=83=9F=E3=82=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index caeb09c0..7c183714 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -17,7 +17,7 @@ BEGIN EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NULL'; + SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; From 61dd2a4e0a199545d5126c7ce370d8ec47d7dc47 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 32/68] =?UTF-8?q?fix:=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E6=8C=87=E6=91=98=E4=BF=AE=E6=AD=A3=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=AE=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 54 +++++++++++++++++++--- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7c183714..f9057a5e 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,28 +1,70 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること - CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + SIGNAL SQLSTATE '45000' + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + END; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する - SET @new_history_save = 'UPDATE @@target_table SET start_datetime = @@target_column, end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL'; + SET @new_history_save = ' + UPDATE @@target_table + SET + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" + WHERE + start_datetime IS NULL + AND end_datetime IS NULL + '; SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 - SET @make_history_tmp_create = 'CREATE TEMPORARY TABLE make_history_tmp SELECT id, MIN(@@target_column) AS min_start_datetime, MAX(start_datetime) AS max_start_datetime FROM @@target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY id HAVING count(id) = 2'; + SET @make_history_tmp_create = ' + CREATE TEMPORARY TABLE make_history_tmp + SELECT + id + , MIN(@@target_column) AS min_start_datetime + , MAX(start_datetime) AS max_start_datetime + FROM + @@target_table + WHERE + end_datetime = "9999-12-31 00:00:00" + GROUP BY + id + HAVING + count(id) = 2 + '; SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う - SET @update_end_datetime = 'UPDATE @@target_table tt LEFT JOIN make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND WHERE mht.id IS NOT NULL'; + SET @update_end_datetime = ' + UPDATE @@target_table tt + LEFT JOIN make_history_tmp mht + ON tt.id = mht.id + AND tt.start_datetime = mht.min_start_datetime + SET + start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + WHERE + mht.id IS NOT NULL + '; SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する DROP TEMPORARY TABLE make_history_tmp; + END \ No newline at end of file From a4cd7f946842f529ef96081b048d2710c318235d Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 33/68] =?UTF-8?q?refactor:=E5=8D=8A=E8=A7=92=E3=82=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B9=E3=82=92=E3=82=BF=E3=83=96=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f9057a5e..794abe38 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -9,15 +9,15 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; DROP TEMPORARY TABLE IF EXISTS make_history_tmp; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' UPDATE @@target_table SET - start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + start_datetime = @@target_column + , end_datetime = "9999-12-31 00:00:00" WHERE start_datetime IS NULL AND end_datetime IS NULL From a11f30c057f41e32d786c0ba514a808ceb0f7a82 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 34/68] =?UTF-8?q?refactor:@@=E3=81=8B=E3=82=89=E5=A7=8B?= =?UTF-8?q?=E3=81=BE=E3=82=8B=E6=96=87=E5=AD=97=E3=81=AE=E8=AA=AC=E6=98=8E?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 794abe38..0777912f 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,4 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- @@から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 From 7dfa1cd727d618fa5b79b6307d76fb0ecb6e3483 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 35/68] =?UTF-8?q?fix:=E4=B8=8D=E8=B6=B3=E9=A0=85=E7=9B=AE?= =?UTF-8?q?=E3=81=A8=E8=A8=AD=E5=AE=9A=E9=A0=85=E7=9B=AE=E3=83=9F=E3=82=B9?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 0777912f..00279493 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -18,7 +18,9 @@ BEGIN UPDATE @@target_table SET start_datetime = @@target_column - , end_datetime = "9999-12-31 00:00:00" + , end_datetime = "9999-12-31 00:00:00" + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE start_datetime IS NULL AND end_datetime IS NULL @@ -56,7 +58,9 @@ BEGIN ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET - start_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND + , upd_user = CURRENT_USER() + , upd_date = CURRENT_TIMESTAMP() WHERE mht.id IS NOT NULL '; From 3f0bbc5b578d01f1944181b985d6e70122462d02 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 36/68] =?UTF-8?q?refactor:@@=E2=86=92$$=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=80=81=E4=B8=80=E6=99=82=E3=83=86=E3=83=BC=E3=83=96?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=80=81DEALLOCATE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 45 ++++++++++++++-------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 00279493..a83cc581 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,5 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- @@から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -8,16 +8,25 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - DROP TEMPORARY TABLE IF EXISTS make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; END; + -- ②-3で利用する一時テーブル削除のSQLを準備 + -- 例外処理でも利用するため先に記述 + SET @drop_tmp_table = ' + DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + '; + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + PREPARE new_history_save_stmt from @drop_tmp_table; + -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE @@target_table + UPDATE $$target_table SET - start_datetime = @@target_column + start_datetime = $$target_column , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -25,20 +34,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "@@target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "@@target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; + DEALLOCATE PREPARE ew_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp + CREATE TEMPORARY TABLE make_history_tmp_$$target_table SELECT id - , MIN(@@target_column) AS min_start_datetime + , MIN($$target_column) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - @@target_table + $$target_table WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -46,15 +56,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "@@target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; + DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE @@target_table tt - LEFT JOIN make_history_tmp mht + UPDATE $$target_table tt + LEFT JOIN make_history_tmp_$$target_table mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -64,12 +75,14 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "@@target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; + DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - DROP TEMPORARY TABLE make_history_tmp; + EXECUTE drop_tmp_table; + DEALLOCATE PREPARE drop_tmp_table; END \ No newline at end of file From 6052fd267ea81dd074f4c104ac0bc5f56c034726 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 37/68] =?UTF-8?q?refactor:=E4=B8=80=E6=99=82=E3=83=86?= =?UTF-8?q?=E3=83=BC=E3=83=96=E3=83=AB=E5=90=8D=E3=81=AE=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=80=81=E7=B4=B0=E3=81=8B=E3=81=84=E3=83=9F=E3=82=B9=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index a83cc581..f361a850 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -8,19 +8,19 @@ BEGIN BEGIN GET DIAGNOSTICS CONDITION 1 @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; SIGNAL SQLSTATE '45000' - SET MESSAGE_TEXT = @error_msg, MYSQL_ERRNO = @error_state; + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS make_history_tmp_$$target_table + DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp '; SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); - PREPARE new_history_save_stmt from @drop_tmp_table; + PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' @@ -38,11 +38,11 @@ BEGIN SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; - DEALLOCATE PREPARE ew_history_save_stmt; + DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE make_history_tmp_$$target_table + CREATE TEMPORARY TABLE $$target_table_make_history_tmp SELECT id , MIN($$target_column) AS min_start_datetime @@ -65,7 +65,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table tt - LEFT JOIN make_history_tmp_$$target_table mht + LEFT JOIN $$target_table_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -82,7 +82,7 @@ BEGIN DEALLOCATE PREPARE update_end_datetime_stmt; -- ②-3 「②-1」で作成した一時テーブルを削除する - EXECUTE drop_tmp_table; - DEALLOCATE PREPARE drop_tmp_table; + EXECUTE drop_tmp_table_stmt; + DEALLOCATE PREPARE drop_tmp_table_stmt; END \ No newline at end of file From 1df639363aa772c3028ad321679741faf07ac16d Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 38/68] =?UTF-8?q?fix:=E3=83=88=E3=83=A9=E3=83=B3=E3=82=B6?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E5=87=A6=E7=90=86=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index f361a850..7573bf9b 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -10,10 +10,13 @@ BEGIN @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + ROLLBACK; SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + START TRANSACTION; + -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' @@ -85,4 +88,6 @@ BEGIN EXECUTE drop_tmp_table_stmt; DEALLOCATE PREPARE drop_tmp_table_stmt; + COMMIT; + END \ No newline at end of file From 374093bcc707ecc06b84058ef0c7aa6f096f7048 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:31 +0900 Subject: [PATCH 39/68] =?UTF-8?q?refactor:=E4=B8=A6=E5=88=97=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E8=BF=BD=E5=8A=A0=E3=80=81=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E3=81=A7=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B=E3=83=A6=E3=83=BC?= =?UTF-8?q?=E3=82=B6=E5=A4=89=E6=95=B0=E3=81=AE=E5=88=9D=E6=9C=9F=E5=8C=96?= =?UTF-8?q?=E3=80=81$$=E7=B5=82=E7=AB=AF=E6=96=87=E5=AD=97=E3=81=AE?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 7573bf9b..b60e2681 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -1,5 +1,6 @@ -- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- $$から始まり$$で終わる文字は後からREPLACEする文字を示す独自ルール +-- crm_historyストアドプロシージャは、同一セッション内での並列処理を実行することができない CREATE PROCEDURE crm_history(target_table VARCHAR(255), target_column VARCHAR(255)) BEGIN -- 例外処理 @@ -15,21 +16,22 @@ BEGIN SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; END; + SET @error_state = NULL, @error_msg = NULL; START TRANSACTION; -- ②-3で利用する一時テーブル削除のSQLを準備 -- 例外処理でも利用するため先に記述 SET @drop_tmp_table = ' - DROP TEMPORARY TABLE IF EXISTS $$target_table_make_history_tmp + DROP TEMPORARY TABLE IF EXISTS $$target_table$$_make_history_tmp '; - SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table", target_table); + SET @drop_tmp_table = REPLACE(@drop_tmp_table, "$$target_table$$", target_table); PREPARE drop_tmp_table_stmt from @drop_tmp_table; -- ①-1 Salesforce側で更新されたデータの適用開始日時と適用終了日時を設定する SET @new_history_save = ' - UPDATE $$target_table + UPDATE $$target_table$$ SET - start_datetime = $$target_column + start_datetime = $$target_column$$ , end_datetime = "9999-12-31 00:00:00" , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() @@ -37,21 +39,21 @@ BEGIN start_datetime IS NULL AND end_datetime IS NULL '; - SET @new_history_save = REPLACE(@new_history_save, "$$target_table", target_table); - SET @new_history_save = REPLACE(@new_history_save, "$$target_column", target_column); + SET @new_history_save = REPLACE(@new_history_save, "$$target_table$$", target_table); + SET @new_history_save = REPLACE(@new_history_save, "$$target_column$$", target_column); PREPARE new_history_save_stmt from @new_history_save; EXECUTE new_history_save_stmt; DEALLOCATE PREPARE new_history_save_stmt; -- ②-1 Salesforce側で更新されたデータを検出用一時テーブルの作成 SET @make_history_tmp_create = ' - CREATE TEMPORARY TABLE $$target_table_make_history_tmp + CREATE TEMPORARY TABLE $$target_table$$_make_history_tmp SELECT id - , MIN($$target_column) AS min_start_datetime + , MIN($$target_column$$) AS min_start_datetime , MAX(start_datetime) AS max_start_datetime FROM - $$target_table + $$target_table$$ WHERE end_datetime = "9999-12-31 00:00:00" GROUP BY @@ -59,16 +61,16 @@ BEGIN HAVING count(id) = 2 '; - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table", target_table); - SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column", target_column); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_table$$", target_table); + SET @make_history_tmp_create = REPLACE(@make_history_tmp_create, "$$target_column$$", target_column); PREPARE make_history_tmp_create_stmt from @make_history_tmp_create; EXECUTE make_history_tmp_create_stmt; DEALLOCATE PREPARE make_history_tmp_create_stmt; -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' - UPDATE $$target_table tt - LEFT JOIN $$target_table_make_history_tmp mht + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET @@ -78,8 +80,8 @@ BEGIN WHERE mht.id IS NOT NULL '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; DEALLOCATE PREPARE update_end_datetime_stmt; From 1b6420f970bd03d40d1d1db50bab3270c260d85f Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 40/68] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From fc3ce92e21ed01eab3331eea796e1f0da907280b Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 41/68] =?UTF-8?q?Revert=20"feat:crm=5Fdata=5Fsync=E3=81=AE?= =?UTF-8?q?=E6=96=B0=E8=A6=8F=E4=BD=9C=E6=88=90"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9b8076451f14b1ec07d5751d47cb79bbc1b709db. --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 -------------------- 1 file changed, 41 deletions(-) delete mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql deleted file mode 100644 index c039a18a..00000000 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ /dev/null @@ -1,41 +0,0 @@ --- A5M2で実行時にSQL区切り文字を「;」以外にすること --- $$から始まる文字は後からREPLACEする文字を示す独自ルール --- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない -CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) -BEGIN - -- 例外処理 - -- エラーが発生した場合に一時テーブルの削除を実施 - DECLARE EXIT HANDLER FOR SQLEXCEPTION - BEGIN - GET DIAGNOSTICS CONDITION 1 - @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; - ROLLBACK; - SIGNAL SQLSTATE '45000' - SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; - END; - - SET @error_state = NULL, @error_msg = NULL; - START TRANSACTION; - - -- ①-1 Salesforce側で物理削除されたデータを検出し更新する - SET @update_end_datetime = ' - UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ - SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() - WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" - '; - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); - PREPARE update_end_datetime_stmt from @update_end_datetime; - EXECUTE update_end_datetime_stmt; - - COMMIT; -END \ No newline at end of file From c182d377f41edb29402bfd0c9482a8b3c334574d Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 42/68] =?UTF-8?q?refactor:=E2=91=A1-2=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=B5=90=E5=90=88=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97Where?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index b60e2681..366cde70 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,15 +70,13 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table$$_make_history_tmp mht + JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET end_datetime = mht.max_start_datetime - INTERVAL 1 SECOND , upd_user = CURRENT_USER() , upd_date = CURRENT_TIMESTAMP() - WHERE - mht.id IS NOT NULL '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); From 580b94ee86b7c018779f6c28f5f98d5fb2b804e3 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 43/68] =?UTF-8?q?refactor:INNER=E3=82=92=E6=98=8E=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E3=81=AB=E8=A8=98=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_history.sql b/rds_mysql/stored_procedure/crm_history.sql index 366cde70..10bb0095 100644 --- a/rds_mysql/stored_procedure/crm_history.sql +++ b/rds_mysql/stored_procedure/crm_history.sql @@ -70,7 +70,7 @@ BEGIN -- ②-2 「②-1」で取得した全件に更新処理を行う SET @update_end_datetime = ' UPDATE $$target_table$$ tt - JOIN $$target_table$$_make_history_tmp mht + INNER JOIN $$target_table$$_make_history_tmp mht ON tt.id = mht.id AND tt.start_datetime = mht.min_start_datetime SET From d92c5418cf2c349dfaf879e0c83378830e017cf9 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 44/68] =?UTF-8?q?feat:crm=5Fdata=5Fsync=E3=81=AE=E6=96=B0?= =?UTF-8?q?=E8=A6=8F=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rds_mysql/stored_procedure/crm_data_sync.sql diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql new file mode 100644 index 00000000..c039a18a --- /dev/null +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -0,0 +1,41 @@ +-- A5M2で実行時にSQL区切り文字を「;」以外にすること +-- $$から始まる文字は後からREPLACEする文字を示す独自ルール +-- crm_data_syncストアドプロシージャは、同一セッション内での並列処理を実行することができない +CREATE PROCEDURE crm_data_sync(target_table VARCHAR(255), target_table_all VARCHAR(255), target_column VARCHAR(255)) +BEGIN + -- 例外処理 + -- エラーが発生した場合に一時テーブルの削除を実施 + DECLARE EXIT HANDLER FOR SQLEXCEPTION + BEGIN + GET DIAGNOSTICS CONDITION 1 + @error_state = RETURNED_SQLSTATE, @error_msg = MESSAGE_TEXT; + ROLLBACK; + SIGNAL SQLSTATE '45000' + SET MYSQL_ERRNO = @error_state, MESSAGE_TEXT = @error_msg; + END; + + SET @error_state = NULL, @error_msg = NULL; + START TRANSACTION; + + -- ①-1 Salesforce側で物理削除されたデータを検出し更新する + SET @update_end_datetime = ' + UPDATE $$target_table$$ tt + LEFT JOIN $$target_table_all$$ tta + ON tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + SET + tt.end_datetime = CURRENT_TIMESTAMP() + , tt.upd_user = CURRENT_USER() + , tt.upd_date = CURRENT_TIMESTAMP() + WHERE + tta.id IS NULL + AND tt.end_datetime = "9999-12-31 00:00:00" + '; + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + PREPARE update_end_datetime_stmt from @update_end_datetime; + EXECUTE update_end_datetime_stmt; + + COMMIT; +END \ No newline at end of file From 7447d54323f7fb39cd45203c6647ce565b5b31f0 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 45/68] =?UTF-8?q?refactor:EXISTS=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index c039a18a..01d27b9a 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -20,16 +20,21 @@ BEGIN -- ①-1 Salesforce側で物理削除されたデータを検出し更新する SET @update_end_datetime = ' UPDATE $$target_table$$ tt - LEFT JOIN $$target_table_all$$ tta - ON tt.id = tta.id - AND tt.$$target_column$$ = tta.$$target_column$$ SET - tt.end_datetime = CURRENT_TIMESTAMP() - , tt.upd_user = CURRENT_USER() - , tt.upd_date = CURRENT_TIMESTAMP() + tt.end_datetime = CURRENT_TIMESTAMP () + , tt.upd_user = CURRENT_USER () + , tt.upd_date = CURRENT_TIMESTAMP () WHERE - tta.id IS NULL - AND tt.end_datetime = "9999-12-31 00:00:00" + tt.end_datetime = "9999-12-31 00:00:00" + AND NOT EXISTS ( + SELECT + * + FROM + $$target_table_all$$ tta + WHERE + tt.id = tta.id + AND tt.$$target_column$$ = tta.$$target_column$$ + ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); From fa1c2b7f83a2604e6e4d01830157131481753dad Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 46/68] =?UTF-8?q?refactor:EXISTS=E3=81=AE=E4=B8=AD?= =?UTF-8?q?=E8=BA=AB=E3=81=AESELECT=E5=8F=A5=E3=82=92ID=E3=81=AE=E3=81=BF?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 01d27b9a..155bfb99 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - * + tt.id FROM $$target_table_all$$ tta WHERE @@ -37,8 +37,8 @@ BEGIN ) '; SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table$$", target_table); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); - SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_table_all$$", target_table_all); + SET @update_end_datetime = REPLACE(@update_end_datetime, "$$target_column$$", target_column); PREPARE update_end_datetime_stmt from @update_end_datetime; EXECUTE update_end_datetime_stmt; From 150a83670d2a1dbec2c7bbf14da6c7310a2dcf24 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 47/68] =?UTF-8?q?refactor:=E5=8F=82=E7=85=A7ID=E3=82=92tta?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rds_mysql/stored_procedure/crm_data_sync.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_mysql/stored_procedure/crm_data_sync.sql b/rds_mysql/stored_procedure/crm_data_sync.sql index 155bfb99..e9986c0f 100644 --- a/rds_mysql/stored_procedure/crm_data_sync.sql +++ b/rds_mysql/stored_procedure/crm_data_sync.sql @@ -28,7 +28,7 @@ BEGIN tt.end_datetime = "9999-12-31 00:00:00" AND NOT EXISTS ( SELECT - tt.id + tta.id FROM $$target_table_all$$ tta WHERE From 93fedc6a30225ab0c5ddc4966edbc590371acdd5 Mon Sep 17 00:00:00 2001 From: y-ono-r <95060536+y-ono-r@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 48/68] =?UTF-8?q?feat:CRM=E3=81=AE=E6=8B=A1=E5=BC=B5SQL?= =?UTF-8?q?=E3=80=81=E8=A8=AD=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s3/data/crm/settings/CRM_Account.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare.txt | 13 +++++ s3/data/crm/settings/CRM_AccountShare_ex.sql | 1 + .../CRM_Account_Territory_Loader_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Account_ex.sql | 1 + .../settings/CRM_Approved_Document_vod__c.txt | 13 +++++ .../crm/settings/CRM_Call2_Detail_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Discussion_vod__c.txt | 13 +++++ .../settings/CRM_Call2_Key_Message_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Call2_vod__c.txt | 13 +++++ .../settings/CRM_Call_Clickstream_vod__c.txt | 13 +++++ .../crm/settings/CRM_Child_Account_vod__c.txt | 13 +++++ .../settings/CRM_Child_Account_vod__c_ex.sql | 1 + .../CRM_Clm_Presentation_Slide_vod__c.txt | 13 +++++ .../settings/CRM_Clm_Presentation_vod__c.txt | 13 +++++ .../settings/CRM_Coaching_Report_vod__c.txt | 13 +++++ .../settings/CRM_Consent_Header_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Line_vod__c.txt | 13 +++++ .../crm/settings/CRM_Consent_Type_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Contact.txt | 13 +++++ s3/data/crm/settings/CRM_Contact_ex.sql | 1 + ...Dynamic_Attribute_Configuration_vod__c.txt | 13 +++++ .../settings/CRM_Dynamic_Attribute_vod__c.txt | 13 +++++ .../settings/CRM_Email_Activity_vod__c.txt | 13 +++++ .../settings/CRM_Event_Attendee_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Group.txt | 13 +++++ s3/data/crm/settings/CRM_Group_ex.sql | 1 + .../crm/settings/CRM_Key_Message_vod__c.txt | 13 +++++ .../CRM_MSJ_Hospital_Medical_Regimen__c.txt | 13 +++++ .../CRM_MSJ_Inquiry_Assignment__c.txt | 13 +++++ .../settings/CRM_MSJ_MR_Weekly_Report__c.txt | 13 +++++ .../CRM_MSJ_Medical_Event_Evaluation__c.txt | 13 +++++ .../settings/CRM_MSJ_Medical_Regimen__c.txt | 13 +++++ s3/data/crm/settings/CRM_MSJ_Patient__c.txt | 13 +++++ .../crm/settings/CRM_Medical_Event_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Inquiry_vod__c.txt | 13 +++++ .../settings/CRM_Medical_Insight_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_Line_vod__c.txt | 13 +++++ .../CRM_Multichannel_Activity_vod__c.txt | 13 +++++ .../CRM_Multichannel_Consent_vod__c.txt | 13 +++++ .../settings/CRM_My_Setup_Products_vod__c.txt | 13 +++++ .../CRM_ObjectTerritory2Association.txt | 13 +++++ .../CRM_ObjectTerritory2Association_ex.sql | 1 + .../crm/settings/CRM_Product_Group_vod__c.txt | 13 +++++ .../settings/CRM_Product_Metrics_vod__c.txt | 13 +++++ .../CRM_Product_Metrics_vod__c_ex.sql | 1 + s3/data/crm/settings/CRM_Product_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Profile.txt | 13 +++++ s3/data/crm/settings/CRM_Profile_ex.sql | 1 + .../settings/CRM_Question_Response_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_RecordType.txt | 13 +++++ .../settings/CRM_Remote_Meeting_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Email_vod__c.txt | 13 +++++ .../crm/settings/CRM_Sent_Fragment_vod__c.txt | 13 +++++ .../settings/CRM_Survey_Question_vod__c.txt | 13 +++++ .../crm/settings/CRM_Survey_Target_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Survey_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2.txt | 13 +++++ s3/data/crm/settings/CRM_Territory2_ALL.txt | 14 +++++ s3/data/crm/settings/CRM_Territory2_ex.sql | 2 + .../CRM_Time_Off_Territory_vod__c.txt | 13 +++++ s3/data/crm/settings/CRM_User.txt | 13 +++++ s3/data/crm/settings/CRM_UserRole.txt | 13 +++++ .../CRM_UserTerritory2Association.txt | 13 +++++ .../CRM_UserTerritory2Association_ALL.txt | 14 +++++ .../CRM_UserTerritory2Association_ex.sql | 2 + s3/data/crm/settings/configmap.config | 58 +++++++++++++++++++ 67 files changed, 800 insertions(+) create mode 100644 s3/data/crm/settings/CRM_Account.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare.txt create mode 100644 s3/data/crm/settings/CRM_AccountShare_ex.sql create mode 100644 s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Account_ex.sql create mode 100644 s3/data/crm/settings/CRM_Approved_Document_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call2_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Header_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Consent_Type_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Contact.txt create mode 100644 s3/data/crm/settings/CRM_Contact_ex.sql create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Email_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Group.txt create mode 100644 s3/data/crm/settings/CRM_Group_ex.sql create mode 100644 s3/data/crm/settings/CRM_Key_Message_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt create mode 100644 s3/data/crm/settings/CRM_MSJ_Patient__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Event_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_Group_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql create mode 100644 s3/data/crm/settings/CRM_Product_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Profile.txt create mode 100644 s3/data/crm/settings/CRM_Profile_ex.sql create mode 100644 s3/data/crm/settings/CRM_Question_Response_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_RecordType.txt create mode 100644 s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Email_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Question_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_Target_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Survey_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_Territory2.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ALL.txt create mode 100644 s3/data/crm/settings/CRM_Territory2_ex.sql create mode 100644 s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt create mode 100644 s3/data/crm/settings/CRM_User.txt create mode 100644 s3/data/crm/settings/CRM_UserRole.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt create mode 100644 s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql create mode 100644 s3/data/crm/settings/configmap.config diff --git a/s3/data/crm/settings/CRM_Account.txt b/s3/data/crm/settings/CRM_Account.txt new file mode 100644 index 00000000..bee3992c --- /dev/null +++ b/s3/data/crm/settings/CRM_Account.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +248 +Id,IsDeleted,MasterRecordId,Name,LastName,FirstName,Salutation,RecordTypeId,Phone,Fax,Website,PhotoUrl,NumberOfEmployees,Ownership,OwnerId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,IsExcludedFromRealign,PersonContactId,IsPersonAccount,PersonMailingStreet,PersonMailingCity,PersonMailingState,PersonMailingPostalCode,PersonMailingCountry,PersonMailingLatitude,PersonMailingLongitude,PersonMailingGeocodeAccuracy,PersonMailingAddress,PersonOtherStreet,PersonOtherCity,PersonOtherState,PersonOtherPostalCode,PersonOtherCountry,PersonOtherLatitude,PersonOtherLongitude,PersonOtherGeocodeAccuracy,PersonOtherAddress,PersonMobilePhone,PersonHomePhone,PersonOtherPhone,PersonAssistantPhone,PersonEmail,PersonTitle,PersonDepartment,PersonAssistantName,PersonBirthdate,PersonHasOptedOutOfEmail,PersonHasOptedOutOfFax,PersonDoNotCall,PersonLastCURequestDate,PersonLastCUUpdateDate,PersonEmailBouncedReason,PersonEmailBouncedDate,PersonIndividualId,Jigsaw,JigsawCompanyId,AccountSource,SicDesc,External_ID_vod__c,Credentials_vod__c,Territory_vod__c,Exclude_from_Zip_to_Terr_Processing_vod__c,Group_Specialty_1_vod__c,Group_Specialty_2_vod__c,Specialty_1_vod__c,Specialty_2_vod__c,Formatted_Name_vod__c,Territory_Test_vod__c,Mobile_ID_vod__c,Gender_vod__c,ID_vod__c,Do_Not_Sync_Sales_Data_vod__c,ID2_vod__c,Preferred_Name_vod__c,Sample_Default_vod__c,Segmentations_vod__c,Restricted_Products_vod__c,Payer_Id_vod__c,Alternate_Name_vod__c,Do_Not_Call_vod__c,MSJ_Beds__c,Spend_Amount__c,PDRP_Opt_Out_vod__c,Spend_Status_Value_vod__c,PDRP_Opt_Out_Date_vod__c,Spend_Status_vod__c,Enable_Restricted_Products_vod__c,Call_Reminder_vod__c,Account_Group_vod__c,Primary_Parent_vod__c,Color_vod__c,Middle_vod__c,Suffix_vod__c,MSJ_Type__c,No_Orders_vod__c,MSJ_BU_ONC__c,MSJ_BU_FE__c,Account_Search_FirstLast_vod__c,Account_Search_LastFirst_vod__c,MSJ_Operation__c,Practice_at_Hospital_vod__c,Practice_Near_Hospital_vod__c,Do_Not_Create_Child_Account_vod__c,Total_MDs_DOs__c,AHA__c,Order_Type_vod__c,NPI_vod__c,ME__c,Speaker__c,Investigator_vod__c,Default_Order_Type_vod__c,Tax_Status__c,Model__c,Offerings__c,Departments__c,Account_Type__c,MSJ_ONC_Tier__c,Account_Search_Business_vod__c,Business_Professional_Person_vod__c,Hospital_Type_vod__c,Account_Class_vod__c,Furigana_vod__c,MSJ_JISART__c,Total_Revenue_000__c,Net_Income_Loss_000__c,PMPM_Income_Loss_000__c,Commercial_Premiums_PMPM__c,Medical_Loss_Ratio__c,Medical_Expenses_PMPM__c,Commercial_Patient_Days_1000__c,HMO_Market_Shr__c,HMO__c,HMO_POS__c,PPO__c,PPO_POS__c,Medicare__c,Medicaid__c,MSJ_HP_Name_E__c,MSJ_Department__c,MSJ_Date_Of_Birth__c,MSJ_FE_GF_Potential__c,MSJ_FE_SZ_Potential__c,MSJ_EB_CRC_Ladder__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,Business_Description__c,Regional_Strategy__c,Contracts_Process__c,MSJ_GF_segment__c,MSJ_DCF_DR_Code__c,MSJ_SZ_Segment__c,MSJ_Remark__c,MSJ_Title__c,MSJ_Role__c,MSJ_Kana__c,MSJ_Specialism__c,MSJ_Graduated_from__c,MSJ_Year_Graduation__c,Target__c,KOL_vod__c,MSJ_EPPV_Code__c,MSJ_DCF_HP_Code__c,Total_Lives__c,Total_Physicians_Enrolled__c,MSJ_Delete__c,MSJ_KOL_LOL__c,MSJ_ONC_Status__c,Account_Identifier_vod__c,Approved_Email_Opt_Type_vod__c,Language_vod__c,MSJ_KRAS_Routine_Date__c,MSJ_KRAS_Routine__c,MSJ_DRP_Target__c,MSJ_Fertility_Evaluation_Score__c,MSJ_Fertility_Tracking_Last_Modify_Date__c,Total_Pharmacists__c,MSJ_Number_of_Gonadotropin__c,MSJ_Number_of_IUI_cycle__c,MSJ_Number_of_OI_monthly_cycle__c,MSJ_OI_Protocol_learning_level__c,MSJ_H_N_Tier__c,MSJ_XLK_Segment__c,MSJ_XLK_Tier__c,Career_Status_vod__c,Photo_vod__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_FE_CE_Potential__c,MSJ_FE_1C_potential__c,MSJ_FE_OV_potential__c,MSJ_FE_Tech_potential__c,MSJ_CE_segment__c,MSJ_1C_segment__c,MSJ_OV_segment__c,MSJ_Tech_segment__c,MSJ_Target_Call_Num__c,MSJ_DR_Change_Log__c,MSJ_Global_scientific_exposure__c,MSJ_H_index__c,MSJ_Num_of_Article_3Y__c,MSJ_Num_of_Article__c,MSJ_Num_of_Article_as_1st_Author_3Y__c,MSJ_Num_of_article_growth_rate_3Y__c,MSJ_Num_of_cited_3Y__c,MSJ_Num_of_impact_factor_3Y__c,MSJ_impact_factor_as_1st_Author_3Y__c,EMDS_Has_Pipeline_Opportunity__c,EMDS_Pipeline_Count__c,MSJ_BVC_Segment__c,MSJ_BVC_Tier__c,MSJ_BVC_AcctOpen__c,MSJ_BVC_MCC_Patients__c,MSJ_ONC_HP_Segment__c,MSJ_AE_Department__c,MSJ_AE_Facility__c,MSJ_AE_Name__c,MSJ_AE_Title__c,MSJ_Email__c,MSJ_FE_GF2_Potential__c,MSJ_FE_Location_potential__c,MSJ_GF2_segment__c,MSJ_OPTIN_target__c,MSJ_Merck_Specialty1__c,MSJ_Merck_Specialty2__c,MSJ_Marketing_Cloud_Integration__c,MSJ_Marketing_Cloud1__c,MSJ_Marketing_Cloud2__c,MSJ_Marketing_Cloud3__c,MSJ_Marketing_Cloud4__c,MSJ_Medical_Department__c,MSJ_Marketing_Cloud0__c,Mobile_ID_vod__pc,H1Insights__H1_NPI_Value_for_Testing__pc,H1Insights__H1_Person_ID__pc,H1Insights__H1_Request_Status__pc,H1Insights__H1_URL__pc,H1Insights__NPI_Number__pc,H1Insights__NPI_Number_for_H1_Insights__pc,MSJ_Marketing_Cloud_Integration__pc +id,is_deleted,master_record_id,name,last_name,first_name,salutation,record_type_id,phone,fax,website,photo_url,number_of_employees,ownership,owner_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,is_excluded_from_realign,person_contact_id,is_person_account,person_mailing_street,person_mailing_city,person_mailing_state,person_mailing_postal_code,person_mailing_country,person_mailing_latitude,person_mailing_longitude,person_mailing_geocode_accuracy,person_mailing_address,person_other_street,person_other_city,person_other_state,person_other_postal_code,person_other_country,person_other_latitude,person_other_longitude,person_other_geocode_accuracy,person_other_address,person_mobile_phone,person_home_phone,person_other_phone,person_assistant_phone,person_email,person_title,person_department,person_assistant_name,person_birthdate,person_has_opted_out_of_email,person_has_opted_out_of_fax,person_do_not_call,person_last_curequest_date,person_last_cuupdate_date,person_email_bounced_reason,person_email_bounced_date,person_individual_id,jigsaw,jigsaw_company_id,account_source,sic_desc,external_id_vod__c,credentials_vod__c,territory_vod__c,exclude_from_zip_to_terr_processing_vod__c,group_specialty_1_vod__c,group_specialty_2_vod__c,specialty_1_vod__c,specialty_2_vod__c,formatted_name_vod__c,territory_test_vod__c,mobile_id_vod__c,gender_vod__c,id_vod__c,do_not_sync_sales_data_vod__c,id2_vod__c,preferred_name_vod__c,sample_default_vod__c,segmentations_vod__c,restricted_products_vod__c,payer_id_vod__c,alternate_name_vod__c,do_not_call_vod__c,msj_beds__c,spend_amount__c,pdrp_opt_out_vod__c,spend_status_value_vod__c,pdrp_opt_out_date_vod__c,spend_status_vod__c,enable_restricted_products_vod__c,call_reminder_vod__c,account_group_vod__c,primary_parent_vod__c,color_vod__c,middle_vod__c,suffix_vod__c,msj_type__c,no_orders_vod__c,msj_bu_onc__c,msj_bu_fe__c,account_search_first_last_vod__c,account_search_last_first_vod__c,msj_operation__c,practice_at_hospital_vod__c,practice_near_hospital_vod__c,do_not_create_child_account_vod__c,total_mds_dos__c,aha__c,order_type_vod__c,npi_vod__c,me__c,speaker__c,investigator_vod__c,default_order_type_vod__c,tax_status__c,model__c,offerings__c,departments__c,account_type__c,msj_onc_tier__c,account_search_business_vod__c,business_professional_person_vod__c,hospital_type_vod__c,account_class_vod__c,furigana_vod__c,msj_jisart__c,total_revenue_000__c,net_income_loss_000__c,pmpm_income_loss_000__c,commercial_premiums_pmpm__c,medical_loss_ratio__c,medical_expenses_pmpm__c,commercial_patient_days_1000__c,hmo_market_shr__c,hmo__c,hmo_pos__c,ppo__c,ppo_pos__c,medicare__c,medicaid__c,msj_hp_name_e__c,msj_department__c,msj_date_of_birth__c,msj_fe_gf_potential__c,msj_fe_sz_potential__c,msj_eb_crc_ladder__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,business_description__c,regional_strategy__c,contracts_process__c,msj_gf_segment__c,msj_dcf_dr_code__c,msj_sz_segment__c,msj_remark__c,msj_title__c,msj_role__c,msj_kana__c,msj_specialism__c,msj_graduated_from__c,msj_year_graduation__c,target__c,kol_vod__c,msj_eppv_code__c,msj_dcf_hp_code__c,total_lives__c,total_physicians_enrolled__c,msj_delete__c,msj_kol_lol__c,msj_onc_status__c,account_identifier_vod__c,approved_email_opt_type_vod__c,language_vod__c,msj_kras_routine_date__c,msj_kras_routine__c,msj_drp_target__c,msj_fertility_evaluation_score__c,msj_fertility_tracking_last_modify_date__c,total_pharmacists__c,msj_number_of_gonadotropin__c,msj_number_of_iui_cycle__c,msj_number_of_oi_monthly_cycle__c,msj_oi_protocol_learning_level__c,msj_h_n_tier__c,msj_xlk_segment__c,msj_xlk_tier__c,career_status_vod__c,photo_vod__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_fe_ce_potential__c,msj_fe_1_c_potential__c,msj_fe_ov_potential__c,msj_fe_tech_potential__c,msj_ce_segment__c,msj_1_c_segment__c,msj_ov_segment__c,msj_tech_segment__c,msj_target_call_num__c,msj_dr_change_log__c,msj_global_scientific_exposure__c,msj_h_index__c,msj_num_of_article_3_y__c,msj_num_of_article__c,msj_num_of_article_as_1st_author_3_y__c,msj_num_of_article_growth_rate_3_y__c,msj_num_of_cited_3_y__c,msj_num_of_impact_factor_3_y__c,msj_impact_factor_as_1st_author_3_y__c,emds_has_pipeline_opportunity__c,emds_pipeline_count__c,msj_bvc_segment__c,msj_bvc_tier__c,msj_bvc_acct_open__c,msj_bvc_mcc_patients__c,msj_onc_hp_segment__c,msj_ae_department__c,msj_ae_facility__c,msj_ae_name__c,msj_ae_title__c,msj_email__c,msj_fe_gf2_potential__c,msj_fe_location_potential__c,msj_gf2_segment__c,msj_optin_target__c,msj_merck_specialty1__c,msj_merck_specialty2__c,msj_marketing_cloud_integration__c,msj_marketing_cloud1__c,msj_marketing_cloud2__c,msj_marketing_cloud3__c,msj_marketing_cloud4__c,msj_medical_department__c,msj_marketing_cloud0__c,mobile_id_vod__pc,h1_insights__h1_npi_value_for_testing__pc,h1_insights__h1_person_id__pc,h1_insights__h1_request_status__pc,h1_insights__h1_url__pc,h1_insights__npi_number__pc,h1_insights__npi_number_for_h1_insights__pc,msj_marketing_cloud_integration__pc +src02.crm_account +org02.crm_account +CRM_Account_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare.txt b/s3/data/crm/settings/CRM_AccountShare.txt new file mode 100644 index 00000000..8176af1e --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +11 +Id,AccountId,UserOrGroupId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,RowCause,LastModifiedDate,LastModifiedById,IsDeleted +id,account_id,user_or_group_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,row_cause,last_modified_date,last_modified_by_id,is_deleted +src02.crm_account_share +org02.crm_account_share +CRM_AccountShare_ex.sql + diff --git a/s3/data/crm/settings/CRM_AccountShare_ex.sql b/s3/data/crm/settings/CRM_AccountShare_ex.sql new file mode 100644 index 00000000..d18e68db --- /dev/null +++ b/s3/data/crm/settings/CRM_AccountShare_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account_share', 'last_modified_date'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt new file mode 100644 index 00000000..676e8b39 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_Territory_Loader_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +19 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,External_ID_vod__c,Territory_vod__c,Mobile_ID_vod__c,Territory_To_Add_vod__c,Territory_to_Drop_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,external_id_vod__c,territory_vod__c,mobile_id_vod__c,territory_to_add_vod__c,territory_to_drop_vod__c +src02.crm_account_territory_loader_vod__c +org02.crm_account_territory_loader_vod__c + + diff --git a/s3/data/crm/settings/CRM_Account_ex.sql b/s3/data/crm/settings/CRM_Account_ex.sql new file mode 100644 index 00000000..792d7a28 --- /dev/null +++ b/s3/data/crm/settings/CRM_Account_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_account', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt new file mode 100644 index 00000000..23683a8c --- /dev/null +++ b/s3/data/crm/settings/CRM_Approved_Document_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +53 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Detail_Group_vod__c,Document_Description_vod__c,Document_Host_URL_vod__c,Document_ID_vod__c,Document_Last_Mod_DateTime_vod__c,Email_Allows_Documents_vod__c,Email_Domain_vod__c,Email_Fragment_HTML_vod__c,Email_From_Address_vod__c,Email_From_Name_vod__c,Email_HTML_1_vod__c,Email_HTML_2_vod__c,Email_ReplyTo_Address_vod__c,Email_ReplyTo_Name_vod__c,Email_Subject_vod__c,Email_Template_Fragment_Document_ID_vod__c,Email_Template_Fragment_HTML_vod__c,ISI_Document_ID_vod__c,Language_vod__c,Other_Document_ID_List_vod__c,PI_Document_ID_vod__c,Piece_Document_ID_vod__c,Product_vod__c,Status_vod__c,Territory_vod__c,Vault_Instance_ID_vod__c,Allow_Any_Product_Fragment_vod__c,Allowed_Document_IDs_vod__c,Engage_Document_Id_vod__c,Vault_Document_ID_vod__c,Key_Message_vod__c,Events_Management_Subtype_vod__c,Survey_vod__c,Content_Type_vod__c,Bcc_vod__c,Audience_vod__c,WeChat_Template_ID_vod__c,Check_Consent_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,detail_group_vod__c,document_description_vod__c,document_host_url_vod__c,document_id_vod__c,document_last_mod_date_time_vod__c,email_allows_documents_vod__c,email_domain_vod__c,email_fragment_html_vod__c,email_from_address_vod__c,email_from_name_vod__c,email_html_1_vod__c,email_html_2_vod__c,email_reply_to_address_vod__c,email_reply_to_name_vod__c,email_subject_vod__c,email_template_fragment_document_id_vod__c,email_template_fragment_html_vod__c,isi_document_id_vod__c,language_vod__c,other_document_id_list_vod__c,pi_document_id_vod__c,piece_document_id_vod__c,product_vod__c,status_vod__c,territory_vod__c,vault_instance_id_vod__c,allow_any_product_fragment_vod__c,allowed_document_ids_vod__c,engage_document_id_vod__c,vault_document_id_vod__c,key_message_vod__c,events_management_subtype_vod__c,survey_vod__c,content_type_vod__c,bcc_vod__c,audience_vod__c,we_chat_template_id_vod__c,check_consent_vod__c +src02.crm_approved_document_vod__c +org02.crm_approved_document_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt new file mode 100644 index 00000000..67a53029 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Detail_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Is_Parent_Call_vod__c,Call2_vod__c,Product_vod__c,Detail_Priority_vod__c,Mobile_ID_vod__c,Override_Lock_vod__c,Type_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,is_parent_call_vod__c,call2_vod__c,product_vod__c,detail_priority_vod__c,mobile_id_vod__c,override_lock_vod__c,type_vod__c +src02.crm_call2_detail_vod__c +org02.crm_call2_detail_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt new file mode 100644 index 00000000..c86c840c --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Discussion_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +44 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Activity__c,Comments__c,Contact_vod__c,Call_Date_vod__c,Product_Strategy_vod__c,Product_Tactic_vod__c,Restricted_Comments__c,Product_vod__c,Presentation__c,Discussion_Topics__c,Slides__c,User_vod__c,Indication__c,Mobile_ID_vod__c,Medical_Event_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,zvod_Product_Map_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Account_Tactic_vod__c,MSJ_Material_Type__c,MSJ_Discussion_Contents__c,MSJ_IST_Minutes__c,MSJ_Off_Label_Minutes__c,MSJ_Discussion_Objectives__c,MSJ_Insight__c,EMDS_Materials__c,EMDS_Topic__c,MSJ_Visit_Purpose__c,MSJ_Insight_Count__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,activity__c,comments__c,contact_vod__c,call_date_vod__c,product_strategy_vod__c,product_tactic_vod__c,restricted_comments__c,product_vod__c,presentation__c,discussion_topics__c,slides__c,user_vod__c,indication__c,mobile_id_vod__c,medical_event_vod__c,is_parent_call_vod__c,override_lock_vod__c,zvod_product_map_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,account_tactic_vod__c,msj_material_type__c,msj_discussion_contents__c,msj_ist_minutes__c,msj_off_label_minutes__c,msj_discussion_objectives__c,msj_insight__c,emds_materials__c,emds_topic__c,msj_visit_purpose__c,msj_insight_count__c +src02.crm_call2_discussion_vod__c +org02.crm_call2_discussion_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt new file mode 100644 index 00000000..40267bd0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Call2_vod__c,Reaction_vod__c,Product_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Contact_vod__c,Call_Date_vod__c,User_vod__c,Category_vod__c,Vehicle_vod__c,Is_Parent_Call_vod__c,Override_Lock_vod__c,CLM_ID_vod__c,Slide_Version_vod__c,Duration_vod__c,Presentation_ID_vod__c,Start_Time_vod__c,Attendee_Type_vod__c,Entity_Reference_Id_vod__c,Segment_vod__c,Display_Order_vod__c,Clm_Presentation_Name_vod__c,Clm_Presentation_Version_vod__c,Clm_Presentation_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,call2_vod__c,reaction_vod__c,product_vod__c,key_message_vod__c,mobile_id_vod__c,contact_vod__c,call_date_vod__c,user_vod__c,category_vod__c,vehicle_vod__c,is_parent_call_vod__c,override_lock_vod__c,clm_id_vod__c,slide_version_vod__c,duration_vod__c,presentation_id_vod__c,start_time_vod__c,attendee_type_vod__c,entity_reference_id_vod__c,segment_vod__c,display_order_vod__c,clm_presentation_name_vod__c,clm_presentation_version_vod__c,clm_presentation_vod__c +src02.crm_call2_key_message_vod__c +org02.crm_call2_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call2_vod__c.txt b/s3/data/crm/settings/CRM_Call2_vod__c.txt new file mode 100644 index 00000000..6b2c330e --- /dev/null +++ b/s3/data/crm/settings/CRM_Call2_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +205 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Call_Comments_vod__c,Sample_Card_vod__c,Add_Detail_vod__c,Property_vod__c,Account_vod__c,zvod_Product_Discussion_vod__c,Status_vod__c,Parent_Address_vod__c,Account_Plan_vod__c,zvod_SaveNew_vod__c,Next_Call_Notes_vod__c,Pre_Call_Notes_vod__c,Mobile_ID_vod__c,zvod_Account_Credentials_vod_c_vod__c,zvod_Account_Preferred_Name_vod_c_vod__c,zvod_Account_Sample_Status_vod_c_vod__c,zvod_Attendees_vod__c,zvod_Key_Messages_vod__c,zvod_Detailing_vod__c,zvod_Expenses_vod__c,zvod_Followup_vod__c,zvod_Samples_vod__c,zvod_Save_vod__c,zvod_Submit_vod__c,zvod_Delete_vod__c,Activity_Type__c,Significant_Event__c,Location_vod__c,Subject_vod__c,Unlock_vod__c,Call_Datetime_vod__c,Disbursed_To_vod__c,Disclaimer_vod__c,Request_Receipt_vod__c,Signature_Date_vod__c,Signature_vod__c,Territory_vod__c,Submitted_By_Mobile_vod__c,Call_Type_vod__c,Add_Key_Message_vod__c,Address_vod__c,Attendees_vod__c,Attendee_Type_vod__c,Call_Date_vod__c,Detailed_Products_vod__c,No_Disbursement_vod__c,Parent_Call_vod__c,User_vod__c,Contact_vod__c,zvod_Entity_vod__c,Medical_Event_vod__c,Mobile_Created_Datetime_vod__c,Mobile_Last_Modified_Datetime_vod__c,License_vod__c,Is_Parent_Call_vod__c,Entity_Display_Name_vod__c,Override_Lock_vod__c,Last_Device_vod__c,Ship_Address_Line_1_vod__c,Ship_Address_Line_2_vod__c,Ship_City_vod__c,Ship_Country_vod__c,Ship_License_Expiration_Date_vod__c,Ship_License_Status_vod__c,Ship_License_vod__c,Ship_State_vod__c,Ship_To_Address_vod__c,Ship_Zip_vod__c,Ship_To_Address_Text_vod__c,CLM_vod__c,zvod_CLMDetails_vod__c,Is_Sampled_Call_vod__c,zvod_Surveys_vod__c,Presentations_vod__c,Entity_Reference_Id_vod__c,Error_Reference_Call_vod__c,Duration_vod__c,Color_vod__c,Allowed_Products_vod__c,zvod_Attachments_vod__c,Sample_Card_Reason_vod__c,ASSMCA_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,DEA_Address_Line_1_vod__c,DEA_Address_Line_2_vod__c,DEA_Address_vod__c,DEA_City_vod__c,DEA_Expiration_Date_vod__c,DEA_State_vod__c,DEA_Zip_4_vod__c,DEA_Zip_vod__c,DEA_vod__c,Ship_Zip_4_vod__c,State_vod__c,Zip_4_vod__c,Zip_vod__c,Sample_Send_Card_vod__c,zvod_Address_vod_c_DEA_Status_vod_c_vod__c,Signature_Page_Image_vod__c,Credentials_vod__c,Salutation_vod__c,zvod_Account_Call_Reminder_vod_c_vod__c,MSJ_Meeting_Duration__c,MSJ_Double_Visit_AM__c,zvod_Business_Account_vod__c,Product_Priority_1_vod__c,Product_Priority_2_vod__c,Product_Priority_3_vod__c,Product_Priority_4_vod__c,Product_Priority_5_vod__c,zvod_More_Actions_vod__c,zvod_Call_Conflict_Status_vod__c,Signature_Timestamp_vod__c,Expense_Amount_vod__c,Total_Expense_Attendees_Count_vod__c,Attendee_list_vod__c,Expense_Post_Status_vod__c,Attendee_Post_Status_vod__c,Expense_System_External_ID_vod__c,Incurred_Expense_vod__c,Assigner_vod__c,Assignment_Datetime_vod__c,zvod_Call_Objective_vod__c,Signature_Location_Longitude_vod__c,Signature_Location_Latitude_vod__c,Location_Services_Status_vod__c,MSJ_Double_Visit_Other__c,MSJ_Comment__c,MSJ_For_Reporting__c,MSJ_Number_of_Attendees__c,MSJ_Main_Dept__c,Planned_Type_vjh__c,Cobrowse_URL_Participant_vod__c,MSJ_Activity_Method_Text__c,MSJ_Activity_Method__c,MSJ_Classification__c,MSJ_Double_Visit_MSL__c,MSJ_MSL_Comment_for_MR__c,MSJ_APD__c,Medical_Inquiry_vod__c,MSJ_Call_Type_MSJ__c,MSJ_Prescription_Request__c,MSJ_Patient_Follow__c,Child_Account_Id_vod__c,Child_Account_vod__c,Location_Id_vod__c,Location_Name_vod__c,MSJ_Comments_about_technology__c,Remote_Meeting_vod__c,Veeva_Remote_Meeting_Id_vod__c,MSJ_Activity_Type_Report__c,MSJ_Activity_Type__c,MSJ_Activity__c,MSJ_Comments__c,MSJ_Therapy__c,MSJ_Time_Hrs__c,EMDS_CO_Reference__c,EMDS_Call_Sub_Type__c,EMDS_Call_Type__c,EMDS_Call_Unsuccessful__c,EMDS_Congress_Type__c,EMDS_Date_of_Service__c,EMDS_Fertility_DisInterest__c,EMDS_Fertility_Interest__c,EMDS_Installed_Equipment__c,EMDS_Pipeline_Stage_Value__c,EMDS_Pipeline_Stage__c,EMDS_Pipeline__c,EMDS_Reason_for_Call__c,EMDS_Training_Completed__c,MSJ_BrainStorming__c,MSJ_SIPAGL_1A__c,MSJ_SIPAGL_1B__c,MSJ_SIPAGL_2__c,MSJ_SIPAGL_3__c,MSJ_SIPAGL_4A__c,MSJ_SIPAGL_5A__c,MSJ_SIPAGL_comment__c,MSJ_SIPAGL_4B__c,MSJ_SIPAGL_5B__c,Location_Text_vod__c,Call_Channel_vod__c,MSJ_Scientific_Interaction__c,MSJ_Activity_Email_Reply__c,MSJ_Interaction_Duration__c,MSJ_SIPAGL_1A_date__c,MSJ_CoPromotion__c,Call_Channel_Formula_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,call_comments_vod__c,sample_card_vod__c,add_detail_vod__c,property_vod__c,account_vod__c,zvod_product_discussion_vod__c,status_vod__c,parent_address_vod__c,account_plan_vod__c,zvod_save_new_vod__c,next_call_notes_vod__c,pre_call_notes_vod__c,mobile_id_vod__c,zvod_account_credentials_vod_c_vod__c,zvod_account_preferred_name_vod_c_vod__c,zvod_account_sample_status_vod_c_vod__c,zvod_attendees_vod__c,zvod_key_messages_vod__c,zvod_detailing_vod__c,zvod_expenses_vod__c,zvod_followup_vod__c,zvod_samples_vod__c,zvod_save_vod__c,zvod_submit_vod__c,zvod_delete_vod__c,activity_type__c,significant_event__c,location_vod__c,subject_vod__c,unlock_vod__c,call_datetime_vod__c,disbursed_to_vod__c,disclaimer_vod__c,request_receipt_vod__c,signature_date_vod__c,signature_vod__c,territory_vod__c,submitted_by_mobile_vod__c,call_type_vod__c,add_key_message_vod__c,address_vod__c,attendees_vod__c,attendee_type_vod__c,call_date_vod__c,detailed_products_vod__c,no_disbursement_vod__c,parent_call_vod__c,user_vod__c,contact_vod__c,zvod_entity_vod__c,medical_event_vod__c,mobile_created_datetime_vod__c,mobile_last_modified_datetime_vod__c,license_vod__c,is_parent_call_vod__c,entity_display_name_vod__c,override_lock_vod__c,last_device_vod__c,ship_address_line_1_vod__c,ship_address_line_2_vod__c,ship_city_vod__c,ship_country_vod__c,ship_license_expiration_date_vod__c,ship_license_status_vod__c,ship_license_vod__c,ship_state_vod__c,ship_to_address_vod__c,ship_zip_vod__c,ship_to_address_text_vod__c,clm_vod__c,zvod_clmdetails_vod__c,is_sampled_call_vod__c,zvod_surveys_vod__c,presentations_vod__c,entity_reference_id_vod__c,error_reference_call_vod__c,duration_vod__c,color_vod__c,allowed_products_vod__c,zvod_attachments_vod__c,sample_card_reason_vod__c,assmca_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,dea_address_line_1_vod__c,dea_address_line_2_vod__c,dea_address_vod__c,dea_city_vod__c,dea_expiration_date_vod__c,dea_state_vod__c,dea_zip_4_vod__c,dea_zip_vod__c,dea_vod__c,ship_zip_4_vod__c,state_vod__c,zip_4_vod__c,zip_vod__c,sample_send_card_vod__c,zvod_address_vod_c_dea_status_vod_c_vod__c,signature_page_image_vod__c,credentials_vod__c,salutation_vod__c,zvod_account_call_reminder_vod_c_vod__c,msj_meeting_duration__c,msj_double_visit_am__c,zvod_business_account_vod__c,product_priority_1_vod__c,product_priority_2_vod__c,product_priority_3_vod__c,product_priority_4_vod__c,product_priority_5_vod__c,zvod_more_actions_vod__c,zvod_call_conflict_status_vod__c,signature_timestamp_vod__c,expense_amount_vod__c,total_expense_attendees_count_vod__c,attendee_list_vod__c,expense_post_status_vod__c,attendee_post_status_vod__c,expense_system_external_id_vod__c,incurred_expense_vod__c,assigner_vod__c,assignment_datetime_vod__c,zvod_call_objective_vod__c,signature_location_longitude_vod__c,signature_location_latitude_vod__c,location_services_status_vod__c,msj_double_visit_other__c,msj_comment__c,msj_for_reporting__c,msj_number_of_attendees__c,msj_main_dept__c,planned_type_vjh__c,cobrowse_url_participant_vod__c,msj_activity_method_text__c,msj_activity_method__c,msj_classification__c,msj_double_visit_msl__c,msj_msl_comment_for_mr__c,msj_apd__c,medical_inquiry_vod__c,msj_call_type_msj__c,msj_prescription_request__c,msj_patient_follow__c,child_account_id_vod__c,child_account_vod__c,location_id_vod__c,location_name_vod__c,msj_comments_about_technology__c,remote_meeting_vod__c,veeva_remote_meeting_id_vod__c,msj_activity_type_report__c,msj_activity_type__c,msj_activity__c,msj_comments__c,msj_therapy__c,msj_time_hrs__c,emds_co_reference__c,emds_call_sub_type__c,emds_call_type__c,emds_call_unsuccessful__c,emds_congress_type__c,emds_date_of_service__c,emds_fertility_dis_interest__c,emds_fertility_interest__c,emds_installed_equipment__c,emds_pipeline_stage_value__c,emds_pipeline_stage__c,emds_pipeline__c,emds_reason_for_call__c,emds_training_completed__c,msj_brain_storming__c,msj_sipagl_1_a__c,msj_sipagl_1_b__c,msj_sipagl_2__c,msj_sipagl_3__c,msj_sipagl_4_a__c,msj_sipagl_5_a__c,msj_sipagl_comment__c,msj_sipagl_4_b__c,msj_sipagl_5_b__c,location_text_vod__c,call_channel_vod__c,msj_scientific_interaction__c,msj_activity_email_reply__c,msj_interaction_duration__c,msj_sipagl_1_a_date__c,msj_co_promotion__c,call_channel_formula_vod__c +src02.crm_call2_vod__c +org02.crm_call2_vod__c + + diff --git a/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt new file mode 100644 index 00000000..e2b56535 --- /dev/null +++ b/s3/data/crm/settings/CRM_Call_Clickstream_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +34 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Answer_vod__c,Call_vod__c,Key_Message_vod__c,Mobile_ID_vod__c,Popup_Opened_vod__c,Possible_Answers_vod__c,Presentation_ID_vod__c,Product_vod__c,Range_Value_vod__c,Rollover_Entered_vod__c,Selected_Items_vod__c,CLM_ID_vod__c,Question_vod__c,Survey_Type_vod__c,Text_Entered_vod__c,Toggle_Button_On_vod__c,Track_Element_Description_vod__c,Track_Element_Id_vod__c,Track_Element_Type_vod__c,Usage_Duration_vod__c,Usage_Start_Time_vod__c,AuxillaryId_vod__c,ParentId_vod__c,Revision_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,answer_vod__c,call_vod__c,key_message_vod__c,mobile_id_vod__c,popup_opened_vod__c,possible_answers_vod__c,presentation_id_vod__c,product_vod__c,range_value_vod__c,rollover_entered_vod__c,selected_items_vod__c,clm_id_vod__c,question_vod__c,survey_type_vod__c,text_entered_vod__c,toggle_button_on_vod__c,track_element_description_vod__c,track_element_id_vod__c,track_element_type_vod__c,usage_duration_vod__c,usage_start_time_vod__c,auxillary_id_vod__c,parent_id_vod__c,revision_vod__c +src02.crm_call_clickstream_vod__c +org02.crm_call_clickstream_vod__c + + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c.txt b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt new file mode 100644 index 00000000..876bef05 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +57 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Parent_Account_vod__c,Child_Account_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Primary_vod__c,Copy_Address_vod__c,Child_Name_vod__c,Parent_Name_vod__c,Parent_Child_Name_vod__c,Account_Code__c,Child_Department__c,Child_Role__c,Child_Title__c,Child_Remark__c,MSJ_1C_segment__c,MSJ_BU_FE__c,MSJ_BU_ONC__c,MSJ_BVC_Segment__c,MSJ_CE_segment__c,MSJ_Child_Account_Link__c,MSJ_DCF_DR_Code__c,MSJ_DCF_HP_Code__c,MSJ_DR_Change_Log__c,MSJ_Delete__c,MSJ_Department__c,MSJ_EB_CRC_Segment__c,MSJ_EB_HN_Segment__c,MSJ_EB_H_N_LA_Segment__c,MSJ_EB_H_N_RM_Segment__c,MSJ_External_ID__c,MSJ_Fax__c,MSJ_GF2_segment__c,MSJ_GF_segment__c,MSJ_KOL_LOL__c,MSJ_KOL__c,MSJ_ONC_HP_Segment__c,MSJ_OPTIN_target__c,MSJ_OV_segment__c,MSJ_Parent_Child_Name__c,MSJ_Phone__c,MSJ_Remark__c,MSJ_Target_Call_Num__c,MSJ_Tech_segment__c,MSJ_Title__c,MSJ_XLK_Segment__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,parent_account_vod__c,child_account_vod__c,external_id_vod__c,mobile_id_vod__c,primary_vod__c,copy_address_vod__c,child_name_vod__c,parent_name_vod__c,parent_child_name_vod__c,account_code__c,child_department__c,child_role__c,child_title__c,child_remark__c,msj_1_c_segment__c,msj_bu_fe__c,msj_bu_onc__c,msj_bvc_segment__c,msj_ce_segment__c,msj_child_account_link__c,msj_dcf_dr_code__c,msj_dcf_hp_code__c,msj_dr_change_log__c,msj_delete__c,msj_department__c,msj_eb_crc_segment__c,msj_eb_hn_segment__c,msj_eb_h_n_la_segment__c,msj_eb_h_n_rm_segment__c,msj_external_id__c,msj_fax__c,msj_gf2_segment__c,msj_gf_segment__c,msj_kol_lol__c,msj_kol__c,msj_onc_hp_segment__c,msj_optin_target__c,msj_ov_segment__c,msj_parent_child_name__c,msj_phone__c,msj_remark__c,msj_target_call_num__c,msj_tech_segment__c,msj_title__c,msj_xlk_segment__c +src02.crm_child_account_vod__c +org02.crm_child_account_vod__c +CRM_Child_Account_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql new file mode 100644 index 00000000..cac33f47 --- /dev/null +++ b/s3/data/crm/settings/CRM_Child_Account_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_child_account_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt new file mode 100644 index 00000000..422a6926 --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_Slide_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Clm_Presentation_vod__c,Key_Message_vod__c,Display_Order_vod__c,Sub_Presentation_vod__c,Mobile_ID_vod__c,External_ID_vod__c,VExternal_Id_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,clm_presentation_vod__c,key_message_vod__c,display_order_vod__c,sub_presentation_vod__c,mobile_id_vod__c,external_id_vod__c,vexternal_id_vod__c +src02.crm_clm_presentation_slide_vod__c +org02.crm_clm_presentation_slide_vod__c + + diff --git a/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt new file mode 100644 index 00000000..364a308b --- /dev/null +++ b/s3/data/crm/settings/CRM_Clm_Presentation_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Presentation_Id_vod__c,Product_vod__c,Default_Presentation_vod__c,Training_vod__c,ParentId_vod__c,Hidden_vod__c,Type_vod__c,Approved_vod__c,Copied_From_vod__c,Copy_Date_vod__c,Survey_vod__c,Original_Record_ID_vod__c,Directory_vod__c,End_Date_vod__c,Start_Date_vod__c,Status_vod__c,VExternal_Id_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Version_vod__c,Enable_Survey_Overlay_vod__c,Description_vod__c,Keywords_vod__c,Content_Channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,presentation_id_vod__c,product_vod__c,default_presentation_vod__c,training_vod__c,parent_id_vod__c,hidden_vod__c,type_vod__c,approved_vod__c,copied_from_vod__c,copy_date_vod__c,survey_vod__c,original_record_id_vod__c,directory_vod__c,end_date_vod__c,start_date_vod__c,status_vod__c,vexternal_id_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,version_vod__c,enable_survey_overlay_vod__c,description_vod__c,keywords_vod__c,content_channel_vod__c,original_material_approved_in_veritas__c,keywords__c,trade_team__c,ewizard_link__c,business_function__c +src02.crm_clm_presentation_vod__c +org02.crm_clm_presentation_vod__c + + diff --git a/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt new file mode 100644 index 00000000..fd64a473 --- /dev/null +++ b/s3/data/crm/settings/CRM_Coaching_Report_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +144 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Mobile_ID_vod__c,Manager_vod__c,Employee_vod__c,Review_Date__c,Review_Period__c,Status__c,Comments__c,Strategic_Planning__c,Customer_Focus__c,Knowledge_Expertise__c,Business_Account_Planning__c,Call_Productivity__c,Overall_Rating__c,MSJ_A01__c,MSJ_A02__c,MSJ_A03__c,MSJ_AM_Memo__c,MSJ_Aid_Total__c,MSJ_C0_GC__c,MSJ_C1_GC__c,MSJ_C2_GC__c,MSJ_Countermeasure__c,MSJ_Deadline__c,MSJ_Double_Visit_Time__c,MSJ_Hospital__c,MSJ_K01_FE__c,MSJ_K01_ONC__c,MSJ_K02_FE__c,MSJ_K02_ONC__c,MSJ_K03_FE__c,MSJ_K03_ONC__c,MSJ_K04_FE__c,MSJ_K04_ONC__c,MSJ_K05_FE__c,MSJ_K05_ONC__c,MSJ_K06_FE__c,MSJ_K06_ONC__c,MSJ_K0_GC__c,MSJ_K1_GC__c,MSJ_K2_GC__c,MSJ_Knowledge_Total__c,MSJ_L0_GC__c,MSJ_L1_GC__c,MSJ_L2_GC__c,MSJ_MR_GC__c,MSJ_MR_Problems__c,MSJ_N0_GC__c,MSJ_N1_GC__c,MSJ_N2_GC__c,MSJ_Num_of_DTL__c,MSJ_P01__c,MSJ_P02__c,MSJ_P03__c,MSJ_P04__c,MSJ_P05__c,MSJ_P0_GC__c,MSJ_P1_GC__c,MSJ_P2_GC__c,MSJ_PlanningTotal__c,MSJ_R0_GC__c,MSJ_R1_GC__c,MSJ_R2_GC__c,MSJ_S01__c,MSJ_S02__c,MSJ_S03__c,MSJ_S04__c,MSJ_S05__c,MSJ_S06__c,MSJ_S07__c,MSJ_S08__c,MSJ_S09__c,MSJ_S10__c,MSJ_S11__c,MSJ_S12__c,MSJ_Skill_Total__c,MSJ_After_Call_01__c,MSJ_After_Call_02__c,MSJ_After_Call_03__c,MSJ_After_Call_04__c,MSJ_Closing__c,MSJ_Comment_by_MR__c,MSJ_Confirmed_by_MR__c,MSJ_Createdby__c,MSJ_FT_AM_Name__c,MSJ_Interview_Preparation__c,MSJ_Interview_Reflection__c,MSJ_Notify_To_MR__c,MSJ_Opening__c,MSJ_Others_01_Result__c,MSJ_Others_01__c,MSJ_Others_02_Result__c,MSJ_Others_02__c,MSJ_Patient_Thinking__c,MSJ_Probing__c,MSJ_Supporting__c,MSJ_Patient_Thinking_for_FE__c,MSJ_After_Call_05__c,MSJ_After_Call_06__c,MSJ_After_Call_07__c,MSJ_After_Call_08__c,MSJ_Createdby_FE__c,MSJ_Createdby_ONC__c,MSJ_Development_Level__c,MSJ_Interview_Prep_01__c,MSJ_Interview_Prep_02__c,MSJ_Leadership_Style__c,MSJ_Overcome_01__c,MSJ_Overcome_02__c,MSJ_Overcome_03__c,MSJ_Overcome_04__c,MSJ_Review_01__c,MSJ_Review_02__c,MSJ_SK_01__c,MSJ_SK_02__c,MSJ_SK_03__c,MSJ_SK_04__c,MSJ_SK_05__c,MSJ_SK_06__c,MSJ_SK_07__c,MSJ_SK_08__c,MSJ_SK_09__c,MSJ_SK_10__c,MSJ_Specific_Action__c,MSJ_Training_Point__c,MSJ_Efforts_of_Year__c,MSJ_Efforts_of_Month__c,MSJ_Skill_Task__c,MSJ_Action_of_This_Month__c,MSJ_Achievement_of_This_Month__c,MSJ_Comment_from_AM__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,mobile_id_vod__c,manager_vod__c,employee_vod__c,review_date__c,review_period__c,status__c,comments__c,strategic_planning__c,customer_focus__c,knowledge_expertise__c,business_account_planning__c,call_productivity__c,overall_rating__c,msj_a01__c,msj_a02__c,msj_a03__c,msj_am_memo__c,msj_aid_total__c,msj_c0_gc__c,msj_c1_gc__c,msj_c2_gc__c,msj_countermeasure__c,msj_deadline__c,msj_double_visit_time__c,msj_hospital__c,msj_k01_fe__c,msj_k01_onc__c,msj_k02_fe__c,msj_k02_onc__c,msj_k03_fe__c,msj_k03_onc__c,msj_k04_fe__c,msj_k04_onc__c,msj_k05_fe__c,msj_k05_onc__c,msj_k06_fe__c,msj_k06_onc__c,msj_k0_gc__c,msj_k1_gc__c,msj_k2_gc__c,msj_knowledge_total__c,msj_l0_gc__c,msj_l1_gc__c,msj_l2_gc__c,msj_mr_gc__c,msj_mr_problems__c,msj_n0_gc__c,msj_n1_gc__c,msj_n2_gc__c,msj_num_of_dtl__c,msj_p01__c,msj_p02__c,msj_p03__c,msj_p04__c,msj_p05__c,msj_p0_gc__c,msj_p1_gc__c,msj_p2_gc__c,msj_planning_total__c,msj_r0_gc__c,msj_r1_gc__c,msj_r2_gc__c,msj_s01__c,msj_s02__c,msj_s03__c,msj_s04__c,msj_s05__c,msj_s06__c,msj_s07__c,msj_s08__c,msj_s09__c,msj_s10__c,msj_s11__c,msj_s12__c,msj_skill_total__c,msj_after_call_01__c,msj_after_call_02__c,msj_after_call_03__c,msj_after_call_04__c,msj_closing__c,msj_comment_by_mr__c,msj_confirmed_by_mr__c,msj_createdby__c,msj_ft_am_name__c,msj_interview_preparation__c,msj_interview_reflection__c,msj_notify_to_mr__c,msj_opening__c,msj_others_01_result__c,msj_others_01__c,msj_others_02_result__c,msj_others_02__c,msj_patient_thinking__c,msj_probing__c,msj_supporting__c,msj_patient_thinking_for_fe__c,msj_after_call_05__c,msj_after_call_06__c,msj_after_call_07__c,msj_after_call_08__c,msj_createdby_fe__c,msj_createdby_onc__c,msj_development_level__c,msj_interview_prep_01__c,msj_interview_prep_02__c,msj_leadership_style__c,msj_overcome_01__c,msj_overcome_02__c,msj_overcome_03__c,msj_overcome_04__c,msj_review_01__c,msj_review_02__c,msj_sk_01__c,msj_sk_02__c,msj_sk_03__c,msj_sk_04__c,msj_sk_05__c,msj_sk_06__c,msj_sk_07__c,msj_sk_08__c,msj_sk_09__c,msj_sk_10__c,msj_specific_action__c,msj_training_point__c,msj_efforts_of_year__c,msj_efforts_of_month__c,msj_skill_task__c,msj_action_of_this_month__c,msj_achievement_of_this_month__c,msj_comment_from_am__c +src02.crm_coaching_report_vod__c +org02.crm_coaching_report_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt new file mode 100644 index 00000000..729c3452 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Header_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +22 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_Help_Text_vod__c,Country_vod__c,Inactive_Datetime_vod__c,Language_vod__c,Status_vod__c,Signature_Required_On_Opt_Out_vod__c,Request_Receipt_vod__c,Subscription_Option_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_help_text_vod__c,country_vod__c,inactive_datetime_vod__c,language_vod__c,status_vod__c,signature_required_on_opt_out_vod__c,request_receipt_vod__c,subscription_option_vod__c +src02.crm_consent_header_vod__c +org02.crm_consent_header_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt new file mode 100644 index 00000000..3cc95e31 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Type_vod__c,Detail_Group_Display_Name_vod__c,Detail_Group_vod__c,Display_Order_vod__c,End_Date_vod__c,Group_By_vod__c,Product_Display_Name_vod__c,Product_vod__c,Start_Date_vod__c,Sub_Channel_Description_vod__c,Sub_Channel_Display_Name_vod__c,Sub_Channel_Key_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_type_vod__c,detail_group_display_name_vod__c,detail_group_vod__c,display_order_vod__c,end_date_vod__c,group_by_vod__c,product_display_name_vod__c,product_vod__c,start_date_vod__c,sub_channel_description_vod__c,sub_channel_display_name_vod__c,sub_channel_key_vod__c +src02.crm_consent_line_vod__c +org02.crm_consent_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt new file mode 100644 index 00000000..2a3451a0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Consent_Type_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consent_Header_vod__c,Channel_Label_vod__c,Channel_Source_vod__c,Consent_Expires_In_vod__c,Default_Consent_Type_vod__c,Disclaimer_Text_vod__c,Display_Order_vod__c,Product_Preference_vod__c,zvod_Consent_Default_Consent_Text_vod__c,zvod_Consent_Line_vod__c,zvod_Signature_Capture_vod__c,Double_Opt_In_vod__c,zvod_Consent_Activity_Tracking_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consent_header_vod__c,channel_label_vod__c,channel_source_vod__c,consent_expires_in_vod__c,default_consent_type_vod__c,disclaimer_text_vod__c,display_order_vod__c,product_preference_vod__c,zvod_consent_default_consent_text_vod__c,zvod_consent_line_vod__c,zvod_signature_capture_vod__c,double_opt_in_vod__c,zvod_consent_activity_tracking_vod__c +src02.crm_consent_type_vod__c +org02.crm_consent_type_vod__c + + diff --git a/s3/data/crm/settings/CRM_Contact.txt b/s3/data/crm/settings/CRM_Contact.txt new file mode 100644 index 00000000..21a9c5dd --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +71 +Id,IsDeleted,MasterRecordId,AccountId,IsPersonAccount,LastName,FirstName,Salutation,Name,OtherStreet,OtherCity,OtherState,OtherPostalCode,OtherCountry,OtherLatitude,OtherLongitude,OtherGeocodeAccuracy,OtherAddress,MailingStreet,MailingCity,MailingState,MailingPostalCode,MailingCountry,MailingLatitude,MailingLongitude,MailingGeocodeAccuracy,MailingAddress,Phone,Fax,MobilePhone,HomePhone,OtherPhone,AssistantPhone,ReportsToId,Email,Title,Department,AssistantName,Birthdate,Description,OwnerId,HasOptedOutOfEmail,HasOptedOutOfFax,DoNotCall,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,LastCURequestDate,LastCUUpdateDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,EmailBouncedReason,EmailBouncedDate,IsEmailBounced,PhotoUrl,Jigsaw,JigsawContactId,IndividualId,Mobile_ID_vod__c,H1Insights__H1_NPI_Value_for_Testing__c,H1Insights__H1_Person_ID__c,H1Insights__H1_Request_Status__c,H1Insights__H1_URL__c,H1Insights__NPI_Number__c,H1Insights__NPI_Number_for_H1_Insights__c,MSJ_Marketing_Cloud_Integration__c +id,is_deleted,master_record_id,account_id,is_person_account,last_name,first_name,salutation,name,other_street,other_city,other_state,other_postal_code,other_country,other_latitude,other_longitude,other_geocode_accuracy,other_address,mailing_street,mailing_city,mailing_state,mailing_postal_code,mailing_country,mailing_latitude,mailing_longitude,mailing_geocode_accuracy,mailing_address,phone,fax,mobile_phone,home_phone,other_phone,assistant_phone,reports_to_id,email,title,department,assistant_name,birthdate,description,owner_id,has_opted_out_of_email,has_opted_out_of_fax,do_not_call,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,last_curequest_date,last_cuupdate_date,may_edit,is_locked,last_viewed_date,last_referenced_date,email_bounced_reason,email_bounced_date,is_email_bounced,photo_url,jigsaw,jigsaw_contact_id,individual_id,mobile_id_vod__c,h1_insights__h1_npi_value_for_testing__c,h1_insights__h1_person_id__c,h1_insights__h1_request_status__c,h1_insights__h1_url__c,h1_insights__npi_number__c,h1_insights__npi_number_for_h1_insights__c,msj_marketing_cloud_integration__c +src02.crm_contact +org02.crm_contact +CRM_Contact_ex.sql + diff --git a/s3/data/crm/settings/CRM_Contact_ex.sql b/s3/data/crm/settings/CRM_Contact_ex.sql new file mode 100644 index 00000000..4b916e23 --- /dev/null +++ b/s3/data/crm/settings/CRM_Contact_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_contact', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt new file mode 100644 index 00000000..d48828a7 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_Configuration_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +29 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Applies_To_vod__c,Attribute_Label_vod__c,Attribute_Name_vod__c,Available_Values_vod__c,Description_vod__c,Detail_Group_vod__c,Display_Order_vod__c,External_ID_vod__c,Help_Text_vod__c,Product_vod__c,Read_Only_vod__c,Section_Name_vod__c,Sharing_Group_vod__c,Status_vod__c,Track_Changes_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,applies_to_vod__c,attribute_label_vod__c,attribute_name_vod__c,available_values_vod__c,description_vod__c,detail_group_vod__c,display_order_vod__c,external_id_vod__c,help_text_vod__c,product_vod__c,read_only_vod__c,section_name_vod__c,sharing_group_vod__c,status_vod__c,track_changes_vod__c +src02.crm_dynamic_attribute_configuration_vod__c +org02.crm_dynamic_attribute_configuration_vod__c + + diff --git a/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt new file mode 100644 index 00000000..adea9267 --- /dev/null +++ b/s3/data/crm/settings/CRM_Dynamic_Attribute_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +26 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Account_vod__c,Active_vod__c,Dynamic_Attribute_Configuration_vod__c,Dynamic_Attribute_Description_vod__c,Dynamic_Attribute_Help_Text_vod__c,Dynamic_Attribute_Label_vod__c,Dynamic_Attribute_Name_vod__c,Dynamic_Attribute_Record_Type_vod__c,Dynamic_Attribute_Value_Checkbox_vod__c,Dynamic_Attribute_Value_Date_Time_vod__c,Dynamic_Attribute_Value_Date_vod__c,Dynamic_Attribute_Value_Number_vod__c,Dynamic_Attribute_Value_Text_Area_vod__c,Dynamic_Attribute_Value_Text_vod__c,Mobile_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,account_vod__c,active_vod__c,dynamic_attribute_configuration_vod__c,dynamic_attribute_description_vod__c,dynamic_attribute_help_text_vod__c,dynamic_attribute_label_vod__c,dynamic_attribute_name_vod__c,dynamic_attribute_record_type_vod__c,dynamic_attribute_value_checkbox_vod__c,dynamic_attribute_value_date_time_vod__c,dynamic_attribute_value_date_vod__c,dynamic_attribute_value_number_vod__c,dynamic_attribute_value_text_area_vod__c,dynamic_attribute_value_text_vod__c,mobile_id_vod__c +src02.crm_dynamic_attribute_vod__c +org02.crm_dynamic_attribute_vod__c + + diff --git a/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt new file mode 100644 index 00000000..2c801e06 --- /dev/null +++ b/s3/data/crm/settings/CRM_Email_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +36 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Activity_DateTime_vod__c,City_vod__c,Click_URL_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Device_Type_vod__c,Event_Msg_vod__c,Event_type_vod__c,IP_Address_vod__c,Region_vod__c,User_Agent_vod__c,Vault_Doc_ID_vod__c,Vault_Doc_Name_vod__c,Vault_Document_Major_Version_vod__c,Vault_Document_Minor_Version_vod__c,Vault_Document_Number_vod__c,Vault_Document_Title_vod__c,Vault_Instance_ID_vod__c,Preference_Modification_vod__c,Approved_Document_vod__c,Link_Name_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,activity_date_time_vod__c,city_vod__c,click_url_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,device_type_vod__c,event_msg_vod__c,event_type_vod__c,ip_address_vod__c,region_vod__c,user_agent_vod__c,vault_doc_id_vod__c,vault_doc_name_vod__c,vault_document_major_version_vod__c,vault_document_minor_version_vod__c,vault_document_number_vod__c,vault_document_title_vod__c,vault_instance_id_vod__c,preference_modification_vod__c,approved_document_vod__c,link_name_vod__c +src02.crm_email_activity_vod__c +org02.crm_email_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt new file mode 100644 index 00000000..d5d6c0dc --- /dev/null +++ b/s3/data/crm/settings/CRM_Event_Attendee_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +31 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Attendee_vod__c,User_vod__c,Medical_Event_vod__c,Attendee_Type_vod__c,Status_vod__c,Contact_vod__c,Attendee_Name_vod__c,Account_vod__c,Start_Date_vod__c,Signature_vod__c,Signature_Datetime_vod__c,MSJ_Copy_Account_Type__c,MSJ_Evaluation__c,MSJ_Hospital__c,MSJ_Role__c,Mobile_ID_vod__c,MSJ_Evaluation_Comment__c,Position_vod__c,Talk_Title_vod__c,MSJ_Attendee_Reaction__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,attendee_vod__c,user_vod__c,medical_event_vod__c,attendee_type_vod__c,status_vod__c,contact_vod__c,attendee_name_vod__c,account_vod__c,start_date_vod__c,signature_vod__c,signature_datetime_vod__c,msj_copy_account_type__c,msj_evaluation__c,msj_hospital__c,msj_role__c,mobile_id_vod__c,msj_evaluation_comment__c,position_vod__c,talk_title_vod__c,msj_attendee_reaction__c +src02.crm_event_attendee_vod__c +org02.crm_event_attendee_vod__c + + diff --git a/s3/data/crm/settings/CRM_Group.txt b/s3/data/crm/settings/CRM_Group.txt new file mode 100644 index 00000000..94f4d0ca --- /dev/null +++ b/s3/data/crm/settings/CRM_Group.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,RelatedId,Type,Email,OwnerId,DoesSendEmailToMembers,DoesIncludeBosses,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp +id,name,developer_name,related_id,type,email,owner_id,does_send_email_to_members,does_include_bosses,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_group +org02.crm_group +CRM_Group_ex.sql + diff --git a/s3/data/crm/settings/CRM_Group_ex.sql b/s3/data/crm/settings/CRM_Group_ex.sql new file mode 100644 index 00000000..5e50dab6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Group_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_group', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Key_Message_vod__c.txt b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt new file mode 100644 index 00000000..1c1f1df0 --- /dev/null +++ b/s3/data/crm/settings/CRM_Key_Message_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Strategy_vod__c,Display_Order_vod__c,Active_vod__c,Category_vod__c,Vehicle_vod__c,CLM_ID_vod__c,Custom_Reaction_vod__c,Slide_Version_vod__c,Language_vod__c,Media_File_CRC_vod__c,Media_File_Name_vod__c,Media_File_Size_vod__c,Segment_vod__c,Disable_Actions_vod__c,VExternal_Id_vod__c,CDN_Path_vod__c,Status_vod__c,Vault_DNS_vod__c,Vault_Doc_Id_vod__c,Vault_External_Id_vod__c,Vault_GUID_vod__c,Vault_Last_Modified_Date_Time_vod__c,Is_Shared_Resource_vod__c,iOS_Viewer_vod__c,iOS_Resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_strategy_vod__c,display_order_vod__c,active_vod__c,category_vod__c,vehicle_vod__c,clm_id_vod__c,custom_reaction_vod__c,slide_version_vod__c,language_vod__c,media_file_crc_vod__c,media_file_name_vod__c,media_file_size_vod__c,segment_vod__c,disable_actions_vod__c,vexternal_id_vod__c,cdn_path_vod__c,status_vod__c,vault_dns_vod__c,vault_doc_id_vod__c,vault_external_id_vod__c,vault_guid_vod__c,vault_last_modified_date_time_vod__c,is_shared_resource_vod__c,i_os_viewer_vod__c,i_os_resolution_vod__c,approved_for_distribution_date__c,approved_for_use_date__c,ewizard_link__c,expiration_date__c,keywords__c,trade_team__c,business_function__c +src02.crm_key_message_vod__c +org02.crm_key_message_vod__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt new file mode 100644 index 00000000..c295fc5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Hospital_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +18 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Line__c,MSJ_Medical_Regimen__c,Mobile_ID_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_line__c,msj_medical_regimen__c,mobile_id_vod__c +src02.crm_msj_hospital_medical_regimen__c +org02.crm_msj_hospital_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt new file mode 100644 index 00000000..a50bf1f3 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Inquiry_Assignment__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Medical_Inquiry__c,MSJ_Close__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Text__c,MSJ_MEC_User__c,MSJ_MSL_Manager__c,MSJ_MSL_User__c,MSJ_Notice_to_MR__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply__c,MSJ_AE_Infomation__c,MSJ_Cancel__c,MSJ_FAQ_number_c__c,MSJ_Return_Call__c,MSJ_Inquiry_Origin__c,First_Response__c,Inquiry_Created_Date__c,Inquiry_Type_1__c,Inquiry_Type_2__c,MSJ_First_User__c,MSJ_MEC_Comment__c,MSJ_Send_Email__c,MSJ_Temp_Aggregated_Info__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_Inquiry_Date__c,MSJ_MSL_Support__c,MSJ_Handover_Comment__c,MSJ_Handover_Email__c,MSJ_Material_Requirement__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_medical_inquiry__c,msj_close__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_text__c,msj_mec_user__c,msj_msl_manager__c,msj_msl_user__c,msj_notice_to_mr__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply__c,msj_ae_infomation__c,msj_cancel__c,msj_faq_number_c__c,msj_return_call__c,msj_inquiry_origin__c,first_response__c,inquiry_created_date__c,inquiry_type_1__c,inquiry_type_2__c,msj_first_user__c,msj_mec_comment__c,msj_send_email__c,msj_temp_aggregated_info__c,msj_ae_report__c,msj_background__c,msj_inquiry_date__c,msj_msl_support__c,msj_handover_comment__c,msj_handover_email__c,msj_material_requirement__c +src02.crm_msj_inquiry_assignment__c +org02.crm_msj_inquiry_assignment__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt new file mode 100644 index 00000000..89df0b85 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_MR_Weekly_Report__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Account_Name__c,MSJ_Activity_Results_Summary__c,MSJ_MUID__c,MSJ_Next_Week_Action_What__c,MSJ_Next_Week_Action_When__c,MSJ_Next_Week_Action_Where__c,MSJ_Next_Week_Action_Who__c,MSJ_Report_Week__c,MSJ_Target_Patient_Count__c,Mobile_ID_vod__c,MSJ_Activity_Results_Summary_HN__c,MSJ_Next_Week_Action_Where_HN__c,MSJ_Next_Week_Action_Who_HN__c,MSJ_Next_Week_Action_What_HN__c,MSJ_Next_Week_Action_When_HN__c,MSJ_Target_Patient_Count_HN__c,MSJ_Activity_Results_Summary_MCC__c,MSJ_Next_Week_Action_Where_MCC__c,MSJ_Next_Week_Action_Who_MCC__c,MSJ_Next_Week_Action_What_MCC__c,MSJ_Next_Week_Action_When_MCC__c,MSJ_Target_Patient_Count_MCC__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_account_name__c,msj_activity_results_summary__c,msj_muid__c,msj_next_week_action_what__c,msj_next_week_action_when__c,msj_next_week_action_where__c,msj_next_week_action_who__c,msj_report_week__c,msj_target_patient_count__c,mobile_id_vod__c,msj_activity_results_summary_hn__c,msj_next_week_action_where_hn__c,msj_next_week_action_who_hn__c,msj_next_week_action_what_hn__c,msj_next_week_action_when_hn__c,msj_target_patient_count_hn__c,msj_activity_results_summary_mcc__c,msj_next_week_action_where_mcc__c,msj_next_week_action_who_mcc__c,msj_next_week_action_what_mcc__c,msj_next_week_action_when_mcc__c,msj_target_patient_count_mcc__c +src02.crm_msj_mr_weekly_report__c +org02.crm_msj_mr_weekly_report__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt new file mode 100644 index 00000000..5f1546f2 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Event_Evaluation__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Medical_Event__c,MSJ_Evaluation_Comment__c,MSJ_Evaluation__c,Mobile_ID_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_medical_event__c,msj_evaluation_comment__c,msj_evaluation__c,mobile_id_vod__c +src02.crm_msj_medical_event_evaluation__c +org02.crm_msj_medical_event_evaluation__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt new file mode 100644 index 00000000..321b8a5e --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Medical_Regimen__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,MSJ_Delete_Date__c,MSJ_Delete_Flag__c,MSJ_Indication__c,MSJ_Remark__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,msj_delete_date__c,msj_delete_flag__c,msj_indication__c,msj_remark__c +src02.crm_msj_medical_regimen__c +org02.crm_msj_medical_regimen__c + + diff --git a/s3/data/crm/settings/CRM_MSJ_Patient__c.txt b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt new file mode 100644 index 00000000..8b1bac96 --- /dev/null +++ b/s3/data/crm/settings/CRM_MSJ_Patient__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,MSJ_Account_Name__c,MSJ_CRC_Group__c,MSJ_Casus_or_Transfer_Point__c,MSJ_Entry_Date__c,MSJ_IST_Name__c,MSJ_Indication__c,MSJ_Line__c,MSJ_MR_Comments__c,MSJ_MUID__c,MSJ_Medical_Regimen__c,MSJ_Month__c,MSJ_Report_Comments__c,MSJ_Start_Date_Of_Administration__c,MSJ_Year__c,Mobile_ID_vod__c,MSJ_CRC_RAS_KRAS__c,MSJ_End_Date_Of_Administration__c,MSJ_End_Date_of_Stop_Administration__c,MSJ_HN_Hospitalized_Type__c,MSJ_Start_Date_of_Stop_Administration__c,MSJ_Patient_Status__c,MSJ_Patient_TA__c,MSJ_Child_Account_Name__c,MSJ_Child_Account__c,MSJ_Parent_Account_Name__c,MSJ_Parent_Child_Name__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,msj_account_name__c,msj_crc_group__c,msj_casus_or_transfer_point__c,msj_entry_date__c,msj_ist_name__c,msj_indication__c,msj_line__c,msj_mr_comments__c,msj_muid__c,msj_medical_regimen__c,msj_month__c,msj_report_comments__c,msj_start_date_of_administration__c,msj_year__c,mobile_id_vod__c,msj_crc_ras_kras__c,msj_end_date_of_administration__c,msj_end_date_of_stop_administration__c,msj_hn_hospitalized_type__c,msj_start_date_of_stop_administration__c,msj_patient_status__c,msj_patient_ta__c,msj_child_account_name__c,msj_child_account__c,msj_parent_account_name__c,msj_parent_child_name__c +src02.crm_msj_patient__c +org02.crm_msj_patient__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt new file mode 100644 index 00000000..159a475b --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Event_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Primary_Product__c,Description_vod__c,Start_Date_vod__c,Location__c,End_Date_vod__c,Secondary_Product__c,Website__c,Active_vod__c,Event_Type__c,MSJ_Area__c,MSJ_Business_Unit__c,MSJ_Comment__c,MSJ_Company__c,MSJ_Expense_App_No__c,MSJ_Form__c,MSJ_HQ_Area__c,MSJ_Location__c,MSJ_MR__c,MSJ_Number_of_Attendee__c,MSJ_Product__c,MSJ_Site__c,MSJ_Type__c,MSJ_Number_of_Attendee_Auto_Calc__c,MSJ_Number_of_Attendee_Invited__c,Account_vod__c,MSJ_MUID__c,Country_Name_vod__c,MSJ_CE_SIPAGL_Updater__c,MSJ_CE_SIPAGL_1A__c,MSJ_CE_SIPAGL_1B__c,MSJ_CE_SIPAGL_2__c,MSJ_CE_SIPAGL_3__c,MSJ_CE_SIPAGL_4__c,MSJ_CE_SIPAGL_5__c,MSJ_CE_SIPAGL_Comment__c,MSJ_CE_SIPAGL_1A_date__c,MSJ_CE_SIPAGL_6__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,primary_product__c,description_vod__c,start_date_vod__c,location__c,end_date_vod__c,secondary_product__c,website__c,active_vod__c,event_type__c,msj_area__c,msj_business_unit__c,msj_comment__c,msj_company__c,msj_expense_app_no__c,msj_form__c,msj_hq_area__c,msj_location__c,msj_mr__c,msj_number_of_attendee__c,msj_product__c,msj_site__c,msj_type__c,msj_number_of_attendee_auto_calc__c,msj_number_of_attendee_invited__c,account_vod__c,msj_muid__c,country_name_vod__c,msj_ce_sipagl_updater__c,msj_ce_sipagl_1_a__c,msj_ce_sipagl_1_b__c,msj_ce_sipagl_2__c,msj_ce_sipagl_3__c,msj_ce_sipagl_4__c,msj_ce_sipagl_5__c,msj_ce_sipagl_comment__c,msj_ce_sipagl_1_a_date__c,msj_ce_sipagl_6__c +src02.crm_medical_event_vod__c +org02.crm_medical_event_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt new file mode 100644 index 00000000..cafca6d9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Inquiry_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +67 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Address_Line_1_vod__c,Address_Line_2_vod__c,City_vod__c,Delivery_Method_vod__c,Email_vod__c,Fax_Number_vod__c,Inquiry_Text__c,Lock_vod__c,Mobile_ID_vod__c,Phone_Number_vod__c,Product__c,Rush_Delivery__c,Signature_Date_vod__c,Signature_vod__c,State_vod__c,Status_vod__c,Zip_vod__c,zvod_Delivery_Method_vod__c,zvod_Disclaimer_vod__c,Submitted_By_Mobile_vod__c,Disclaimer_vod__c,Entity_Reference_Id_vod__c,Call2_vod__c,Country_vod__c,Override_Lock_vod__c,MSJ_Department__c,MSJ_Doctor_Name__c,MSJ_Hospital_Name__c,MSJ_Indication__c,MSJ_Inquiry_Assignment__c,MSJ_Inquiry_Date__c,MSJ_Inquiry_Input_Manager__c,MSJ_Inquiry_Input_User__c,MSJ_MSL_Manager__c,MSJ_Notice_to_MR__c,MSJ_Person_in_charge_1__c,MSJ_Person_in_charge_2__c,MSJ_Product_for_MEC__c,MSJ_Product_for_MR__c,MSJ_Reply_Date__c,MSJ_Reply_User__c,MSJ_Reply__c,MSJ_Title__c,MSJ_AE_Infomation__c,MSJ_FAQ_Number_Report__c,MSJ_Return_Call_Report__c,MSJ_Inquiry_Origin_Report__c,MSJ_AE_Report__c,MSJ_Background__c,MSJ_MSL_Support__c,MSJ_Material_Requirement__c,MSJ_Hospital_Name_Disp__c,MSJ_Hospital__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,address_line_1_vod__c,address_line_2_vod__c,city_vod__c,delivery_method_vod__c,email_vod__c,fax_number_vod__c,inquiry_text__c,lock_vod__c,mobile_id_vod__c,phone_number_vod__c,product__c,rush_delivery__c,signature_date_vod__c,signature_vod__c,state_vod__c,status_vod__c,zip_vod__c,zvod_delivery_method_vod__c,zvod_disclaimer_vod__c,submitted_by_mobile_vod__c,disclaimer_vod__c,entity_reference_id_vod__c,call2_vod__c,country_vod__c,override_lock_vod__c,msj_department__c,msj_doctor_name__c,msj_hospital_name__c,msj_indication__c,msj_inquiry_assignment__c,msj_inquiry_date__c,msj_inquiry_input_manager__c,msj_inquiry_input_user__c,msj_msl_manager__c,msj_notice_to_mr__c,msj_person_in_charge_1__c,msj_person_in_charge_2__c,msj_product_for_mec__c,msj_product_for_mr__c,msj_reply_date__c,msj_reply_user__c,msj_reply__c,msj_title__c,msj_ae_infomation__c,msj_faq_number_report__c,msj_return_call_report__c,msj_inquiry_origin_report__c,msj_ae_report__c,msj_background__c,msj_msl_support__c,msj_material_requirement__c,msj_hospital_name_disp__c,msj_hospital__c +src02.crm_medical_inquiry_vod__c +org02.crm_medical_inquiry_vod__c + + diff --git a/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt new file mode 100644 index 00000000..0c477d5d --- /dev/null +++ b/s3/data/crm/settings/CRM_Medical_Insight_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +54 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Clinical_Trial_vod__c,Date_vod__c,Description_vod__c,Entity_Reference_Id_vod__c,Interaction_vod__c,Medical_Event_vod__c,Mobile_ID_vod__c,Other_Source_vod__c,Override_Lock_vod__c,Publication_vod__c,Status_vod__c,Summary_vod__c,Unlock_vod__c,Commercial_Medical__c,MSJ_Level_1A__c,MSJ_Level_1B__c,MSJ_Level_2A__c,MSJ_Level_2B__c,MSJ_Level_3A__c,MSJ_Level_3B__c,MSJ_Level_4A__c,MSJ_Level_4B__c,MSJ_SubStatus__c,MSJ_Type_A__c,MSJ_Type_B__c,MSJ_Description_Backup__c,MSJ_Country__c,MSJ_Received_at_Boomi__c,MSJ_Level_1A_Value__c,MSJ_Level_1B_Value__c,MSJ_Level_2A_Value__c,MSJ_Level_2B_Value__c,MSJ_Level_3A_Value__c,MSJ_Level_3B_Value__c,MSJ_Level_4A_Value__c,MSJ_Level_4B_Value__c,MSJ_Hospital_ID__c,MSJ_Hospital_Name__c,MSJ_Hospital__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,clinical_trial_vod__c,date_vod__c,description_vod__c,entity_reference_id_vod__c,interaction_vod__c,medical_event_vod__c,mobile_id_vod__c,other_source_vod__c,override_lock_vod__c,publication_vod__c,status_vod__c,summary_vod__c,unlock_vod__c,commercial_medical__c,msj_level_1_a__c,msj_level_1_b__c,msj_level_2_a__c,msj_level_2_b__c,msj_level_3_a__c,msj_level_3_b__c,msj_level_4_a__c,msj_level_4_b__c,msj_sub_status__c,msj_type_a__c,msj_type_b__c,msj_description_backup__c,msj_country__c,msj_received_at_boomi__c,msj_level_1_a_value__c,msj_level_1_b_value__c,msj_level_2_a_value__c,msj_level_2_b_value__c,msj_level_3_a_value__c,msj_level_3_b_value__c,msj_level_4_a_value__c,msj_level_4_b_value__c,msj_hospital_id__c,msj_hospital_name__c,msj_hospital__c +src02.crm_medical_insight_vod__c +org02.crm_medical_insight_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt new file mode 100644 index 00000000..1b4ed66a --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_Line_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +35 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Multichannel_Activity_vod__c,Call_vod__c,Custom_vod__c,DateTime_vod__c,Debug_vod__c,Detail_Group_VExternal_Id_vod__c,Detail_Group_vod__c,Duration_vod__c,Event_Subtype_vod__c,Event_Type_vod__c,Key_Message_VExternal_Id_vod__c,Key_Message_vod__c,Multichannel_Content_Asset_Id_vod__c,Multichannel_Content_Asset_Version_vod__c,Multichannel_Content_Asset_vod__c,Multichannel_Content_vod__c,Product_VExternal_Id_vod__c,Product_vod__c,Sent_Email_vod__c,VExternal_Id_vod__c,Video_Last_Viewed_Time_vod__c,Video_Length_vod__c,Video_Total_Time_Spent_vod__c,View_Order_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,multichannel_activity_vod__c,call_vod__c,custom_vod__c,date_time_vod__c,debug_vod__c,detail_group_vexternal_id_vod__c,detail_group_vod__c,duration_vod__c,event_subtype_vod__c,event_type_vod__c,key_message_vexternal_id_vod__c,key_message_vod__c,multichannel_content_asset_id_vod__c,multichannel_content_asset_version_vod__c,multichannel_content_asset_vod__c,multichannel_content_vod__c,product_vexternal_id_vod__c,product_vod__c,sent_email_vod__c,vexternal_id_vod__c,video_last_viewed_time_vod__c,video_length_vod__c,video_total_time_spent_vod__c,view_order_vod__c +src02.crm_multichannel_activity_line_vod__c +org02.crm_multichannel_activity_line_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt new file mode 100644 index 00000000..9072d9e4 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Activity_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +47 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_External_ID_Map_vod__c,Account_vod__c,Call_vod__c,City_vod__c,Client_Name_vod__c,Client_OS_vod__c,Client_Type_vod__c,Country_vod__c,Debug_vod__c,Device_vod__c,IP_Address_vod__c,Multichannel_Activity_vod__c,Referring_Site_vod__c,Region_vod__c,Sent_Email_vod__c,Session_Id_vod__c,Site_vod__c,Start_DateTime_vod__c,Total_Duration_vod__c,URL_vod__c,User_Agent_vod__c,VExternal_Id_vod__c,Viewport_Height_vod__c,Viewport_Width_vod__c,Color_vod__c,Icon_vod__c,MCD_Primary_Key_vod__c,Record_Type_Name_vod__c,MSJ_Date_Opened__c,MSJ_Sent_Date__c,MSJ_Email_Subject__c,MSJ_Opens__c,MSJ_Email_Status__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_external_id_map_vod__c,account_vod__c,call_vod__c,city_vod__c,client_name_vod__c,client_os_vod__c,client_type_vod__c,country_vod__c,debug_vod__c,device_vod__c,ip_address_vod__c,multichannel_activity_vod__c,referring_site_vod__c,region_vod__c,sent_email_vod__c,session_id_vod__c,site_vod__c,start_date_time_vod__c,total_duration_vod__c,url_vod__c,user_agent_vod__c,vexternal_id_vod__c,viewport_height_vod__c,viewport_width_vod__c,color_vod__c,icon_vod__c,mcd_primary_key_vod__c,record_type_name_vod__c,msj_date_opened__c,msj_sent_date__c,msj_email_subject__c,msj_opens__c,msj_email_status__c +src02.crm_multichannel_activity_vod__c +org02.crm_multichannel_activity_vod__c + + diff --git a/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt new file mode 100644 index 00000000..be8d8b57 --- /dev/null +++ b/s3/data/crm/settings/CRM_Multichannel_Consent_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +48 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Capture_Datetime_vod__c,Channel_Value_vod__c,Detail_Group_vod__c,External_ID_vod__c,Last_Device_vod__c,Mobile_ID_vod__c,Opt_Expiration_Date_vod__c,Opt_Type_vod__c,Optout_Event_Type_vod__c,Product_vod__c,Signature_Datetime_vod__c,Signature_ID_vod__c,Signature_vod__c,Sample_Consent_Template_Data_vod__c,Sample_Consent_Template_vod__c,Consent_Line_vod__c,Consent_Type_vod__c,Default_Consent_Text_vod__c,Disclaimer_Text_vod__c,Sub_Channel_Key_vod__c,Consent_Confirm_Datetime_vod__c,Related_Transaction_Id_vod__c,Sent_Email_vod__c,Content_Type_vod__c,Receipt_Email_vod__c,Receipt_Sent_Email_Transaction_Id_vod__c,Receipt_Sent_Email_vod__c,Captured_By_vod__c,Opt_Out_Disclaimer_Text_vod__c,Channel_Source_vod__c,Union_Id_vod__c,User_Last_Notified_vod__c,Sub_Channel_Display_Name__c,MSJ_Consent_Source__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,capture_datetime_vod__c,channel_value_vod__c,detail_group_vod__c,external_id_vod__c,last_device_vod__c,mobile_id_vod__c,opt_expiration_date_vod__c,opt_type_vod__c,optout_event_type_vod__c,product_vod__c,signature_datetime_vod__c,signature_id_vod__c,signature_vod__c,sample_consent_template_data_vod__c,sample_consent_template_vod__c,consent_line_vod__c,consent_type_vod__c,default_consent_text_vod__c,disclaimer_text_vod__c,sub_channel_key_vod__c,consent_confirm_datetime_vod__c,related_transaction_id_vod__c,sent_email_vod__c,content_type_vod__c,receipt_email_vod__c,receipt_sent_email_transaction_id_vod__c,receipt_sent_email_vod__c,captured_by_vod__c,opt_out_disclaimer_text_vod__c,channel_source_vod__c,union_id_vod__c,user_last_notified_vod__c,sub_channel_display_name__c,msj_consent_source__c +src02.crm_multichannel_consent_vod__c +org02.crm_multichannel_consent_vod__c + + diff --git a/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt new file mode 100644 index 00000000..47c71f53 --- /dev/null +++ b/s3/data/crm/settings/CRM_My_Setup_Products_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +12 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Product_vod__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,product_vod__c +src02.crm_my_setup_products_vod__c +org02.crm_my_setup_products_vod__c + + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt new file mode 100644 index 00000000..fff7b033 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +9 +Id,ObjectId,Territory2Id,AssociationCause,SobjectType,IsDeleted,LastModifiedDate,LastModifiedById,SystemModstamp +id,object_id,territory2_id,association_cause,sobject_type,is_deleted,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_object_territory2_association +org02.crm_object_territory2_association +CRM_ObjectTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql new file mode 100644 index 00000000..d142c071 --- /dev/null +++ b/s3/data/crm/settings/CRM_ObjectTerritory2Association_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_object_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Product_Group_vod__c.txt b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt new file mode 100644 index 00000000..7b6c6cff --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Group_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +17 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Description_vod__c,Product_vod__c,Product_Catalog_vod__c,Start_Date_vod__c,End_Date_vod__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,description_vod__c,product_vod__c,product_catalog_vod__c,start_date_vod__c,end_date_vod__c +src02.crm_product_group_vod__c +org02.crm_product_group_vod__c + + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt new file mode 100644 index 00000000..4629f0eb --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +52 +Id,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_vod__c,Awareness__c,Selling_Stage__c,Formulary_Status__c,Movement__c,Products_vod__c,Segment__c,X12_mo_trx_chg__c,Speaker_Skills__c,Investigator_Readiness__c,Engagements__c,Mobile_ID_vod__c,External_ID_vod__c,MSJ_Patient__c,Detail_Group_vod__c,MSJ_EB_1st_Line_Liver_Meta__c,MSJ_EB_1st_Line_Multi_Meta__c,MSJ_EB_2nd_Line_Mono__c,MSJ_EB_2nd_Line_Combination__c,MSJ_EB_3rd_Line_Mono__c,MSJ_EB_3rd_Line_Combination__c,EMDS_Ability__c,EMDS_Brand_Loyalty__c,EMDS_Decision_Maker__c,EMDS_Early_Tech_Adopter__c,EMDS_Influence__c,EMDS_Main_Driver__c,EMDS_Priority__c,EMDS_Willingness__c,MSJ_KTL_Type__c,MSJ_KTL_Tier__c,MSJ_Publications__c,MSJ_Clinical_Trials__c,MSJ_Speaker_for_Medical_Events__c,MSJ_Advisor_to_Medical_Affairs__c,MSJ_Guidelines_Treatment_Standards__c,MSJ_Therapeutic_Area_Expertise__c,MSJ_MAP_GAP__c,MSJ_Associations__c,MSJ_Tier_Score__c +id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_vod__c,awareness__c,selling_stage__c,formulary_status__c,movement__c,products_vod__c,segment__c,x12_mo_trx_chg__c,speaker_skills__c,investigator_readiness__c,engagements__c,mobile_id_vod__c,external_id_vod__c,msj_patient__c,detail_group_vod__c,msj_eb_1st_line_liver_meta__c,msj_eb_1st_line_multi_meta__c,msj_eb_2nd_line_mono__c,msj_eb_2nd_line_combination__c,msj_eb_3rd_line_mono__c,msj_eb_3rd_line_combination__c,emds_ability__c,emds_brand_loyalty__c,emds_decision_maker__c,emds_early_tech_adopter__c,emds_influence__c,emds_main_driver__c,emds_priority__c,emds_willingness__c,msj_ktl_type__c,msj_ktl_tier__c,msj_publications__c,msj_clinical_trials__c,msj_speaker_for_medical_events__c,msj_advisor_to_medical_affairs__c,msj_guidelines_treatment_standards__c,msj_therapeutic_area_expertise__c,msj_map_gap__c,msj_associations__c,msj_tier_score__c +src02.crm_product_metrics_vod__c +org02.crm_product_metrics_vod__c +CRM_Product_Metrics_vod__c_ex.sql + diff --git a/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql new file mode 100644 index 00000000..af2e678e --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_Metrics_vod__c_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_product_metrics_vod__c', 'system_modstamp'); \ No newline at end of file diff --git a/s3/data/crm/settings/CRM_Product_vod__c.txt b/s3/data/crm/settings/CRM_Product_vod__c.txt new file mode 100644 index 00000000..843cec84 --- /dev/null +++ b/s3/data/crm/settings/CRM_Product_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +46 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Consumer_site__c,Product_info__c,Therapeutic_Class_vod__c,Parent_Product_vod__c,Therapeutic_Area_vod__c,Product_Type_vod__c,Require_Key_Message_vod__c,Cost_vod__c,External_ID_vod__c,Manufacturer_vod__c,Company_Product_vod__c,Controlled_Substance_vod__c,Description_vod__c,Sample_Quantity_Picklist_vod__c,Display_Order_vod__c,No_Metrics_vod__c,Distributor_vod__c,Sample_Quantity_Bound_vod__c,Sample_U_M_vod__c,No_Details_vod__c,Quantity_Per_Case_vod__c,Schedule_vod__c,Restricted_vod__c,Pricing_Rule_Quantity_Bound_vod__c,No_Promo_Items_vod__c,User_Aligned_vod__c,Restricted_States_vod__c,Sort_Code_vod__c,No_Cycle_Plans_vod__c,Inventory_Order_UOM_vod__c,Inventory_Quantity_Per_Case_vod__c,VExternal_Id_vod__c,Country__c,MSJ_Product_Classification__c,MSJ_Indication__c,MSJ_Therapeutic_Area__c,MSJ_Global_Brand__c,MSJ_Global_Business_Unit__c,MSJ_Molecules__c,MSJ_SBU__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,consumer_site__c,product_info__c,therapeutic_class_vod__c,parent_product_vod__c,therapeutic_area_vod__c,product_type_vod__c,require_key_message_vod__c,cost_vod__c,external_id_vod__c,manufacturer_vod__c,company_product_vod__c,controlled_substance_vod__c,description_vod__c,sample_quantity_picklist_vod__c,display_order_vod__c,no_metrics_vod__c,distributor_vod__c,sample_quantity_bound_vod__c,sample_u_m_vod__c,no_details_vod__c,quantity_per_case_vod__c,schedule_vod__c,restricted_vod__c,pricing_rule_quantity_bound_vod__c,no_promo_items_vod__c,user_aligned_vod__c,restricted_states_vod__c,sort_code_vod__c,no_cycle_plans_vod__c,inventory_order_uom_vod__c,inventory_quantity_per_case_vod__c,vexternal_id_vod__c,country__c,msj_product_classification__c,msj_indication__c,msj_therapeutic_area__c,msj_global_brand__c,msj_global_business_unit__c,msj_molecules__c,msj_sbu__c +src02.crm_product_vod__c +org02.crm_product_vod__c + + diff --git a/s3/data/crm/settings/CRM_Profile.txt b/s3/data/crm/settings/CRM_Profile.txt new file mode 100644 index 00000000..558ce629 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +237 +Id,Name,PermissionsEmailSingle,PermissionsEmailMass,PermissionsEditTask,PermissionsEditEvent,PermissionsExportReport,PermissionsImportPersonal,PermissionsDataExport,PermissionsManageUsers,PermissionsEditPublicFilters,PermissionsEditPublicTemplates,PermissionsModifyAllData,PermissionsManageCases,PermissionsManageSolutions,PermissionsCustomizeApplication,PermissionsEditReadonlyFields,PermissionsRunReports,PermissionsViewSetup,PermissionsTransferAnyEntity,PermissionsNewReportBuilder,PermissionsManageSelfService,PermissionsManageCssUsers,PermissionsActivateContract,PermissionsApproveContract,PermissionsImportLeads,PermissionsManageLeads,PermissionsTransferAnyLead,PermissionsViewAllData,PermissionsEditPublicDocuments,PermissionsViewEncryptedData,PermissionsEditBrandTemplates,PermissionsEditHtmlTemplates,PermissionsManageTranslation,PermissionsDeleteActivatedContract,PermissionsSendSitRequests,PermissionsApiUserOnly,PermissionsManageRemoteAccess,PermissionsCanUseNewDashboardBuilder,PermissionsManageCategories,PermissionsConvertLeads,PermissionsTestInstanceCreate,PermissionsPasswordNeverExpires,PermissionsUseTeamReassignWizards,PermissionsInstallMultiforce,PermissionsPublishMultiforce,PermissionsEditOppLineItemUnitPrice,PermissionsManageTerritories,PermissionsCreateMultiforce,PermissionsBulkApiHardDelete,PermissionsInboundMigrationToolsUser,PermissionsSolutionImport,PermissionsManageCallCenters,PermissionsManageSynonyms,PermissionsOutboundMigrationToolsUser,PermissionsViewContent,PermissionsManageEmailClientConfig,PermissionsEnableNotifications,PermissionsManageDataIntegrations,PermissionsDistributeFromPersWksp,PermissionsViewDataCategories,PermissionsManageDataCategories,PermissionsAuthorApex,PermissionsManageMobile,PermissionsApiEnabled,PermissionsManageCustomReportTypes,PermissionsEditCaseComments,PermissionsTransferAnyCase,PermissionsContentAdministrator,PermissionsCreateWorkspaces,PermissionsManageContentPermissions,PermissionsManageContentProperties,PermissionsManageContentTypes,PermissionsScheduleJob,PermissionsManageExchangeConfig,PermissionsManageAnalyticSnapshots,PermissionsScheduleReports,PermissionsManageBusinessHourHolidays,PermissionsManageDynamicDashboards,PermissionsManageInteraction,PermissionsViewMyTeamsDashboards,PermissionsResetPasswords,PermissionsFlowUFLRequired,PermissionsActivitiesAccess,PermissionsEmailTemplateManagement,PermissionsEmailAdministration,PermissionsChatterFileLink,PermissionsForceTwoFactor,PermissionsViewEventLogFiles,PermissionsManageNetworks,PermissionsManageAuthProviders,PermissionsRunFlow,PermissionsCreateCustomizeDashboards,PermissionsCreateDashboardFolders,PermissionsViewPublicDashboards,PermissionsManageDashbdsInPubFolders,PermissionsCreateCustomizeReports,PermissionsCreateReportFolders,PermissionsViewPublicReports,PermissionsManageReportsInPubFolders,PermissionsEditMyDashboards,PermissionsEditMyReports,PermissionsViewAllUsers,PermissionsConnectOrgToEnvironmentHub,PermissionsCreateCustomizeFilters,PermissionsContentHubUser,PermissionsGovernNetworks,PermissionsSalesConsole,PermissionsTwoFactorApi,PermissionsDeleteTopics,PermissionsEditTopics,PermissionsCreateTopics,PermissionsAssignTopics,PermissionsIdentityEnabled,PermissionsIdentityConnect,PermissionsContentWorkspaces,PermissionsCustomMobileAppsAccess,PermissionsViewHelpLink,PermissionsManageProfilesPermissionsets,PermissionsAssignPermissionSets,PermissionsManageRoles,PermissionsManageIpAddresses,PermissionsManageSharing,PermissionsManageInternalUsers,PermissionsManagePasswordPolicies,PermissionsManageLoginAccessPolicies,PermissionsManageCustomPermissions,PermissionsStdAutomaticActivityCapture,PermissionsManageTwoFactor,PermissionsDebugApex,PermissionsLightningExperienceUser,PermissionsConfigCustomRecs,PermissionsSubmitMacrosAllowed,PermissionsBulkMacrosAllowed,PermissionsManageSessionPermissionSets,PermissionsCreateAuditFields,PermissionsUpdateWithInactiveOwner,PermissionsManageSandboxes,PermissionsAutomaticActivityCapture,PermissionsImportCustomObjects,PermissionsDelegatedTwoFactor,PermissionsSelectFilesFromSalesforce,PermissionsModerateNetworkUsers,PermissionsMergeTopics,PermissionsSubscribeToLightningReports,PermissionsManagePvtRptsAndDashbds,PermissionsAllowLightningLogin,PermissionsCampaignInfluence2,PermissionsViewDataAssessment,PermissionsCanApproveFeedPost,PermissionsAllowViewEditConvertedLeads,PermissionsShowCompanyNameAsUserBadge,PermissionsAccessCMC,PermissionsViewHealthCheck,PermissionsManageHealthCheck,PermissionsPackaging2,PermissionsManageCertificates,PermissionsCreateReportInLightning,PermissionsPreventClassicExperience,PermissionsListEmailSend,PermissionsChangeDashboardColors,PermissionsManageRecommendationStrategies,PermissionsManagePropositions,PermissionsSubscribeReportRolesGrps,PermissionsSubscribeDashboardRolesGrps,PermissionsUseWebLink,PermissionsHasUnlimitedNBAExecutions,PermissionsViewOnlyEmbeddedAppUser,PermissionsViewAllActivities,PermissionsSubscribeReportToOtherUsers,PermissionsLightningConsoleAllowedForUser,PermissionsSubscribeReportsRunAsUser,PermissionsSubscribeToLightningDashboards,PermissionsSubscribeDashboardToOtherUsers,PermissionsCreateLtngTempInPub,PermissionsTransactionalEmailSend,PermissionsViewPrivateStaticResources,PermissionsCreateLtngTempFolder,PermissionsApexRestServices,PermissionsEnableCommunityAppLauncher,PermissionsGiveRecognitionBadge,PermissionsUseMySearch,PermissionsLtngPromoReserved01UserPerm,PermissionsManageSubscriptions,PermissionsManageSurveys,PermissionsUseAssistantDialog,PermissionsUseQuerySuggestions,PermissionsViewRoles,PermissionsLMOutboundMessagingUserPerm,PermissionsModifyDataClassification,PermissionsPrivacyDataAccess,PermissionsQueryAllFiles,PermissionsModifyMetadata,PermissionsManageCMS,PermissionsSandboxTestingInCommunityApp,PermissionsCanEditPrompts,PermissionsViewUserPII,PermissionsManageHubConnections,PermissionsB2BMarketingAnalyticsUser,PermissionsTraceXdsQueries,PermissionsViewAllCustomSettings,PermissionsViewAllForeignKeyNames,PermissionsHeadlessCMSAccess,PermissionsLMEndMessagingSessionUserPerm,PermissionsConsentApiUpdate,PermissionsAccessContentBuilder,PermissionsAccountSwitcherUser,PermissionsManageC360AConnections,PermissionsManageReleaseUpdates,PermissionsViewAllProfiles,PermissionsSkipIdentityConfirmation,PermissionsSendCustomNotifications,PermissionsPackaging2Delete,PermissionsFSCComprehensiveUserAccess,PermissionsManageTrustMeasures,PermissionsViewTrustMeasures,PermissionsIsotopeCToCUser,PermissionsIsotopeAccess,PermissionsIsotopeLEX,PermissionsQuipMetricsAccess,PermissionsQuipUserEngagementMetrics,PermissionsManageExternalConnections,PermissionsAIViewInsightObjects,PermissionsAICreateInsightObjects,PermissionsNativeWebviewScrolling,PermissionsViewDeveloperName,Type,UserLicenseId,UserType,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,Description,LastViewedDate,LastReferencedDate +id,name,permissions_email_single,permissions_email_mass,permissions_edit_task,permissions_edit_event,permissions_export_report,permissions_import_personal,permissions_data_export,permissions_manage_users,permissions_edit_public_filters,permissions_edit_public_templates,permissions_modify_all_data,permissions_manage_cases,permissions_manage_solutions,permissions_customize_application,permissions_edit_readonly_fields,permissions_run_reports,permissions_view_setup,permissions_transfer_any_entity,permissions_new_report_builder,permissions_manage_self_service,permissions_manage_css_users,permissions_activate_contract,permissions_approve_contract,permissions_import_leads,permissions_manage_leads,permissions_transfer_any_lead,permissions_view_all_data,permissions_edit_public_documents,permissions_view_encrypted_data,permissions_edit_brand_templates,permissions_edit_html_templates,permissions_manage_translation,permissions_delete_activated_contract,permissions_send_sit_requests,permissions_api_user_only,permissions_manage_remote_access,permissions_can_use_new_dashboard_builder,permissions_manage_categories,permissions_convert_leads,permissions_test_instance_create,permissions_password_never_expires,permissions_use_team_reassign_wizards,permissions_install_multiforce,permissions_publish_multiforce,permissions_edit_opp_line_item_unit_price,permissions_manage_territories,permissions_create_multiforce,permissions_bulk_api_hard_delete,permissions_inbound_migration_tools_user,permissions_solution_import,permissions_manage_call_centers,permissions_manage_synonyms,permissions_outbound_migration_tools_user,permissions_view_content,permissions_manage_email_client_config,permissions_enable_notifications,permissions_manage_data_integrations,permissions_distribute_from_pers_wksp,permissions_view_data_categories,permissions_manage_data_categories,permissions_author_apex,permissions_manage_mobile,permissions_api_enabled,permissions_manage_custom_report_types,permissions_edit_case_comments,permissions_transfer_any_case,permissions_content_administrator,permissions_create_workspaces,permissions_manage_content_permissions,permissions_manage_content_properties,permissions_manage_content_types,permissions_schedule_job,permissions_manage_exchange_config,permissions_manage_analytic_snapshots,permissions_schedule_reports,permissions_manage_business_hour_holidays,permissions_manage_dynamic_dashboards,permissions_manage_interaction,permissions_view_my_teams_dashboards,permissions_reset_passwords,permissions_flow_uflrequired,permissions_activities_access,permissions_email_template_management,permissions_email_administration,permissions_chatter_file_link,permissions_force_two_factor,permissions_view_event_log_files,permissions_manage_networks,permissions_manage_auth_providers,permissions_run_flow,permissions_create_customize_dashboards,permissions_create_dashboard_folders,permissions_view_public_dashboards,permissions_manage_dashbds_in_pub_folders,permissions_create_customize_reports,permissions_create_report_folders,permissions_view_public_reports,permissions_manage_reports_in_pub_folders,permissions_edit_my_dashboards,permissions_edit_my_reports,permissions_view_all_users,permissions_connect_org_to_environment_hub,permissions_create_customize_filters,permissions_content_hub_user,permissions_govern_networks,permissions_sales_console,permissions_two_factor_api,permissions_delete_topics,permissions_edit_topics,permissions_create_topics,permissions_assign_topics,permissions_identity_enabled,permissions_identity_connect,permissions_content_workspaces,permissions_custom_mobile_apps_access,permissions_view_help_link,permissions_manage_profiles_permissionsets,permissions_assign_permission_sets,permissions_manage_roles,permissions_manage_ip_addresses,permissions_manage_sharing,permissions_manage_internal_users,permissions_manage_password_policies,permissions_manage_login_access_policies,permissions_manage_custom_permissions,permissions_std_automatic_activity_capture,permissions_manage_two_factor,permissions_debug_apex,permissions_lightning_experience_user,permissions_config_custom_recs,permissions_submit_macros_allowed,permissions_bulk_macros_allowed,permissions_manage_session_permission_sets,permissions_create_audit_fields,permissions_update_with_inactive_owner,permissions_manage_sandboxes,permissions_automatic_activity_capture,permissions_import_custom_objects,permissions_delegated_two_factor,permissions_select_files_from_salesforce,permissions_moderate_network_users,permissions_merge_topics,permissions_subscribe_to_lightning_reports,permissions_manage_pvt_rpts_and_dashbds,permissions_allow_lightning_login,permissions_campaign_influence2,permissions_view_data_assessment,permissions_can_approve_feed_post,permissions_allow_view_edit_converted_leads,permissions_show_company_name_as_user_badge,permissions_access_cmc,permissions_view_health_check,permissions_manage_health_check,permissions_packaging2,permissions_manage_certificates,permissions_create_report_in_lightning,permissions_prevent_classic_experience,permissions_list_email_send,permissions_change_dashboard_colors,permissions_manage_recommendation_strategies,permissions_manage_propositions,permissions_subscribe_report_roles_grps,permissions_subscribe_dashboard_roles_grps,permissions_use_web_link,permissions_has_unlimited_nbaexecutions,permissions_view_only_embedded_app_user,permissions_view_all_activities,permissions_subscribe_report_to_other_users,permissions_lightning_console_allowed_for_user,permissions_subscribe_reports_run_as_user,permissions_subscribe_to_lightning_dashboards,permissions_subscribe_dashboard_to_other_users,permissions_create_ltng_temp_in_pub,permissions_transactional_email_send,permissions_view_private_static_resources,permissions_create_ltng_temp_folder,permissions_apex_rest_services,permissions_enable_community_app_launcher,permissions_give_recognition_badge,permissions_use_my_search,permissions_ltng_promo_reserved01_user_perm,permissions_manage_subscriptions,permissions_manage_surveys,permissions_use_assistant_dialog,permissions_use_query_suggestions,permissions_view_roles,permissions_lmoutbound_messaging_user_perm,permissions_modify_data_classification,permissions_privacy_data_access,permissions_query_all_files,permissions_modify_metadata,permissions_manage_cms,permissions_sandbox_testing_in_community_app,permissions_can_edit_prompts,permissions_view_user_pii,permissions_manage_hub_connections,permissions_b2_bmarketing_analytics_user,permissions_trace_xds_queries,permissions_view_all_custom_settings,permissions_view_all_foreign_key_names,permissions_headless_cmsaccess,permissions_lmend_messaging_session_user_perm,permissions_consent_api_update,permissions_access_content_builder,permissions_account_switcher_user,permissions_manage_c360_aconnections,permissions_manage_release_updates,permissions_view_all_profiles,permissions_skip_identity_confirmation,permissions_send_custom_notifications,permissions_packaging2_delete,permissions_fsccomprehensive_user_access,permissions_manage_trust_measures,permissions_view_trust_measures,permissions_isotope_cto_cuser,permissions_isotope_access,permissions_isotope_lex,permissions_quip_metrics_access,permissions_quip_user_engagement_metrics,permissions_manage_external_connections,permissions_aiview_insight_objects,permissions_aicreate_insight_objects,permissions_native_webview_scrolling,permissions_view_developer_name,type,user_license_id,user_type,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,description,last_viewed_date,last_referenced_date +src02.crm_profile +org02.crm_profile +CRM_Profile_ex.sql + diff --git a/s3/data/crm/settings/CRM_Profile_ex.sql b/s3/data/crm/settings/CRM_Profile_ex.sql new file mode 100644 index 00000000..b858ab02 --- /dev/null +++ b/s3/data/crm/settings/CRM_Profile_ex.sql @@ -0,0 +1 @@ +CALL crm_history('src02.crm_profile', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Question_Response_vod__c.txt b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt new file mode 100644 index 00000000..a994ab4a --- /dev/null +++ b/s3/data/crm/settings/CRM_Question_Response_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +30 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_Target_vod__c,Answer_Choice_vod__c,Date_vod__c,Datetime_vod__c,External_ID_vod__c,Mobile_ID_vod__c,Number_vod__c,Order_vod__c,Question_Text_vod__c,Required_vod__c,Response_Hash_vod__c,Response_vod__c,Score_vod__c,Survey_Question_vod__c,Text_vod__c,Type_vod__c,Condition_vod__c,Inactive_Condition_vod__c,Source_ID_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_target_vod__c,answer_choice_vod__c,date_vod__c,datetime_vod__c,external_id_vod__c,mobile_id_vod__c,number_vod__c,order_vod__c,question_text_vod__c,required_vod__c,response_hash_vod__c,response_vod__c,score_vod__c,survey_question_vod__c,text_vod__c,type_vod__c,condition_vod__c,inactive_condition_vod__c,source_id_vod__c +src02.crm_question_response_vod__c +org02.crm_question_response_vod__c + + diff --git a/s3/data/crm/settings/CRM_RecordType.txt b/s3/data/crm/settings/CRM_RecordType.txt new file mode 100644 index 00000000..78960693 --- /dev/null +++ b/s3/data/crm/settings/CRM_RecordType.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +14 +Id,Name,DeveloperName,NamespacePrefix,Description,BusinessProcessId,SobjectType,IsActive,IsPersonType,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate,SystemModstamp +id,name,developer_name,namespace_prefix,description,business_process_id,sobject_type,is_active,is_person_type,created_by_id,created_date,last_modified_by_id,last_modified_date,system_modstamp +src02.crm_record_type +org02.crm_record_type + + diff --git a/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt new file mode 100644 index 00000000..1b4827c9 --- /dev/null +++ b/s3/data/crm/settings/CRM_Remote_Meeting_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +24 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Meeting_Id_vod__c,Meeting_Name_vod__c,Mobile_ID_vod__c,Scheduled_DateTime_vod__c,Scheduled_vod__c,Attendance_Report_Process_Status_vod__c,Latest_Meeting_Start_Datetime_vod__c,Meeting_Password_vod__c,Meeting_Outcome_Status_vod__c,Allow_for_Joining_via_Zoom_vod__c,Zoom_Join_Token_vod__c,VExternal_Id_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,meeting_id_vod__c,meeting_name_vod__c,mobile_id_vod__c,scheduled_date_time_vod__c,scheduled_vod__c,attendance_report_process_status_vod__c,latest_meeting_start_datetime_vod__c,meeting_password_vod__c,meeting_outcome_status_vod__c,allow_for_joining_via_zoom_vod__c,zoom_join_token_vod__c,vexternal_id_vod__c +src02.crm_remote_meeting_vod__c +org02.crm_remote_meeting_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt new file mode 100644 index 00000000..148ed757 --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Email_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +65 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Account_Email_vod__c,Account_vod__c,Approved_Email_Template_vod__c,Capture_Datetime_vod__c,Detail_Group_vod__c,Email_Config_Values_vod__c,Email_Content2_vod__c,Email_Content_vod__c,Email_Fragments_vod__c,Email_Sent_Date_vod__c,Failure_Msg_vod__c,Last_Activity_Date_vod__c,Last_Device_vod__c,MC_Capture_Datetime_vod__c,Mobile_ID_vod__c,Opened_vod__c,Product_Display_vod__c,Product_vod__c,Sender_Email_vod__c,Status_vod__c,Valid_Consent_Exists_vod__c,Approved_Document_Views_vod__c,Click_Count_vod__c,Last_Click_Date_vod__c,Last_Open_Date_vod__c,Open_Count_vod__c,Receipt_Entity_Type_vod__c,Receipt_Record_Id_vod__c,Territory_vod__c,Call2_vod__c,Medical_Inquiry_vod__c,Parent_Email_vod__c,Related_Transaction_ID_vod__c,Case_vod__c,Key_Message_vod__c,Suggestion_vod__c,EM_Attendee_vod__c,EM_Event_Speaker_vod__c,EM_Event_Team_Member_vod__c,Event_Attendee_vod__c,Event_vod__c,Medical_Event_vod__c,Scheduled_Send_Datetime_vod__c,User_vod__c,Content_Type_vod__c,Bcc_vod__c,Event_Attendee_Mobile_Id_vod__c,Event_Mobile_Id_vod__c,Activity_Tracking_Mode_vod__c,Email_Source_vod__c,Subject_vod__c,User_Input_Text_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,account_email_vod__c,account_vod__c,approved_email_template_vod__c,capture_datetime_vod__c,detail_group_vod__c,email_config_values_vod__c,email_content2_vod__c,email_content_vod__c,email_fragments_vod__c,email_sent_date_vod__c,failure_msg_vod__c,last_activity_date_vod__c,last_device_vod__c,mc_capture_datetime_vod__c,mobile_id_vod__c,opened_vod__c,product_display_vod__c,product_vod__c,sender_email_vod__c,status_vod__c,valid_consent_exists_vod__c,approved_document_views_vod__c,click_count_vod__c,last_click_date_vod__c,last_open_date_vod__c,open_count_vod__c,receipt_entity_type_vod__c,receipt_record_id_vod__c,territory_vod__c,call2_vod__c,medical_inquiry_vod__c,parent_email_vod__c,related_transaction_id_vod__c,case_vod__c,key_message_vod__c,suggestion_vod__c,em_attendee_vod__c,em_event_speaker_vod__c,em_event_team_member_vod__c,event_attendee_vod__c,event_vod__c,medical_event_vod__c,scheduled_send_datetime_vod__c,user_vod__c,content_type_vod__c,bcc_vod__c,event_attendee_mobile_id_vod__c,event_mobile_id_vod__c,activity_tracking_mode_vod__c,email_source_vod__c,subject_vod__c,user_input_text_vod__c +src02.crm_sent_email_vod__c +org02.crm_sent_email_vod__c + + diff --git a/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt new file mode 100644 index 00000000..c93f9f9e --- /dev/null +++ b/s3/data/crm/settings/CRM_Sent_Fragment_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,Sent_Email_vod__c,Account_vod__c,Email_Template_vod__c,Sent_Fragment_vod__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,sent_email_vod__c,account_vod__c,email_template_vod__c,sent_fragment_vod__c +src02.crm_sent_fragment_vod__c +org02.crm_sent_fragment_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt new file mode 100644 index 00000000..3a636f0a --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Question_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +23 +Id,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,Survey_vod__c,Answer_Choice_vod__c,External_ID_vod__c,Max_Score_vod__c,Min_Score_vod__c,Order_vod__c,Question_vod__c,Required_vod__c,Text_vod__c,Condition_vod__c,Source_ID_vod__c,MSJ_External_ID__c +id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,survey_vod__c,answer_choice_vod__c,external_id_vod__c,max_score_vod__c,min_score_vod__c,order_vod__c,question_vod__c,required_vod__c,text_vod__c,condition_vod__c,source_id_vod__c,msj_external_id__c +src02.crm_survey_question_vod__c +org02.crm_survey_question_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt new file mode 100644 index 00000000..f9f80626 --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_Target_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +39 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Account_Display_Name_vod__c,Account_vod__c,Channels_vod__c,End_Date_vod__c,Entity_Reference_Id_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Mobile_ID_vod__c,No_Autoassign_vod__c,Not_Completed_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Survey_vod__c,Territory_vod__c,zvod_Address_vod__c,zvod_Specialty_vod__c,Score_vod__c,User_vod__c,Child_Account_vod__c,Location_Entity_Reference_Id_vod__c,Location_vod__c,Target_Type_vod__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,account_display_name_vod__c,account_vod__c,channels_vod__c,end_date_vod__c,entity_reference_id_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,mobile_id_vod__c,no_autoassign_vod__c,not_completed_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,survey_vod__c,territory_vod__c,zvod_address_vod__c,zvod_specialty_vod__c,score_vod__c,user_vod__c,child_account_vod__c,location_entity_reference_id_vod__c,location_vod__c,target_type_vod__c +src02.crm_survey_target_vod__c +org02.crm_survey_target_vod__c + + diff --git a/s3/data/crm/settings/CRM_Survey_vod__c.txt b/s3/data/crm/settings/CRM_Survey_vod__c.txt new file mode 100644 index 00000000..bfd04a2e --- /dev/null +++ b/s3/data/crm/settings/CRM_Survey_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +37 +Id,OwnerId,IsDeleted,Name,RecordTypeId,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Assignment_Type_vod__c,Channels_vod__c,End_Date_vod__c,Expired_vod__c,External_ID_vod__c,Language_vod__c,Lock_vod__c,Open_vod__c,Product_vod__c,Region_vod__c,Segment_vod__c,Start_Date_vod__c,Status_vod__c,Territory_vod__c,zvod_Questions_vod__c,zvod_Segments_vod__c,zvod_Targets_vod__c,Max_Score_vod__c,Min_Score_vod__c,Autotarget_vod__c,Territories_vod__c,Target_Type_vod__c,MSJ_External_ID__c +id,owner_id,is_deleted,name,record_type_id,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,may_edit,is_locked,last_viewed_date,last_referenced_date,assignment_type_vod__c,channels_vod__c,end_date_vod__c,expired_vod__c,external_id_vod__c,language_vod__c,lock_vod__c,open_vod__c,product_vod__c,region_vod__c,segment_vod__c,start_date_vod__c,status_vod__c,territory_vod__c,zvod_questions_vod__c,zvod_segments_vod__c,zvod_targets_vod__c,max_score_vod__c,min_score_vod__c,autotarget_vod__c,territories_vod__c,target_type_vod__c,msj_external_id__c +src02.crm_survey_vod__c +org02.crm_survey_vod__c + + diff --git a/s3/data/crm/settings/CRM_Territory2.txt b/s3/data/crm/settings/CRM_Territory2.txt new file mode 100644 index 00000000..5486b657 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,MSJ_Territory_Type__c,MSJ_Level__c +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name,msj_territory_type__c,msj_level__c +src02.crm_territory2 +org02.crm_territory2 +CRM_Territory2_ex.sql + diff --git a/s3/data/crm/settings/CRM_Territory2_ALL.txt b/s3/data/crm/settings/CRM_Territory2_ALL.txt new file mode 100644 index 00000000..525e1796 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +15 +Id,Name,Territory2TypeId,Territory2ModelId,ParentTerritory2Id,Description,ForecastUserId,AccountAccessLevel,OpportunityAccessLevel,CaseAccessLevel,ContactAccessLevel,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName +id,name,territory2_type_id,territory2_model_id,parent_territory2_id,description,forecast_user_id,account_access_level,opportunity_access_level,case_access_level,contact_access_level,last_modified_date,last_modified_by_id,system_modstamp,developer_name +src02.crm_territory2_all +org02.crm_territory2_all + + +truncate_src_table:src02.crm_territory2_all diff --git a/s3/data/crm/settings/CRM_Territory2_ex.sql b/s3/data/crm/settings/CRM_Territory2_ex.sql new file mode 100644 index 00000000..a30ccd91 --- /dev/null +++ b/s3/data/crm/settings/CRM_Territory2_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_territory2', 'src02.crm_territory2_all', 'system_modstamp'); +CALL crm_history('src02.crm_territory2', 'system_modstamp'); diff --git a/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt new file mode 100644 index 00000000..e2b1b9b6 --- /dev/null +++ b/s3/data/crm/settings/CRM_Time_Off_Territory_vod__c.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +25 +Id,OwnerId,IsDeleted,Name,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,LastActivityDate,MayEdit,IsLocked,LastViewedDate,LastReferencedDate,Reason_vod__c,Territory_vod__c,Date_vod__c,Status_vod__c,Time_vod__c,Hours_vod__c,Mobile_ID_vod__c,Hours_off_vod__c,Start_Time_vod__c,MSJ_Day__c,MSJ_Comment__c +id,owner_id,is_deleted,name,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,last_activity_date,may_edit,is_locked,last_viewed_date,last_referenced_date,reason_vod__c,territory_vod__c,date_vod__c,status_vod__c,time_vod__c,hours_vod__c,mobile_id_vod__c,hours_off_vod__c,start_time_vod__c,msj_day__c,msj_comment__c +src02.crm_time_off_territory_vod__c +org02.crm_time_off_territory_vod__c + + diff --git a/s3/data/crm/settings/CRM_User.txt b/s3/data/crm/settings/CRM_User.txt new file mode 100644 index 00000000..317a5e14 --- /dev/null +++ b/s3/data/crm/settings/CRM_User.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +197 +Id,Username,LastName,FirstName,Name,CompanyName,Division,Department,Title,Street,City,State,PostalCode,Country,Latitude,Longitude,GeocodeAccuracy,Address,Email,EmailPreferencesAutoBcc,EmailPreferencesAutoBccStayInTouch,EmailPreferencesStayInTouchReminder,SenderEmail,SenderName,Signature,StayInTouchSubject,StayInTouchSignature,StayInTouchNote,Phone,Fax,MobilePhone,Alias,CommunityNickname,BadgeText,IsActive,TimeZoneSidKey,UserRoleId,LocaleSidKey,ReceivesInfoEmails,ReceivesAdminInfoEmails,EmailEncodingKey,ProfileId,UserType,LanguageLocaleKey,EmployeeNumber,DelegatedApproverId,ManagerId,LastLoginDate,LastPasswordChangeDate,CreatedDate,CreatedById,LastModifiedDate,LastModifiedById,SystemModstamp,NumberOfFailedLogins,OfflineTrialExpirationDate,OfflinePdaTrialExpirationDate,UserPermissionsMarketingUser,UserPermissionsOfflineUser,UserPermissionsWirelessUser,UserPermissionsAvantgoUser,UserPermissionsCallCenterAutoLogin,UserPermissionsSFContentUser,UserPermissionsInteractionUser,UserPermissionsSupportUser,UserPermissionsChatterAnswersUser,ForecastEnabled,UserPreferencesActivityRemindersPopup,UserPreferencesEventRemindersCheckboxDefault,UserPreferencesTaskRemindersCheckboxDefault,UserPreferencesReminderSoundOff,UserPreferencesDisableAllFeedsEmail,UserPreferencesApexPagesDeveloperMode,UserPreferencesReceiveNoNotificationsAsApprover,UserPreferencesReceiveNotificationsAsDelegatedApprover,UserPreferencesHideCSNGetChatterMobileTask,UserPreferencesHideCSNDesktopTask,UserPreferencesHideChatterOnboardingSplash,UserPreferencesHideSecondChatterOnboardingSplash,UserPreferencesShowTitleToExternalUsers,UserPreferencesShowManagerToExternalUsers,UserPreferencesShowEmailToExternalUsers,UserPreferencesShowWorkPhoneToExternalUsers,UserPreferencesShowMobilePhoneToExternalUsers,UserPreferencesShowFaxToExternalUsers,UserPreferencesShowStreetAddressToExternalUsers,UserPreferencesShowCityToExternalUsers,UserPreferencesShowStateToExternalUsers,UserPreferencesShowPostalCodeToExternalUsers,UserPreferencesShowCountryToExternalUsers,UserPreferencesShowProfilePicToGuestUsers,UserPreferencesShowTitleToGuestUsers,UserPreferencesShowCityToGuestUsers,UserPreferencesShowStateToGuestUsers,UserPreferencesShowPostalCodeToGuestUsers,UserPreferencesShowCountryToGuestUsers,UserPreferencesHideInvoicesRedirectConfirmation,UserPreferencesHideStatementsRedirectConfirmation,UserPreferencesPathAssistantCollapsed,UserPreferencesCacheDiagnostics,UserPreferencesShowEmailToGuestUsers,UserPreferencesShowManagerToGuestUsers,UserPreferencesShowWorkPhoneToGuestUsers,UserPreferencesShowMobilePhoneToGuestUsers,UserPreferencesShowFaxToGuestUsers,UserPreferencesShowStreetAddressToGuestUsers,UserPreferencesLightningExperiencePreferred,UserPreferencesPreviewLightning,UserPreferencesHideEndUserOnboardingAssistantModal,UserPreferencesHideLightningMigrationModal,UserPreferencesHideSfxWelcomeMat,UserPreferencesHideBiggerPhotoCallout,UserPreferencesGlobalNavBarWTShown,UserPreferencesGlobalNavGridMenuWTShown,UserPreferencesCreateLEXAppsWTShown,UserPreferencesFavoritesWTShown,UserPreferencesRecordHomeSectionCollapseWTShown,UserPreferencesRecordHomeReservedWTShown,UserPreferencesFavoritesShowTopFavorites,UserPreferencesExcludeMailAppAttachments,UserPreferencesSuppressTaskSFXReminders,UserPreferencesSuppressEventSFXReminders,UserPreferencesPreviewCustomTheme,UserPreferencesHasCelebrationBadge,UserPreferencesUserDebugModePref,UserPreferencesSRHOverrideActivities,UserPreferencesNewLightningReportRunPageEnabled,UserPreferencesReverseOpenActivitiesView,UserPreferencesNativeEmailClient,UserPreferencesHideBrowseProductRedirectConfirmation,UserPreferencesHideOnlineSalesAppWelcomeMat,ContactId,AccountId,CallCenterId,Extension,FederationIdentifier,AboutMe,FullPhotoUrl,SmallPhotoUrl,IsExtIndicatorVisible,OutOfOfficeMessage,MediumPhotoUrl,DigestFrequency,DefaultGroupNotificationFrequency,LastViewedDate,LastReferencedDate,BannerPhotoUrl,SmallBannerPhotoUrl,MediumBannerPhotoUrl,IsProfilePhotoActive,IndividualId,Last_Mobile_Connect_vod__c,Last_Tablet_Connect_vod__c,Last_Mobile_Connect_Version_vod__c,Last_Tablet_Connect_Version_vod__c,Last_Mobile_Sync_vod__c,Last_Tablet_Sync_vod__c,RaiseLoggingLevel_vod__c,SendDetailedLog_vod__c,Last_Blackberry_Connect_vod__c,Last_Blackberry_Connect_Version_vod__c,Last_Blackberry_Sync_vod__c,Force_Full_Refresh_vod__c,Override_SystemModstamp_Timestamp_vod__c,Facetime_Email_vod__c,Facetime_Phone_vod__c,Product_Expertise_vod__c,Available_vod__c,Available_Last_Update_vod__c,Last_iPad_Connect_Version_vod__c,Last_iPad_Connect_vod__c,Last_iPad_Sync_vod__c,Inventory_Order_Allocation_Group_vod__c,Concur_User_Id_vod__c,Last_iPad_iOS_Version_vod__c,Approved_Email_Admin_vod__c,Last_WinModern_Connect_Version_vod__c,Last_WinModern_Connect_vod__c,Last_WinModern_Sync_vod__c,Primary_Territory_vod__c,Analytics_Admin_vod__c,Content_Admin_vod__c,Last_WinModern_Windows_Version_vod__c,Upload_VTrans_vod__c,Sync_Frequency_vjh__c,Clear_Client_Sync_Errors_vod__c,Remote_Meeting_Host_Id_vod__c,Remote_Meeting_Host_Token_vod__c,Last_iPhone_Connect_Version_vod__c,Last_iPhone_Connect_vod__c,Last_iPhone_Sync_vod__c,Last_iPhone_iOS_Version_vod__c,Remote_Meeting_Start_From_CRM_Online_vod__c,Country_Code_vod__c,User_Type_vod__c,Engage_Group_Provisioning_Status_vod__c,Engage_Group_Request_vod__c,Engage_Group_vod__c,Last_CRMDesktop_Mac_Sync_vod__c,Last_CRMDesktop_Mac_Version_vod__c,Last_CRMDesktop_Windows_Sync_vod__c,Last_CRMDesktop_Windows_Version_vod__c,MSJ_Test_User__c +id,username,last_name,first_name,name,company_name,division,department,title,street,city,state,postal_code,country,latitude,longitude,geocode_accuracy,address,email,email_preferences_auto_bcc,email_preferences_auto_bcc_stay_in_touch,email_preferences_stay_in_touch_reminder,sender_email,sender_name,signature,stay_in_touch_subject,stay_in_touch_signature,stay_in_touch_note,phone,fax,mobile_phone,alias,community_nickname,badge_text,is_active,time_zone_sid_key,user_role_id,locale_sid_key,receives_info_emails,receives_admin_info_emails,email_encoding_key,profile_id,user_type,language_locale_key,employee_number,delegated_approver_id,manager_id,last_login_date,last_password_change_date,created_date,created_by_id,last_modified_date,last_modified_by_id,system_modstamp,number_of_failed_logins,offline_trial_expiration_date,offline_pda_trial_expiration_date,user_permissions_marketing_user,user_permissions_offline_user,user_permissions_wireless_user,user_permissions_avantgo_user,user_permissions_call_center_auto_login,user_permissions_sfcontent_user,user_permissions_interaction_user,user_permissions_support_user,user_permissions_chatter_answers_user,forecast_enabled,user_preferences_activity_reminders_popup,user_preferences_event_reminders_checkbox_default,user_preferences_task_reminders_checkbox_default,user_preferences_reminder_sound_off,user_preferences_disable_all_feeds_email,user_preferences_apex_pages_developer_mode,user_preferences_receive_no_notifications_as_approver,user_preferences_receive_notifications_as_delegated_approver,user_preferences_hide_csnget_chatter_mobile_task,user_preferences_hide_csndesktop_task,user_preferences_hide_chatter_onboarding_splash,user_preferences_hide_second_chatter_onboarding_splash,user_preferences_show_title_to_external_users,user_preferences_show_manager_to_external_users,user_preferences_show_email_to_external_users,user_preferences_show_work_phone_to_external_users,user_preferences_show_mobile_phone_to_external_users,user_preferences_show_fax_to_external_users,user_preferences_show_street_address_to_external_users,user_preferences_show_city_to_external_users,user_preferences_show_state_to_external_users,user_preferences_show_postal_code_to_external_users,user_preferences_show_country_to_external_users,user_preferences_show_profile_pic_to_guest_users,user_preferences_show_title_to_guest_users,user_preferences_show_city_to_guest_users,user_preferences_show_state_to_guest_users,user_preferences_show_postal_code_to_guest_users,user_preferences_show_country_to_guest_users,user_preferences_hide_invoices_redirect_confirmation,user_preferences_hide_statements_redirect_confirmation,user_preferences_path_assistant_collapsed,user_preferences_cache_diagnostics,user_preferences_show_email_to_guest_users,user_preferences_show_manager_to_guest_users,user_preferences_show_work_phone_to_guest_users,user_preferences_show_mobile_phone_to_guest_users,user_preferences_show_fax_to_guest_users,user_preferences_show_street_address_to_guest_users,user_preferences_lightning_experience_preferred,user_preferences_preview_lightning,user_preferences_hide_end_user_onboarding_assistant_modal,user_preferences_hide_lightning_migration_modal,user_preferences_hide_sfx_welcome_mat,user_preferences_hide_bigger_photo_callout,user_preferences_global_nav_bar_wtshown,user_preferences_global_nav_grid_menu_wtshown,user_preferences_create_lexapps_wtshown,user_preferences_favorites_wtshown,user_preferences_record_home_section_collapse_wtshown,user_preferences_record_home_reserved_wtshown,user_preferences_favorites_show_top_favorites,user_preferences_exclude_mail_app_attachments,user_preferences_suppress_task_sfxreminders,user_preferences_suppress_event_sfxreminders,user_preferences_preview_custom_theme,user_preferences_has_celebration_badge,user_preferences_user_debug_mode_pref,user_preferences_srhoverride_activities,user_preferences_new_lightning_report_run_page_enabled,user_preferences_reverse_open_activities_view,user_preferences_native_email_client,user_preferences_hide_browse_product_redirect_confirmation,user_preferences_hide_online_sales_app_welcome_mat,contact_id,account_id,call_center_id,extension,federation_identifier,about_me,full_photo_url,small_photo_url,is_ext_indicator_visible,out_of_office_message,medium_photo_url,digest_frequency,default_group_notification_frequency,last_viewed_date,last_referenced_date,banner_photo_url,small_banner_photo_url,medium_banner_photo_url,is_profile_photo_active,individual_id,last_mobile_connect_vod__c,last_tablet_connect_vod__c,last_mobile_connect_version_vod__c,last_tablet_connect_version_vod__c,last_mobile_sync_vod__c,last_tablet_sync_vod__c,raise_logging_level_vod__c,send_detailed_log_vod__c,last_blackberry_connect_vod__c,last_blackberry_connect_version_vod__c,last_blackberry_sync_vod__c,force_full_refresh_vod__c,override_system_modstamp_timestamp_vod__c,facetime_email_vod__c,facetime_phone_vod__c,product_expertise_vod__c,available_vod__c,available_last_update_vod__c,last_i_pad_connect_version_vod__c,last_i_pad_connect_vod__c,last_i_pad_sync_vod__c,inventory_order_allocation_group_vod__c,concur_user_id_vod__c,last_i_pad_i_os_version_vod__c,approved_email_admin_vod__c,last_win_modern_connect_version_vod__c,last_win_modern_connect_vod__c,last_win_modern_sync_vod__c,primary_territory_vod__c,analytics_admin_vod__c,content_admin_vod__c,last_win_modern_windows_version_vod__c,upload_vtrans_vod__c,sync_frequency_vjh__c,clear_client_sync_errors_vod__c,remote_meeting_host_id_vod__c,remote_meeting_host_token_vod__c,last_i_phone_connect_version_vod__c,last_i_phone_connect_vod__c,last_i_phone_sync_vod__c,last_i_phone_i_os_version_vod__c,remote_meeting_start_from_crm_online_vod__c,country_code_vod__c,user_type_vod__c,engage_group_provisioning_status_vod__c,engage_group_request_vod__c,engage_group_vod__c,last_crmdesktop_mac_sync_vod__c,last_crmdesktop_mac_version_vod__c,last_crmdesktop_windows_sync_vod__c,last_crmdesktop_windows_version_vod__c,msj_test_user__c +src02.crm_user +org02.crm_user + + diff --git a/s3/data/crm/settings/CRM_UserRole.txt b/s3/data/crm/settings/CRM_UserRole.txt new file mode 100644 index 00000000..4b10b6c2 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserRole.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +16 +Id,Name,ParentRoleId,RollupDescription,OpportunityAccessForAccountOwner,CaseAccessForAccountOwner,ContactAccessForAccountOwner,ForecastUserId,MayForecastManagerShare,LastModifiedDate,LastModifiedById,SystemModstamp,DeveloperName,PortalAccountId,PortalType,PortalAccountOwnerId +id,name,parent_role_id,rollup_description,opportunity_access_for_account_owner,case_access_for_account_owner,contact_access_for_account_owner,forecast_user_id,may_forecast_manager_share,last_modified_date,last_modified_by_id,system_modstamp,developer_name,portal_account_id,portal_type,portal_account_owner_id +src02.crm_user_role +org02.crm_user_role + + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association.txt b/s3/data/crm/settings/CRM_UserTerritory2Association.txt new file mode 100644 index 00000000..039757b9 --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association.txt @@ -0,0 +1,13 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association +org02.crm_user_territory2_association +CRM_UserTerritory2Association_ex.sql + diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt new file mode 100644 index 00000000..4617829d --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ALL.txt @@ -0,0 +1,14 @@ +CRM +, +utf-8 +" +CRLF +1 +8 +Id,UserId,Territory2Id,IsActive,RoleInTerritory2,LastModifiedDate,LastModifiedById,SystemModstamp +id,user_id,territory2_id,is_active,role_in_territory2,last_modified_date,last_modified_by_id,system_modstamp +src02.crm_user_territory2_association_all +org02.crm_user_territory2_association_all + + +truncate_src_table:src02.crm_user_territory2_association_all diff --git a/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql new file mode 100644 index 00000000..6a9aaece --- /dev/null +++ b/s3/data/crm/settings/CRM_UserTerritory2Association_ex.sql @@ -0,0 +1,2 @@ +CALL crm_data_sync('src02.crm_user_territory2_association', 'src02.crm_user_territory2_association_all', 'system_modstamp'); +CALL crm_history('src02.crm_user_territory2_association', 'system_modstamp'); diff --git a/s3/data/crm/settings/configmap.config b/s3/data/crm/settings/configmap.config new file mode 100644 index 00000000..89993b8b --- /dev/null +++ b/s3/data/crm/settings/configmap.config @@ -0,0 +1,58 @@ +/* 【CRMデータ 差分連携】 */ +CRM_Clm_Presentation_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_vod__c.txt +CRM_Clm_Presentation_Slide_vod__c_[0-9]{14}\.(CSV|csv) CRM_Clm_Presentation_Slide_vod__c.txt +CRM_Medical_Insight_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Insight_vod__c.txt +CRM_MSJ_MR_Weekly_Report__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_MR_Weekly_Report__c.txt +CRM_Account_Territory_Loader_vod__c_[0-9]{14}\.(CSV|csv) CRM_Account_Territory_Loader_vod__c.txt +CRM_Event_Attendee_vod__c_[0-9]{14}\.(CSV|csv) CRM_Event_Attendee_vod__c.txt +CRM_ObjectTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_ObjectTerritory2Association.txt +CRM_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Key_Message_vod__c.txt +CRM_Group_[0-9]{14}\.(CSV|csv) CRM_Group.txt +CRM_Medical_Event_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Event_vod__c.txt +CRM_MSJ_Medical_Event_Evaluation__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Event_Evaluation__c.txt +CRM_Coaching_Report_vod__c_[0-9]{14}\.(CSV|csv) CRM_Coaching_Report_vod__c.txt +CRM_Call2_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_vod__c.txt +CRM_Call2_Detail_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Detail_vod__c.txt +CRM_Call2_Key_Message_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Key_Message_vod__c.txt +CRM_Call_Clickstream_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call_Clickstream_vod__c.txt +CRM_Call2_Discussion_vod__c_[0-9]{14}\.(CSV|csv) CRM_Call2_Discussion_vod__c.txt +CRM_Time_Off_Territory_vod__c_[0-9]{14}\.(CSV|csv) CRM_Time_Off_Territory_vod__c.txt +CRM_Dynamic_Attribute_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_vod__c.txt +CRM_Dynamic_Attribute_Configuration_vod__c_[0-9]{14}\.(CSV|csv) CRM_Dynamic_Attribute_Configuration_vod__c.txt +CRM_Territory2_[0-9]{14}\.(CSV|csv) CRM_Territory2.txt +CRM_Profile_[0-9]{14}\.(CSV|csv) CRM_Profile.txt +CRM_My_Setup_Products_vod__c_[0-9]{14}\.(CSV|csv) CRM_My_Setup_Products_vod__c.txt +CRM_Multichannel_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_vod__c.txt +CRM_Multichannel_Activity_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Activity_Line_vod__c.txt +CRM_Multichannel_Consent_vod__c_[0-9]{14}\.(CSV|csv) CRM_Multichannel_Consent_vod__c.txt +CRM_Medical_Inquiry_vod__c_[0-9]{14}\.(CSV|csv) CRM_Medical_Inquiry_vod__c.txt +CRM_Email_Activity_vod__c_[0-9]{14}\.(CSV|csv) CRM_Email_Activity_vod__c.txt +CRM_User_[0-9]{14}\.(CSV|csv) CRM_User.txt +CRM_UserTerritory2Association_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association.txt +CRM_Remote_Meeting_vod__c_[0-9]{14}\.(CSV|csv) CRM_Remote_Meeting_vod__c.txt +CRM_RecordType_[0-9]{14}\.(CSV|csv) CRM_RecordType.txt +CRM_UserRole_[0-9]{14}\.(CSV|csv) CRM_UserRole.txt +CRM_Account_[0-9]{14}\.(CSV|csv) CRM_Account.txt +CRM_AccountShare_[0-9]{14}\.(CSV|csv) CRM_AccountShare.txt +CRM_Contact_[0-9]{14}\.(CSV|csv) CRM_Contact.txt +CRM_Consent_Type_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Type_vod__c.txt +CRM_Consent_Header_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Header_vod__c.txt +CRM_Consent_Line_vod__c_[0-9]{14}\.(CSV|csv) CRM_Consent_Line_vod__c.txt +CRM_MSJ_Inquiry_Assignment__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Inquiry_Assignment__c.txt +CRM_Approved_Document_vod__c_[0-9]{14}\.(CSV|csv) CRM_Approved_Document_vod__c.txt +CRM_Child_Account_vod__c_[0-9]{14}\.(CSV|csv) CRM_Child_Account_vod__c.txt +CRM_MSJ_Hospital_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Hospital_Medical_Regimen__c.txt +CRM_MSJ_Medical_Regimen__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Medical_Regimen__c.txt +CRM_MSJ_Patient__c_[0-9]{14}\.(CSV|csv) CRM_MSJ_Patient__c.txt +CRM_Product_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_vod__c.txt +CRM_Product_Group_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Group_vod__c.txt +CRM_Product_Metrics_vod__c_[0-9]{14}\.(CSV|csv) CRM_Product_Metrics_vod__c.txt +CRM_Survey_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_vod__c.txt +CRM_Survey_Target_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Target_vod__c.txt +CRM_Survey_Question_vod__c_[0-9]{14}\.(CSV|csv) CRM_Survey_Question_vod__c.txt +CRM_Question_Response_vod__c_[0-9]{14}\.(CSV|csv) CRM_Question_Response_vod__c.txt +CRM_Sent_Fragment_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Fragment_vod__c.txt +CRM_Sent_Email_vod__c_[0-9]{14}\.(CSV|csv) CRM_Sent_Email_vod__c.txt +/* 【CRMデータ 全件連携】 */ +CRM_Territory2_ALL_[0-9]{14}\.(CSV|csv) CRM_Territory2_ALL.txt +CRM_UserTerritory2Association_ALL_[0-9]{14}\.(CSV|csv) CRM_UserTerritory2Association_ALL.txt From 07652d8ad17b56f659d320021f2f2e1c56614e14 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 49/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89=E3=80=81=E9=9B=9B=E5=BD=A2?= =?UTF-8?q?=E3=82=92=E4=BD=9C=E3=81=A3=E3=81=A6=E3=81=BF=E3=81=9F=E3=80=82?= =?UTF-8?q?=E5=8B=95=E4=BD=9C=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=81=93?= =?UTF-8?q?=E3=81=A8=E3=81=AF=E7=A2=BA=E8=AA=8D=E3=81=A7=E3=81=8D=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ecs/crm-datafetch/Pipfile | 7 + ecs/crm-datafetch/Pipfile.lock | 471 ++++++++++++++++++++++-- ecs/crm-datafetch/tests/__init__.py | 0 ecs/crm-datafetch/tests/aws/__init__.py | 0 ecs/crm-datafetch/tests/aws/test_s3.py | 20 + ecs/crm-datafetch/tests/conftest.py | 21 ++ 7 files changed, 488 insertions(+), 32 deletions(-) create mode 100644 ecs/crm-datafetch/tests/__init__.py create mode 100644 ecs/crm-datafetch/tests/aws/__init__.py create mode 100644 ecs/crm-datafetch/tests/aws/test_s3.py create mode 100644 ecs/crm-datafetch/tests/conftest.py diff --git a/.gitignore b/.gitignore index 0e397fc3..88a052ff 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ lambda/mbj-newdwh2021-staging-PublishFromLog/node_modules/* __pycache__/ .env **/.vscode/settings.json +.coverage diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 33501d98..3d7988e7 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -3,6 +3,10 @@ url = "https://pypi.org/simple" verify_ssl = true name = "pypi" +[scripts] +test = "pytest tests/" +"test:cov" = "pytest --cov=src tests/" + [packages] boto3 = "*" simple-salesforce = "*" @@ -11,6 +15,9 @@ tenacity = "*" [dev-packages] autopep8 = "*" flake8 = "*" +pytest = "*" +pytest-cov = "*" +moto = "*" [requires] python_version = "3.8" diff --git a/ecs/crm-datafetch/Pipfile.lock b/ecs/crm-datafetch/Pipfile.lock index c8c60540..7c13f0c9 100644 --- a/ecs/crm-datafetch/Pipfile.lock +++ b/ecs/crm-datafetch/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "ec1d83143aff859500979be73f67196dcfe2298ad3553a7d81ad0605a277d672" + "sha256": "f1433a55f486f24bb14d6447713a0cdeeb704542a695103debd9514face495cc" }, "pipfile-spec": 6, "requires": { @@ -18,11 +18,11 @@ "default": { "attrs": { "hashes": [ - "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4", - "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd" + "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6", + "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", - "version": "==21.4.0" + "markers": "python_version >= '3.5'", + "version": "==22.1.0" }, "authlib": { "hashes": [ @@ -33,19 +33,19 @@ }, "boto3": { "hashes": [ - "sha256:5c775dcb12ca5d6be3f5aa3c49d77783faa64eb30fd3f4af93ff116bb42f9ffb", - "sha256:5d9bcc355cf6edd7f3849fedac4252e12a0aa2b436cdbc0d4371b16a0f852a30" + "sha256:aec404d06690a0ca806592efc6bbe30a9ac88fa2ad73b6d907f7794a8b3b1459", + "sha256:df3d6ef02304bd7c3711090936c092d5db735dda109decac1e236c3ef7fdb7af" ], "index": "pypi", - "version": "==1.24.34" + "version": "==1.24.42" }, "botocore": { "hashes": [ - "sha256:0d824a5315f5f5c3bea53c14107a69695ef43190edf647f1281bac8f172ca77c", - "sha256:9c695d47f1f1212f3e306e51f7bacdf67e58055194ddcf7d8296660b124cf135" + "sha256:38a180a6666c5a9b069a75ec3cf374ff2a64c3e90c9f24a916858bcdeb04456d", + "sha256:f8e6c2f69a9d577fb9c69e4e74f49f4315a48decee0e7dc88b6e470772110884" ], "markers": "python_version >= '3.7'", - "version": "==1.27.34" + "version": "==1.27.42" }, "cached-property": { "hashes": [ @@ -59,7 +59,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==2022.6.15" }, "cffi": { @@ -136,7 +136,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==2.1.0" }, "cryptography": { @@ -164,7 +164,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==37.0.4" }, "idna": { @@ -352,22 +352,30 @@ }, "urllib3": { "hashes": [ - "sha256:8298d6d56d39be0e3bc13c1c97d133f9b45d797169a0e11cdd0e0489d786f7ec", - "sha256:879ba4d1e89654d9769ce13121e0f94310ea32e8d2f8cf587b77c08bbcdb30d6" + "sha256:c33ccba33c819596124764c23a97d25f32b28433ba0dedeb77d873a38722c9bc", + "sha256:ea6e8fb210b19d950fab93b60c9009226c63a28808bc8386e05301e25883ac0a" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'", - "version": "==1.26.10" + "version": "==1.26.11" }, "zeep": { "hashes": [ "sha256:5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5", "sha256:81c491092b71f5b276de8c63dfd452be3f322622c48a54f3a497cf913bdfb2f4" ], - "markers": "python_version >= '3.6'", + "markers": "python_full_version >= '3.6.0'", "version": "==4.1.0" } }, "develop": { + "attrs": { + "hashes": [ + "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6", + "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c" + ], + "markers": "python_version >= '3.5'", + "version": "==22.1.0" + }, "autopep8": { "hashes": [ "sha256:44f0932855039d2c15c4510d6df665e4730f2b8582704fa48f9c55bd3e17d979", @@ -376,36 +384,403 @@ "index": "pypi", "version": "==1.6.0" }, - "flake8": { + "boto3": { "hashes": [ - "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d", - "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d" + "sha256:aec404d06690a0ca806592efc6bbe30a9ac88fa2ad73b6d907f7794a8b3b1459", + "sha256:df3d6ef02304bd7c3711090936c092d5db735dda109decac1e236c3ef7fdb7af" ], "index": "pypi", - "version": "==4.0.1" + "version": "==1.24.42" + }, + "botocore": { + "hashes": [ + "sha256:38a180a6666c5a9b069a75ec3cf374ff2a64c3e90c9f24a916858bcdeb04456d", + "sha256:f8e6c2f69a9d577fb9c69e4e74f49f4315a48decee0e7dc88b6e470772110884" + ], + "markers": "python_version >= '3.7'", + "version": "==1.27.42" + }, + "certifi": { + "hashes": [ + "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", + "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==2022.6.15" + }, + "cffi": { + "hashes": [ + "sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5", + "sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef", + "sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104", + "sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426", + "sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405", + "sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375", + "sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a", + "sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e", + "sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc", + "sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf", + "sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185", + "sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497", + "sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3", + "sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35", + "sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c", + "sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83", + "sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21", + "sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca", + "sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984", + "sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac", + "sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd", + "sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee", + "sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a", + "sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2", + "sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192", + "sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7", + "sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585", + "sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f", + "sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e", + "sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27", + "sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b", + "sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e", + "sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e", + "sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d", + "sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c", + "sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415", + "sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82", + "sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02", + "sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314", + "sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325", + "sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c", + "sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3", + "sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914", + "sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045", + "sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d", + "sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9", + "sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5", + "sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2", + "sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c", + "sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3", + "sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2", + "sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8", + "sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d", + "sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d", + "sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9", + "sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162", + "sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76", + "sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4", + "sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e", + "sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9", + "sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6", + "sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b", + "sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01", + "sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0" + ], + "version": "==1.15.1" + }, + "charset-normalizer": { + "hashes": [ + "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", + "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==2.1.0" + }, + "coverage": { + "extras": [ + "toml" + ], + "hashes": [ + "sha256:0895ea6e6f7f9939166cc835df8fa4599e2d9b759b02d1521b574e13b859ac32", + "sha256:0f211df2cba951ffcae210ee00e54921ab42e2b64e0bf2c0befc977377fb09b7", + "sha256:147605e1702d996279bb3cc3b164f408698850011210d133a2cb96a73a2f7996", + "sha256:24b04d305ea172ccb21bee5bacd559383cba2c6fcdef85b7701cf2de4188aa55", + "sha256:25b7ec944f114f70803d6529394b64f8749e93cbfac0fe6c5ea1b7e6c14e8a46", + "sha256:2b20286c2b726f94e766e86a3fddb7b7e37af5d0c635bdfa7e4399bc523563de", + "sha256:2dff52b3e7f76ada36f82124703f4953186d9029d00d6287f17c68a75e2e6039", + "sha256:2f8553878a24b00d5ab04b7a92a2af50409247ca5c4b7a2bf4eabe94ed20d3ee", + "sha256:3def6791adf580d66f025223078dc84c64696a26f174131059ce8e91452584e1", + "sha256:422fa44070b42fef9fb8dabd5af03861708cdd6deb69463adc2130b7bf81332f", + "sha256:4f89d8e03c8a3757aae65570d14033e8edf192ee9298303db15955cadcff0c63", + "sha256:5336e0352c0b12c7e72727d50ff02557005f79a0b8dcad9219c7c4940a930083", + "sha256:54d8d0e073a7f238f0666d3c7c0d37469b2aa43311e4024c925ee14f5d5a1cbe", + "sha256:5ef42e1db047ca42827a85e34abe973971c635f83aed49611b7f3ab49d0130f0", + "sha256:5f65e5d3ff2d895dab76b1faca4586b970a99b5d4b24e9aafffc0ce94a6022d6", + "sha256:6c3ccfe89c36f3e5b9837b9ee507472310164f352c9fe332120b764c9d60adbe", + "sha256:6d0b48aff8e9720bdec315d67723f0babd936a7211dc5df453ddf76f89c59933", + "sha256:6fe75dcfcb889b6800f072f2af5a331342d63d0c1b3d2bf0f7b4f6c353e8c9c0", + "sha256:79419370d6a637cb18553ecb25228893966bd7935a9120fa454e7076f13b627c", + "sha256:7bb00521ab4f99fdce2d5c05a91bddc0280f0afaee0e0a00425e28e209d4af07", + "sha256:80db4a47a199c4563d4a25919ff29c97c87569130375beca3483b41ad5f698e8", + "sha256:866ebf42b4c5dbafd64455b0a1cd5aa7b4837a894809413b930026c91e18090b", + "sha256:8af6c26ba8df6338e57bedbf916d76bdae6308e57fc8f14397f03b5da8622b4e", + "sha256:a13772c19619118903d65a91f1d5fea84be494d12fd406d06c849b00d31bf120", + "sha256:a697977157adc052284a7160569b36a8bbec09db3c3220642e6323b47cec090f", + "sha256:a9032f9b7d38bdf882ac9f66ebde3afb8145f0d4c24b2e600bc4c6304aafb87e", + "sha256:b5e28db9199dd3833cc8a07fa6cf429a01227b5d429facb56eccd765050c26cd", + "sha256:c77943ef768276b61c96a3eb854eba55633c7a3fddf0a79f82805f232326d33f", + "sha256:d230d333b0be8042ac34808ad722eabba30036232e7a6fb3e317c49f61c93386", + "sha256:d4548be38a1c810d79e097a38107b6bf2ff42151900e47d49635be69943763d8", + "sha256:d4e7ced84a11c10160c0697a6cc0b214a5d7ab21dfec1cd46e89fbf77cc66fae", + "sha256:d56f105592188ce7a797b2bd94b4a8cb2e36d5d9b0d8a1d2060ff2a71e6b9bbc", + "sha256:d714af0bdba67739598849c9f18efdcc5a0412f4993914a0ec5ce0f1e864d783", + "sha256:d774d9e97007b018a651eadc1b3970ed20237395527e22cbeb743d8e73e0563d", + "sha256:e0524adb49c716ca763dbc1d27bedce36b14f33e6b8af6dba56886476b42957c", + "sha256:e2618cb2cf5a7cc8d698306e42ebcacd02fb7ef8cfc18485c59394152c70be97", + "sha256:e36750fbbc422c1c46c9d13b937ab437138b998fe74a635ec88989afb57a3978", + "sha256:edfdabe7aa4f97ed2b9dd5dde52d2bb29cb466993bb9d612ddd10d0085a683cf", + "sha256:f22325010d8824594820d6ce84fa830838f581a7fd86a9235f0d2ed6deb61e29", + "sha256:f23876b018dfa5d3e98e96f5644b109090f16a4acb22064e0f06933663005d39", + "sha256:f7bd0ffbcd03dc39490a1f40b2669cc414fae0c4e16b77bb26806a4d0b7d1452" + ], + "markers": "python_version >= '3.7'", + "version": "==6.4.2" + }, + "cryptography": { + "hashes": [ + "sha256:190f82f3e87033821828f60787cfa42bff98404483577b591429ed99bed39d59", + "sha256:2be53f9f5505673eeda5f2736bea736c40f051a739bfae2f92d18aed1eb54596", + "sha256:30788e070800fec9bbcf9faa71ea6d8068f5136f60029759fd8c3efec3c9dcb3", + "sha256:3d41b965b3380f10e4611dbae366f6dc3cefc7c9ac4e8842a806b9672ae9add5", + "sha256:4c590ec31550a724ef893c50f9a97a0c14e9c851c85621c5650d699a7b88f7ab", + "sha256:549153378611c0cca1042f20fd9c5030d37a72f634c9326e225c9f666d472884", + "sha256:63f9c17c0e2474ccbebc9302ce2f07b55b3b3fcb211ded18a42d5764f5c10a82", + "sha256:6bc95ed67b6741b2607298f9ea4932ff157e570ef456ef7ff0ef4884a134cc4b", + "sha256:7099a8d55cd49b737ffc99c17de504f2257e3787e02abe6d1a6d136574873441", + "sha256:75976c217f10d48a8b5a8de3d70c454c249e4b91851f6838a4e48b8f41eb71aa", + "sha256:7bc997818309f56c0038a33b8da5c0bfbb3f1f067f315f9abd6fc07ad359398d", + "sha256:80f49023dd13ba35f7c34072fa17f604d2f19bf0989f292cedf7ab5770b87a0b", + "sha256:91ce48d35f4e3d3f1d83e29ef4a9267246e6a3be51864a5b7d2247d5086fa99a", + "sha256:a958c52505c8adf0d3822703078580d2c0456dd1d27fabfb6f76fe63d2971cd6", + "sha256:b62439d7cd1222f3da897e9a9fe53bbf5c104fff4d60893ad1355d4c14a24157", + "sha256:b7f8dd0d4c1f21759695c05a5ec8536c12f31611541f8904083f3dc582604280", + "sha256:d204833f3c8a33bbe11eda63a54b1aad7aa7456ed769a982f21ec599ba5fa282", + "sha256:e007f052ed10cc316df59bc90fbb7ff7950d7e2919c9757fd42a2b8ecf8a5f67", + "sha256:f2dcb0b3b63afb6df7fd94ec6fbddac81b5492513f7b0436210d390c14d46ee8", + "sha256:f721d1885ecae9078c3f6bbe8a88bc0786b6e749bf32ccec1ef2b18929a05046", + "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", + "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" + ], + "markers": "python_full_version >= '3.6.0'", + "version": "==37.0.4" + }, + "flake8": { + "hashes": [ + "sha256:44e3ecd719bba1cb2ae65d1b54212cc9df4f5db15ac271f8856e5e6c2eebefed", + "sha256:9c51d3d1426379fd444d3b79eabbeb887849368bd053039066439523d8486961" + ], + "index": "pypi", + "version": "==5.0.1" + }, + "idna": { + "hashes": [ + "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff", + "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" + ], + "markers": "python_version >= '3.5'", + "version": "==3.3" + }, + "iniconfig": { + "hashes": [ + "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3", + "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32" + ], + "version": "==1.1.1" + }, + "jinja2": { + "hashes": [ + "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852", + "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61" + ], + "markers": "python_version >= '3.7'", + "version": "==3.1.2" + }, + "jmespath": { + "hashes": [ + "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980", + "sha256:90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe" + ], + "markers": "python_version >= '3.7'", + "version": "==1.0.1" + }, + "markupsafe": { + "hashes": [ + "sha256:0212a68688482dc52b2d45013df70d169f542b7394fc744c02a57374a4207003", + "sha256:089cf3dbf0cd6c100f02945abeb18484bd1ee57a079aefd52cffd17fba910b88", + "sha256:10c1bfff05d95783da83491be968e8fe789263689c02724e0c691933c52994f5", + "sha256:33b74d289bd2f5e527beadcaa3f401e0df0a89927c1559c8566c066fa4248ab7", + "sha256:3799351e2336dc91ea70b034983ee71cf2f9533cdff7c14c90ea126bfd95d65a", + "sha256:3ce11ee3f23f79dbd06fb3d63e2f6af7b12db1d46932fe7bd8afa259a5996603", + "sha256:421be9fbf0ffe9ffd7a378aafebbf6f4602d564d34be190fc19a193232fd12b1", + "sha256:43093fb83d8343aac0b1baa75516da6092f58f41200907ef92448ecab8825135", + "sha256:46d00d6cfecdde84d40e572d63735ef81423ad31184100411e6e3388d405e247", + "sha256:4a33dea2b688b3190ee12bd7cfa29d39c9ed176bda40bfa11099a3ce5d3a7ac6", + "sha256:4b9fe39a2ccc108a4accc2676e77da025ce383c108593d65cc909add5c3bd601", + "sha256:56442863ed2b06d19c37f94d999035e15ee982988920e12a5b4ba29b62ad1f77", + "sha256:671cd1187ed5e62818414afe79ed29da836dde67166a9fac6d435873c44fdd02", + "sha256:694deca8d702d5db21ec83983ce0bb4b26a578e71fbdbd4fdcd387daa90e4d5e", + "sha256:6a074d34ee7a5ce3effbc526b7083ec9731bb3cbf921bbe1d3005d4d2bdb3a63", + "sha256:6d0072fea50feec76a4c418096652f2c3238eaa014b2f94aeb1d56a66b41403f", + "sha256:6fbf47b5d3728c6aea2abb0589b5d30459e369baa772e0f37a0320185e87c980", + "sha256:7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b", + "sha256:86b1f75c4e7c2ac2ccdaec2b9022845dbb81880ca318bb7a0a01fbf7813e3812", + "sha256:8dc1c72a69aa7e082593c4a203dcf94ddb74bb5c8a731e4e1eb68d031e8498ff", + "sha256:8e3dcf21f367459434c18e71b2a9532d96547aef8a871872a5bd69a715c15f96", + "sha256:8e576a51ad59e4bfaac456023a78f6b5e6e7651dcd383bcc3e18d06f9b55d6d1", + "sha256:96e37a3dc86e80bf81758c152fe66dbf60ed5eca3d26305edf01892257049925", + "sha256:97a68e6ada378df82bc9f16b800ab77cbf4b2fada0081794318520138c088e4a", + "sha256:99a2a507ed3ac881b975a2976d59f38c19386d128e7a9a18b7df6fff1fd4c1d6", + "sha256:a49907dd8420c5685cfa064a1335b6754b74541bbb3706c259c02ed65b644b3e", + "sha256:b09bf97215625a311f669476f44b8b318b075847b49316d3e28c08e41a7a573f", + "sha256:b7bd98b796e2b6553da7225aeb61f447f80a1ca64f41d83612e6139ca5213aa4", + "sha256:b87db4360013327109564f0e591bd2a3b318547bcef31b468a92ee504d07ae4f", + "sha256:bcb3ed405ed3222f9904899563d6fc492ff75cce56cba05e32eff40e6acbeaa3", + "sha256:d4306c36ca495956b6d568d276ac11fdd9c30a36f1b6eb928070dc5360b22e1c", + "sha256:d5ee4f386140395a2c818d149221149c54849dfcfcb9f1debfe07a8b8bd63f9a", + "sha256:dda30ba7e87fbbb7eab1ec9f58678558fd9a6b8b853530e176eabd064da81417", + "sha256:e04e26803c9c3851c931eac40c695602c6295b8d432cbe78609649ad9bd2da8a", + "sha256:e1c0b87e09fa55a220f058d1d49d3fb8df88fbfab58558f1198e08c1e1de842a", + "sha256:e72591e9ecd94d7feb70c1cbd7be7b3ebea3f548870aa91e2732960fa4d57a37", + "sha256:e8c843bbcda3a2f1e3c2ab25913c80a3c5376cd00c6e8c4a86a89a28c8dc5452", + "sha256:efc1913fd2ca4f334418481c7e595c00aad186563bbc1ec76067848c7ca0a933", + "sha256:f121a1420d4e173a5d96e47e9a0c0dcff965afdf1626d28de1460815f7c4ee7a", + "sha256:fc7b548b17d238737688817ab67deebb30e8073c95749d55538ed473130ec0c7" + ], + "markers": "python_version >= '3.7'", + "version": "==2.1.1" }, "mccabe": { "hashes": [ - "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42", - "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f" + "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325", + "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e" ], - "version": "==0.6.1" + "markers": "python_version >= '3.6'", + "version": "==0.7.0" + }, + "moto": { + "hashes": [ + "sha256:8bb8e267d9b948509d4739d81d995615a193d2c459f5c0a979aaeb0d3bd4b381", + "sha256:cbe8ad8a949f519771e5d25b670738604757fb67cd474d75d14c20677582e81f" + ], + "index": "pypi", + "version": "==3.1.16" + }, + "packaging": { + "hashes": [ + "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb", + "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522" + ], + "markers": "python_version >= '3.6'", + "version": "==21.3" + }, + "pluggy": { + "hashes": [ + "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159", + "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3" + ], + "markers": "python_version >= '3.6'", + "version": "==1.0.0" + }, + "py": { + "hashes": [ + "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719", + "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==1.11.0" }, "pycodestyle": { "hashes": [ - "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20", - "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f" + "sha256:289cdc0969d589d90752582bef6dff57c5fbc6949ee8b013ad6d6449a8ae9437", + "sha256:beaba44501f89d785be791c9462553f06958a221d166c64e1f107320f839acc2" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", - "version": "==2.8.0" + "markers": "python_version >= '3.6'", + "version": "==2.9.0" + }, + "pycparser": { + "hashes": [ + "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9", + "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206" + ], + "version": "==2.21" }, "pyflakes": { "hashes": [ - "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c", - "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e" + "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2", + "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3" + ], + "markers": "python_version >= '3.6'", + "version": "==2.5.0" + }, + "pyparsing": { + "hashes": [ + "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb", + "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc" + ], + "markers": "python_full_version >= '3.6.8'", + "version": "==3.0.9" + }, + "pytest": { + "hashes": [ + "sha256:13d0e3ccfc2b6e26be000cb6568c832ba67ba32e719443bfe725814d3c42433c", + "sha256:a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45" + ], + "index": "pypi", + "version": "==7.1.2" + }, + "pytest-cov": { + "hashes": [ + "sha256:578d5d15ac4a25e5f961c938b85a05b09fdaae9deef3bb6de9a6e766622ca7a6", + "sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470" + ], + "index": "pypi", + "version": "==3.0.0" + }, + "python-dateutil": { + "hashes": [ + "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", + "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "version": "==2.4.0" + "version": "==2.8.2" + }, + "pytz": { + "hashes": [ + "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7", + "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c" + ], + "version": "==2022.1" + }, + "requests": { + "hashes": [ + "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983", + "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349" + ], + "markers": "python_version >= '3.7' and python_version < '4'", + "version": "==2.28.1" + }, + "responses": { + "hashes": [ + "sha256:2dcc863ba63963c0c3d9ee3fa9507cbe36b7d7b0fccb4f0bdfd9e96c539b1487", + "sha256:b82502eb5f09a0289d8e209e7bad71ef3978334f56d09b444253d5ad67bf5253" + ], + "markers": "python_version >= '3.7'", + "version": "==0.21.0" + }, + "s3transfer": { + "hashes": [ + "sha256:06176b74f3a15f61f1b4f25a1fc29a4429040b7647133a463da8fa5bd28d5ecd", + "sha256:2ed07d3866f523cc561bf4a00fc5535827981b117dd7876f036b0c1aca42c947" + ], + "markers": "python_version >= '3.7'", + "version": "==0.6.0" + }, + "six": { + "hashes": [ + "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", + "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.16.0" }, "toml": { "hashes": [ @@ -414,6 +789,38 @@ ], "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.10.2" + }, + "tomli": { + "hashes": [ + "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", + "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" + ], + "markers": "python_version >= '3.7'", + "version": "==2.0.1" + }, + "urllib3": { + "hashes": [ + "sha256:c33ccba33c819596124764c23a97d25f32b28433ba0dedeb77d873a38722c9bc", + "sha256:ea6e8fb210b19d950fab93b60c9009226c63a28808bc8386e05301e25883ac0a" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'", + "version": "==1.26.11" + }, + "werkzeug": { + "hashes": [ + "sha256:4d7013ef96fd197d1cdeb03e066c6c5a491ccb44758a5b2b91137319383e5a5a", + "sha256:7e1db6a5ba6b9a8be061e47e900456355b8714c0f238b0313f53afce1a55a79a" + ], + "markers": "python_version >= '3.7'", + "version": "==2.2.1" + }, + "xmltodict": { + "hashes": [ + "sha256:341595a488e3e01a85a9d8911d8912fd922ede5fecc4dce437eb4b6c8d037e56", + "sha256:aa89e8fd76320154a40d19a0df04a4695fb9dc5ba977cbb68ab3e4eb225e7852" + ], + "markers": "python_version >= '3.4'", + "version": "==0.13.0" } } } diff --git a/ecs/crm-datafetch/tests/__init__.py b/ecs/crm-datafetch/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ecs/crm-datafetch/tests/aws/__init__.py b/ecs/crm-datafetch/tests/aws/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py new file mode 100644 index 00000000..61c3d352 --- /dev/null +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -0,0 +1,20 @@ +import pytest +from src.aws.s3 import S3Resource + + +@pytest.fixture +def bucket_name(): + return 'test-bucket' + + +@pytest.fixture +def s3_test(s3_client, bucket_name): + s3_client.create_bucket(Bucket=bucket_name) + yield + + +class TestS3Resource: + + def test_put_object(self, s3_test, s3_client, bucket_name): + s3_resource = S3Resource(bucket_name) + s3_resource.put_object('hogehoge', 'aaaaaaaaaaaaaaa') diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py new file mode 100644 index 00000000..1120ced6 --- /dev/null +++ b/ecs/crm-datafetch/tests/conftest.py @@ -0,0 +1,21 @@ +import os + +import boto3 +import pytest +from moto import mock_s3 + + +@pytest.fixture +def aws_credentials(): + """Mocked AWS Credentials for moto.""" + os.environ["AWS_ACCESS_KEY_ID"] = "testing" + os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" + os.environ["AWS_SECURITY_TOKEN"] = "testing" + os.environ["AWS_SESSION_TOKEN"] = "testing" + + +@pytest.fixture +def s3_client(aws_credentials): + with mock_s3(): + conn = boto3.client("s3", region_name="us-east-1") + yield conn From 801f1d23f4ba35a640236489e4b566403705a9c7 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 50/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index 61c3d352..f341cd2c 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -15,6 +15,28 @@ def s3_test(s3_client, bucket_name): class TestS3Resource: + def test_get_object(self, s3_test, s3_client, bucket_name): + s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) + actual = s3_resource.get_object('hogehoge/test.txt') + assert actual == 'aaaaaaaaaaaaaaa' + def test_put_object(self, s3_test, s3_client, bucket_name): s3_resource = S3Resource(bucket_name) - s3_resource.put_object('hogehoge', 'aaaaaaaaaaaaaaa') + s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') + assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + + def test_copy(self, s3_test, s3_client, bucket_name): + for_copy_bucket = 'for-copy-bucket' + s3_client.create_bucket(Bucket=for_copy_bucket) + s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) + s3_resource.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') + actual = s3_client.get_object(Bucket=for_copy_bucket, Key='test.txt') + assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + + def test_init_raise_no_provide_bucket_name(self): + with pytest.raises(Exception) as e: + S3Resource() + assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" From f2618831a29479ae17c888a89624a74d53e29ef2 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 51/68] =?UTF-8?q?feat:=20S3=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E8=BF=BD=E5=8A=A0=20Config=E3=83=90=E3=82=B1=E3=83=83?= =?UTF-8?q?=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index f341cd2c..db4f1c09 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,5 +1,7 @@ import pytest -from src.aws.s3 import S3Resource +from src.aws.s3 import ConfigBucket, S3Resource +from src.system_var import environments +from src.system_var.constants import OBJECT_INFO_FILENAME, OBJECT_INFO_FOLDER @pytest.fixture @@ -40,3 +42,18 @@ class TestS3Resource: with pytest.raises(Exception) as e: S3Resource() assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" + + +class TestConfigBucket: + + def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): + # = bucket_name + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') + monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') + s3_client.put_object(Bucket=bucket_name, Key=f'crm/objects.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + actual = config_bucket.get_object_info_file() + print(actual) + assert actual == 'aaaaaaaaaaaaaaa' From ea6ebbc0a1f972bea5ef904c9e8f66f6f5e89c46 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 52/68] =?UTF-8?q?feat:=20=E3=82=B3=E3=83=B3=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=82=B0=E3=83=90=E3=82=B1=E3=83=83=E3=83=88=E3=81=AE?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 29 ++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index db4f1c09..db97825a 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,7 +1,5 @@ import pytest from src.aws.s3 import ConfigBucket, S3Resource -from src.system_var import environments -from src.system_var.constants import OBJECT_INFO_FILENAME, OBJECT_INFO_FOLDER @pytest.fixture @@ -27,7 +25,7 @@ class TestS3Resource: s3_resource = S3Resource(bucket_name) s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') - assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_copy(self, s3_test, s3_client, bucket_name): for_copy_bucket = 'for-copy-bucket' @@ -47,7 +45,6 @@ class TestS3Resource: class TestConfigBucket: def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): - # = bucket_name monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') @@ -57,3 +54,27 @@ class TestConfigBucket: actual = config_bucket.get_object_info_file() print(actual) assert actual == 'aaaaaaaaaaaaaaa' + + def test_get_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + s3_client.put_object(Bucket=bucket_name, Key=f'crm/Object.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + actual = config_bucket.get_last_fetch_datetime_file('Object.json') + print(actual) + assert actual == 'aaaaaaaaaaaaaaa' + + def test_put_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + config_bucket = ConfigBucket() + print('*' * 50, str(config_bucket), '*' * 50) + config_bucket.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' + + def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + config_bucket = ConfigBucket() + assert str(config_bucket) == bucket_name From 1151c015ca85aa462846ec46c78ac6cc5f1d3e8b Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 53/68] =?UTF-8?q?feat:=20=E3=83=89=E3=82=AD=E3=83=A5?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=8B=E3=82=89=E3=83=AC=E3=83=9D=E3=83=BC=E3=83=88=E3=82=92?= =?UTF-8?q?=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + .../.vscode/python.code-snippets | 17 ++++ ecs/crm-datafetch/Pipfile | 2 + ecs/crm-datafetch/Pipfile.lock | 32 +++++-- ecs/crm-datafetch/tests/aws/test_s3.py | 89 +++++++++++++++++-- ecs/crm-datafetch/tests/conftest.py | 41 +++++++++ ecs/crm-datafetch/tests/docstring_parser.py | 32 +++++++ 7 files changed, 203 insertions(+), 13 deletions(-) create mode 100644 ecs/crm-datafetch/.vscode/python.code-snippets create mode 100644 ecs/crm-datafetch/tests/docstring_parser.py diff --git a/.gitignore b/.gitignore index 88a052ff..16a48619 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ lambda/mbj-newdwh2021-staging-PublishFromLog/node_modules/* __pycache__/ .env **/.vscode/settings.json + +# python test .coverage +.report/ \ No newline at end of file diff --git a/ecs/crm-datafetch/.vscode/python.code-snippets b/ecs/crm-datafetch/.vscode/python.code-snippets new file mode 100644 index 00000000..9f01c623 --- /dev/null +++ b/ecs/crm-datafetch/.vscode/python.code-snippets @@ -0,0 +1,17 @@ +{ + "Generate Test docstring": { + "scope": "python", + "prefix": "\"\"\"\"\"\"", + "body": [ + "\"\"\"", + "Tests:", + " $1", + "Arranges:", + " $2", + "Expects:", + " $3", + "\"\"\"" + ], + "description": "Test docstring (User Snipets)" + } +} diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 3d7988e7..990beb4b 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -6,6 +6,7 @@ name = "pypi" [scripts] test = "pytest tests/" "test:cov" = "pytest --cov=src tests/" +"test:report" = "pytest --cov=src --html=.report/test_result.html tests/" [packages] boto3 = "*" @@ -17,6 +18,7 @@ autopep8 = "*" flake8 = "*" pytest = "*" pytest-cov = "*" +pytest-html = "*" moto = "*" [requires] diff --git a/ecs/crm-datafetch/Pipfile.lock b/ecs/crm-datafetch/Pipfile.lock index 7c13f0c9..cfd16ed2 100644 --- a/ecs/crm-datafetch/Pipfile.lock +++ b/ecs/crm-datafetch/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "f1433a55f486f24bb14d6447713a0cdeeb704542a695103debd9514face495cc" + "sha256": "7006de596d6123ecd56760b584ab75430fa6bcfc0ecd3fdf49f08368ff53477d" }, "pipfile-spec": 6, "requires": { @@ -59,7 +59,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2022.6.15" }, "cffi": { @@ -136,7 +136,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2.1.0" }, "cryptography": { @@ -164,7 +164,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==37.0.4" }, "idna": { @@ -363,7 +363,7 @@ "sha256:5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5", "sha256:81c491092b71f5b276de8c63dfd452be3f322622c48a54f3a497cf913bdfb2f4" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==4.1.0" } }, @@ -405,7 +405,7 @@ "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d", "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2022.6.15" }, "cffi": { @@ -482,7 +482,7 @@ "sha256:5189b6f22b01957427f35b6a08d9a0bc45b46d3788ef5a92e978433c7a35f8a5", "sha256:575e708016ff3a5e3681541cb9d79312c416835686d054a23accb873b254f413" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==2.1.0" }, "coverage": { @@ -560,7 +560,7 @@ "sha256:f7a6de3e98771e183645181b3627e2563dcde3ce94a9e42a3f427d2255190327", "sha256:f8c0a6e9e1dd3eb0414ba320f85da6b0dcbd543126e30fcc546e7372a7fbf3b9" ], - "markers": "python_full_version >= '3.6.0'", + "markers": "python_version >= '3.6'", "version": "==37.0.4" }, "flake8": { @@ -735,6 +735,22 @@ "index": "pypi", "version": "==3.0.0" }, + "pytest-html": { + "hashes": [ + "sha256:3ee1cf319c913d19fe53aeb0bc400e7b0bc2dbeb477553733db1dad12eb75ee3", + "sha256:b7f82f123936a3f4d2950bc993c2c1ca09ce262c9ae12f9ac763a2401380b455" + ], + "index": "pypi", + "version": "==3.1.1" + }, + "pytest-metadata": { + "hashes": [ + "sha256:39261ee0086f17649b180baf2a8633e1922a4c4b6fcc28a2de7d8127a82541bf", + "sha256:fcd2f416f15be295943527b3c8ba16a44ae5a7141939c90c3dc5ce9d167cf2a5" + ], + "markers": "python_version >= '3.7' and python_version < '4'", + "version": "==2.0.2" + }, "python-dateutil": { "hashes": [ "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index db97825a..b6016b35 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -16,27 +16,71 @@ def s3_test(s3_client, bucket_name): class TestS3Resource: def test_get_object(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3からオブジェクトが取得できるか + Arranges: + - S3をモック化する + - 期待値となるファイルを配置する + Expects: + オブジェクトが取得でき、期待値と正しいこと + """ + # Arrange s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + + # ActAssert s3_resource = S3Resource(bucket_name) actual = s3_resource.get_object('hogehoge/test.txt') + + # Assert assert actual == 'aaaaaaaaaaaaaaa' def test_put_object(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3にオブジェクトをPUTできるか + Arranges: + - S3をモック化する + Expects: + オブジェクトがPUTできること + """ s3_resource = S3Resource(bucket_name) + s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') + assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_copy(self, s3_test, s3_client, bucket_name): + """ + Cases: + S3内のオブジェクトを別バケットにコピーできるか + Arranges: + - S3をモック化する + - 期待値となるファイルをコピー元バケットに配置する + Expects: + - コピーされたファイルが存在する + - コピーされたファイルの内容が期待値と一致する + """ for_copy_bucket = 'for-copy-bucket' s3_client.create_bucket(Bucket=for_copy_bucket) s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') + s3_resource = S3Resource(bucket_name) s3_resource.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') + actual = s3_client.get_object(Bucket=for_copy_bucket, Key='test.txt') assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' def test_init_raise_no_provide_bucket_name(self): + """ + Cases: + バケット名を指定しない場合、例外となること + Arranges: + + Expects: + 例外が発生すること + """ with pytest.raises(Exception) as e: S3Resource() assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'" @@ -45,36 +89,71 @@ class TestS3Resource: class TestConfigBucket: def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト情報ファイルが取得できること + Arranges: + オブジェクト情報ファイルを配置する + Expects: + オブジェクト情報ファイルが文字列として取得でき、期待値と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') s3_client.put_object(Bucket=bucket_name, Key=f'crm/objects.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) actual = config_bucket.get_object_info_file() - print(actual) + assert actual == 'aaaaaaaaaaaaaaa' def test_get_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト最終更新日時ファイルが取得できること + Arranges: + オブジェクト最終更新日時ファイルを配置する + Expects: + オブジェクト最終更新日時ファイルが文字列として取得でき、期待値と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') s3_client.put_object(Bucket=bucket_name, Key=f'crm/Object.json', Body=b'aaaaaaaaaaaaaaa') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) actual = config_bucket.get_last_fetch_datetime_file('Object.json') - print(actual) + assert actual == 'aaaaaaaaaaaaaaa' def test_put_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + オブジェクト最終更新日時ファイルをPUTできること + Arranges: + + Expects: + オブジェクト最終更新日時ファイルが存在する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') + config_bucket = ConfigBucket() - print('*' * 50, str(config_bucket), '*' * 50) config_bucket.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') + actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + Arranges: + + Expects: + 環境変数の設定ファイル配置バケット名と一致する + """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) + config_bucket = ConfigBucket() + assert str(config_bucket) == bucket_name diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py index 1120ced6..e46746bb 100644 --- a/ecs/crm-datafetch/tests/conftest.py +++ b/ecs/crm-datafetch/tests/conftest.py @@ -1,8 +1,12 @@ import os +from datetime import datetime import boto3 import pytest from moto import mock_s3 +from py.xml import html # type: ignore + +from . import docstring_parser @pytest.fixture @@ -19,3 +23,40 @@ def s3_client(aws_credentials): with mock_s3(): conn = boto3.client("s3", region_name="us-east-1") yield conn + + +# 以下、レポート出力用の設定 + +def pytest_html_report_title(report): + # レポートタイトル + report.title = "CRMデータ連携 CRMデータ取得機能 単体機能テスト結果報告書" + + +# # def pytest_configure(config): +# # config._metadata["結果確認者"] = "" # Version情報を追加 + + +def pytest_html_results_table_header(cells): + del cells[2:] + cells.insert(3, html.th("Cases")) + cells.insert(4, html.th("Arranges")) + cells.insert(5, html.th("Expects")) + cells.append(html.th("Time", class_="sortable time", col="time")) + + +def pytest_html_results_table_row(report, cells): + del cells[2:] + cells.insert(3, html.td(html.pre(report.cases))) # 「テスト内容」をレポートに出力 + cells.insert(4, html.td(html.pre(report.arranges))) # 「期待結果」をレポートに出力 + cells.insert(5, html.td(html.pre(report.expects))) # 「期待結果」をレポートに出力 + cells.append(html.td(datetime.now(), class_="col-time")) # ついでに「時間」もレポートに出力 + + +@pytest.hookimpl(hookwrapper=True) +def pytest_runtest_makereport(item, call): + outcome = yield + report = outcome.get_result() + docstring = docstring_parser.parse(str(item.function.__doc__)) + report.cases = docstring.get("Cases", '') # 「テスト内容」を`report`に追加 + report.arranges = docstring.get("Arranges", '') # 「準備作業」を`report`に追加 + report.expects = docstring.get("Expects", '') # 「期待結果」を`report`に追加 diff --git a/ecs/crm-datafetch/tests/docstring_parser.py b/ecs/crm-datafetch/tests/docstring_parser.py new file mode 100644 index 00000000..32ac1579 --- /dev/null +++ b/ecs/crm-datafetch/tests/docstring_parser.py @@ -0,0 +1,32 @@ +import re +from itertools import takewhile + +_section_rgx = re.compile(r"^\s*[a-zA-Z]+:\s*$") +_lspace_rgx = re.compile(r"^\s*") + + +def _parse_section(lines: list) -> list: + matches = map(lambda x: _section_rgx.match(x), lines) + indexes = [i for i, x in enumerate(matches) if x is not None] + return list(map(lambda x: (x, lines[x].strip()[: -1]), indexes)) + + +def _count_lspace(s: str) -> int: + rgx = _lspace_rgx.match(s) + if rgx is not None: + return rgx.end() + return 0 + + +def _parse_content(index: int, lines: list) -> str: + lspace = _count_lspace(lines[index]) + i = index + 1 + contents = takewhile(lambda x: _count_lspace(x) > lspace, lines[i:]) + return "\n".join(map(lambda x: x.strip(), contents)) + + +def parse(docstring: str) -> dict: + """🚧sloppy docstring parser🚧""" + lines = docstring.splitlines() + sections = _parse_section(lines) + return dict(map(lambda x: (x[1], _parse_content(x[0], lines)), sections)) From a003f0b96b5e6b1f3cf76b0dea1d5031498f51f8 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 16:19:32 +0900 Subject: [PATCH 54/68] =?UTF-8?q?docs:=20README=E3=81=AB=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=E8=BF=BD=E8=A8=98?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/.env.example | 17 +++++ .../.vscode/python.code-snippets | 2 +- ecs/crm-datafetch/README.md | 72 +++++++++++++++++++ 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 ecs/crm-datafetch/.env.example diff --git a/ecs/crm-datafetch/.env.example b/ecs/crm-datafetch/.env.example new file mode 100644 index 00000000..aa6a3d18 --- /dev/null +++ b/ecs/crm-datafetch/.env.example @@ -0,0 +1,17 @@ +CRM_AUTH_DOMAIN=test +CRM_USER_NAME=test +CRM_USER_PASSWORD=test +CRM_USER_SECURITY_TOKEN=test +CRM_CONFIG_BUCKET=test +CRM_BACKUP_BUCKET=test +IMPORT_DATA_BUCKET=test +OBJECT_INFO_FOLDER=test +OBJECT_INFO_FILENAME=test +PROCESS_RESULT_FOLDER=test +PROCESS_RESULT_FILENAME=test +LAST_FETCH_DATE_FOLDER=test +CRM_IMPORT_DATA_FOLDER=test +LAST_FETCH_DATE_BACKUP_FOLDER=test +RESPONSE_JSON_BACKUP_FOLDER=test +CRM_IMPORT_DATA_BACKUP_FOLDER=test +TZ=Asia/Tokyo diff --git a/ecs/crm-datafetch/.vscode/python.code-snippets b/ecs/crm-datafetch/.vscode/python.code-snippets index 9f01c623..aa7b3501 100644 --- a/ecs/crm-datafetch/.vscode/python.code-snippets +++ b/ecs/crm-datafetch/.vscode/python.code-snippets @@ -12,6 +12,6 @@ " $3", "\"\"\"" ], - "description": "Test docstring (User Snipets)" + "description": "Test docstring (User Snippets)" } } diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index 5a23e966..f0188f5f 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -67,3 +67,75 @@ - 環境変数が必要な場合、直接設定するか、上記JSONの`"envFile"`に設定されたパスに`.env`ファイルを作成し、環境変数を入力する - キーボードの「F5」キーを押して起動する - デバッグモードで実行されるため、適当なところにブレークポイントを置いてデバッグすることができる + +## 単体テストについて + +### 前提 + +- Pytestを使用する + - +- カバレッジも取得したいため、pytest-covも使う + - +- レポートを出力するため、pytest-htmlを使う + - +- S3をモック化したいため、motoをつかう + - +- CRMはテスト用の環境を使いたいため、newdwh_opeのアドレスでDeveloper組織を登録する + +### テスト環境構築 + +- Pipenvの仮想環境下で、以下のコマンドを実行する + +```sh +pipenv install --dev +``` + +- `.env.example`をコピーし、同じ階層に`.env`を作成する +- `.env`の以下に示す環境変数の値をDeveloper組織のものに書き換える + - CRM_AUTH_DOMAIN + - CRM_USER_NAME + - CRM_USER_PASSWORD + - CRM_USER_SECURITY_TOKEN +- 以下のコマンドを実行して単体テストを起動する + +```sh +pipenv run test:cov +``` + +#### 各コマンドの説明 + +- `pipenv run test` + - pytestを使用してテストを実行する + - `tests`フォルダに配置されているテストモジュールを対象に、単体テストを実行する +- `pipenv run test:cov` + - pytestのテスト終了時にカバレッジを収集する + - 標準出力とカバレッジファイル(`.coverage`)に出力される +- `pipenv run test:report` + - pytestのテスト終了時にテスト結果をHTMLで出力する + - `.report/test_result.html`が出力される + +## 単体テストの追加方法 + +- `tests`フォルダ内に、`src`フォルダの構成と同じようにフォルダを作り、`test_<テスト対象のモジュール名.py>`というファイルを作成する + - 例:`src/aws/s3.py`をテストする場合は`tests/aws/test_s3.py`というファイル名にする +- テスト関数はクラスにまとめて、テストスイートとする +- テスト関数にはドキュメントコメントを付け、テスト観点・準備作業・期待値を記載すること + - 上記が出力されるスニペットを用意してある。 + - `""""""`と入力し、「Test docstring (User Snippets)」を選択し、ドキュメントコメントを挿入できる + +```python + +from src.aws.s3 import S3Resource +class TestS3Resource: + def test_get_object(self, s3_test, s3_): + """ + Cases: + S3からオブジェクトが取得できるか + Arranges: + - S3をモック化する + - 期待値となるファイルを配置する + Expects: + オブジェクトが取得でき、期待値と正しいこと + """ + # more code... +``` From bf59acf1525ce48471477b254193b196aa228166 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 17:01:32 +0900 Subject: [PATCH 55/68] =?UTF-8?q?refactor:=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AE=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E5=A4=89=E6=95=B0=E3=82=92sut=E3=81=AB=E7=B5=B1?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index b6016b35..7153d2a0 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -28,9 +28,9 @@ class TestS3Resource: # Arrange s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') - # ActAssert - s3_resource = S3Resource(bucket_name) - actual = s3_resource.get_object('hogehoge/test.txt') + # Act + sut = S3Resource(bucket_name) + actual = sut.get_object('hogehoge/test.txt') # Assert assert actual == 'aaaaaaaaaaaaaaa' @@ -44,9 +44,9 @@ class TestS3Resource: Expects: オブジェクトがPUTできること """ - s3_resource = S3Resource(bucket_name) + sut = S3Resource(bucket_name) - s3_resource.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') + sut.put_object('hogehoge/test.txt', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key='hogehoge/test.txt') assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' @@ -66,8 +66,8 @@ class TestS3Resource: s3_client.create_bucket(Bucket=for_copy_bucket) s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') - s3_resource = S3Resource(bucket_name) - s3_resource.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') + sut = S3Resource(bucket_name) + sut.copy(bucket_name, 'hogehoge/test.txt', for_copy_bucket, 'test.txt') actual = s3_client.get_object(Bucket=for_copy_bucket, Key='test.txt') assert actual['Body'].read() == b'aaaaaaaaaaaaaaa' @@ -102,8 +102,8 @@ class TestConfigBucket: monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FILENAME', 'objects.json') s3_client.put_object(Bucket=bucket_name, Key=f'crm/objects.json', Body=b'aaaaaaaaaaaaaaa') - config_bucket = ConfigBucket() - actual = config_bucket.get_object_info_file() + sut = ConfigBucket() + actual = sut.get_object_info_file() assert actual == 'aaaaaaaaaaaaaaa' @@ -120,8 +120,8 @@ class TestConfigBucket: monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') s3_client.put_object(Bucket=bucket_name, Key=f'crm/Object.json', Body=b'aaaaaaaaaaaaaaa') - config_bucket = ConfigBucket() - actual = config_bucket.get_last_fetch_datetime_file('Object.json') + sut = ConfigBucket() + actual = sut.get_last_fetch_datetime_file('Object.json') assert actual == 'aaaaaaaaaaaaaaa' @@ -137,13 +137,13 @@ class TestConfigBucket: monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') - config_bucket = ConfigBucket() - config_bucket.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') + sut = ConfigBucket() + sut.put_last_fetch_datetime_file('Object.json', 'aaaaaaaaaaaaaaa') actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' - def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + def test_sut_str(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること @@ -154,6 +154,6 @@ class TestConfigBucket: """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) - config_bucket = ConfigBucket() + sut = ConfigBucket() - assert str(config_bucket) == bucket_name + assert str(sut) == bucket_name From 4d444e025eb43d218f3a6a48a37edb7029cee480 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 17:15:36 +0900 Subject: [PATCH 56/68] =?UTF-8?q?feat:=20DataBucket=E3=81=AE=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 60 +++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index 7153d2a0..e30deaa7 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,5 +1,5 @@ import pytest -from src.aws.s3 import ConfigBucket, S3Resource +from src.aws.s3 import ConfigBucket, DataBucket, S3Resource @pytest.fixture @@ -157,3 +157,61 @@ class TestConfigBucket: sut = ConfigBucket() assert str(sut) == bucket_name + + +class TestDataBucket: + + def test_put_csv(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + 任意のファイルをPUTできること + Arranges: + + Expects: + PUTしたファイルが存在する + """ + monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.CRM_IMPORT_DATA_FOLDER', 'crm/target') + + sut = DataBucket() + actual = sut.put_csv('test.csv', 'test,test,test') + + actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/target/test.csv') + assert actual['Body'].read().decode('utf-8') == 'test,test,test' + + def test_put_csv_from(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + 他のバケットから任意のファイルをコピーできること + Arranges: + + Expects: + コピーしたファイルが存在する + """ + for_copy_bucket = 'for-copy-bucket' + s3_client.create_bucket(Bucket=for_copy_bucket) + s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.csv', Body=b'test,test,test') + + monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', for_copy_bucket) + monkeypatch.setattr('src.aws.s3.CRM_IMPORT_DATA_FOLDER', 'crm/target') + + sut = DataBucket() + sut.put_csv_from(bucket_name, 'hogehoge/test.csv') + actual = s3_client.get_object(Bucket=for_copy_bucket, Key=f'crm/target/test.csv') + + assert actual['Body'].read().decode('utf-8') == 'test,test,test' + + def test_data_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + Arranges: + + Expects: + 環境変数の設定ファイル配置バケット名と一致する + """ + monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', bucket_name) + + sut = DataBucket() + + assert str(sut) == bucket_name From a1613087df469d3ce0563eb9b9908c49bbcf8678 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 17:21:46 +0900 Subject: [PATCH 57/68] =?UTF-8?q?refactor:=20=E3=83=89=E3=82=AD=E3=83=A5?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=81=E9=96=A2=E6=95=B0=E5=90=8D?= =?UTF-8?q?=E3=82=82=E3=81=A1=E3=82=87=E3=81=A3=E3=81=A8=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 66 +++++++++++++++----------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index e30deaa7..44a4ee8c 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -18,12 +18,12 @@ class TestS3Resource: def test_get_object(self, s3_test, s3_client, bucket_name): """ Cases: - S3からオブジェクトが取得できるか + - S3からオブジェクトが取得できるか Arranges: - S3をモック化する - 期待値となるファイルを配置する Expects: - オブジェクトが取得でき、期待値と正しいこと + - オブジェクトが取得でき、期待値と正しいこと """ # Arrange s3_client.put_object(Bucket=bucket_name, Key='hogehoge/test.txt', Body=b'aaaaaaaaaaaaaaa') @@ -38,11 +38,12 @@ class TestS3Resource: def test_put_object(self, s3_test, s3_client, bucket_name): """ Cases: - S3にオブジェクトをPUTできるか + - S3にオブジェクトをPUTできるか Arranges: - S3をモック化する Expects: - オブジェクトがPUTできること + - PUTされたファイルが存在する + - PUTされたファイルの内容が期待値と一致する """ sut = S3Resource(bucket_name) @@ -54,9 +55,10 @@ class TestS3Resource: def test_copy(self, s3_test, s3_client, bucket_name): """ Cases: - S3内のオブジェクトを別バケットにコピーできるか + - S3内のオブジェクトを別バケットにコピーできるか Arranges: - S3をモック化する + - コピー先バケットを作成する - 期待値となるファイルをコピー元バケットに配置する Expects: - コピーされたファイルが存在する @@ -75,11 +77,11 @@ class TestS3Resource: def test_init_raise_no_provide_bucket_name(self): """ Cases: - バケット名を指定しない場合、例外となること + - バケット名を指定しない場合、例外となること Arranges: Expects: - 例外が発生すること + - インスタンス生成時に例外が発生すること """ with pytest.raises(Exception) as e: S3Resource() @@ -91,11 +93,11 @@ class TestConfigBucket: def test_get_object_info_file(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - オブジェクト情報ファイルが取得できること + - オブジェクト情報ファイルが取得できること Arranges: - オブジェクト情報ファイルを配置する + - オブジェクト情報ファイルを配置する Expects: - オブジェクト情報ファイルが文字列として取得でき、期待値と一致する + - オブジェクト情報ファイルが文字列として取得でき、期待値と一致する """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.OBJECT_INFO_FOLDER', 'crm') @@ -110,11 +112,12 @@ class TestConfigBucket: def test_get_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - オブジェクト最終更新日時ファイルが取得できること + - オブジェクト最終更新日時ファイルが取得できること Arranges: - オブジェクト最終更新日時ファイルを配置する + - S3をモック化する + - オブジェクト最終更新日時ファイルを配置する Expects: - オブジェクト最終更新日時ファイルが文字列として取得でき、期待値と一致する + - オブジェクト最終更新日時ファイルが文字列として取得でき、期待値と一致する """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') @@ -128,11 +131,12 @@ class TestConfigBucket: def test_put_last_fetch_datetime_file(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - オブジェクト最終更新日時ファイルをPUTできること + - オブジェクト最終更新日時ファイルをPUTできること Arranges: - + - S3をモック化する + - 環境変数をテスト用の値に置き換える Expects: - オブジェクト最終更新日時ファイルが存在する + - オブジェクト最終更新日時ファイルが存在する """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.LAST_FETCH_DATE_FOLDER', 'crm') @@ -143,14 +147,14 @@ class TestConfigBucket: actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/Object.json') assert actual['Body'].read().decode('utf-8') == 'aaaaaaaaaaaaaaa' - def test_sut_str(self, s3_test, s3_client, bucket_name, monkeypatch): + def test_config_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + - 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること Arranges: - + - 環境変数をテスト用の値に置き換える Expects: - 環境変数の設定ファイル配置バケット名と一致する + - 環境変数の設定ファイル配置バケット名と一致する """ monkeypatch.setattr('src.aws.s3.CRM_CONFIG_BUCKET', bucket_name) @@ -164,11 +168,12 @@ class TestDataBucket: def test_put_csv(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - 任意のファイルをPUTできること + - 任意のファイルをPUTできること Arranges: - + - S3をモック化する + - 環境変数をテスト用の値に置き換える Expects: - PUTしたファイルが存在する + - PUTしたファイルが存在する """ monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', bucket_name) monkeypatch.setattr('src.aws.s3.CRM_IMPORT_DATA_FOLDER', 'crm/target') @@ -182,11 +187,14 @@ class TestDataBucket: def test_put_csv_from(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - 他のバケットから任意のファイルをコピーできること + - 他のバケットから任意のファイルをコピーできること Arranges: - + - S3をモック化する + - コピー先バケットを作成する + - 期待値となるファイルコピー元バケットに配置する + - 環境変数をテスト用の値に置き換える Expects: - コピーしたファイルが存在する + - コピーしたファイルが存在する """ for_copy_bucket = 'for-copy-bucket' s3_client.create_bucket(Bucket=for_copy_bucket) @@ -204,11 +212,11 @@ class TestDataBucket: def test_data_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + - 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること Arranges: - + - 環境変数をテスト用の値に置き換える Expects: - 環境変数の設定ファイル配置バケット名と一致する + - 環境変数の設定ファイル配置バケット名と一致する """ monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', bucket_name) From 45d3d3aae1c3f2a5d3f3489a86de43c8993e6c2b Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 18:35:24 +0900 Subject: [PATCH 58/68] =?UTF-8?q?feat:=20Backup=E3=83=90=E3=82=B1=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/aws/test_s3.py | 87 ++++++++++++++++++++++++-- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/ecs/crm-datafetch/tests/aws/test_s3.py b/ecs/crm-datafetch/tests/aws/test_s3.py index 44a4ee8c..1daab1e7 100644 --- a/ecs/crm-datafetch/tests/aws/test_s3.py +++ b/ecs/crm-datafetch/tests/aws/test_s3.py @@ -1,5 +1,5 @@ import pytest -from src.aws.s3 import ConfigBucket, DataBucket, S3Resource +from src.aws.s3 import BackupBucket, ConfigBucket, DataBucket, S3Resource @pytest.fixture @@ -168,7 +168,7 @@ class TestDataBucket: def test_put_csv(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - - 任意のファイルをPUTできること + - CSVファイルをPUTできること Arranges: - S3をモック化する - 環境変数をテスト用の値に置き換える @@ -179,7 +179,7 @@ class TestDataBucket: monkeypatch.setattr('src.aws.s3.CRM_IMPORT_DATA_FOLDER', 'crm/target') sut = DataBucket() - actual = sut.put_csv('test.csv', 'test,test,test') + sut.put_csv('test.csv', 'test,test,test') actual = s3_client.get_object(Bucket=bucket_name, Key=f'crm/target/test.csv') assert actual['Body'].read().decode('utf-8') == 'test,test,test' @@ -187,7 +187,7 @@ class TestDataBucket: def test_put_csv_from(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - - 他のバケットから任意のファイルをコピーできること + - 他のバケットからCSVファイルをコピーできること Arranges: - S3をモック化する - コピー先バケットを作成する @@ -212,14 +212,89 @@ class TestDataBucket: def test_data_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): """ Cases: - - 設定ファイル配置バケットを文字列化したとき、バケット名が取得できること + - データ登録バケットを文字列化したとき、バケット名が取得できること Arranges: - 環境変数をテスト用の値に置き換える Expects: - - 環境変数の設定ファイル配置バケット名と一致する + - 環境変数のデータ登録バケット名と一致する """ monkeypatch.setattr('src.aws.s3.IMPORT_DATA_BUCKET', bucket_name) sut = DataBucket() assert str(sut) == bucket_name + + +class TestBackupBucket: + + def test_put_csv(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + - CSVファイルをPUTできること + Arranges: + - S3をモック化する + - 環境変数をテスト用の値に置き換える + Expects: + - PUTしたファイルが存在する + """ + monkeypatch.setattr('src.aws.s3.CRM_BACKUP_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.CRM_IMPORT_DATA_BACKUP_FOLDER', 'data_import') + + sut = BackupBucket() + sut.put_csv('test.csv', 'test,test,test') + + actual = s3_client.get_object(Bucket=bucket_name, Key=f'data_import/test.csv') + assert actual['Body'].read().decode('utf-8') == 'test,test,test' + + def test_put_response_json(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + - JSONファイルをPUTできること + Arranges: + - S3をモック化する + - 環境変数をテスト用の値に置き換える + Expects: + - PUTしたファイルが存在する + """ + monkeypatch.setattr('src.aws.s3.CRM_BACKUP_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.RESPONSE_JSON_BACKUP_FOLDER', 'response_json') + + sut = BackupBucket() + sut.put_response_json('test.json', {"test": "test"}) + + actual = s3_client.get_object(Bucket=bucket_name, Key=f'response_json/test.json') + assert actual['Body'].read().decode('utf-8') == '{"test": "test"}' + + def test_put_result_json(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + - JSONファイルをPUTできること + Arranges: + - S3をモック化する + - 環境変数をテスト用の値に置き換える + Expects: + - PUTしたファイルが存在する + """ + monkeypatch.setattr('src.aws.s3.CRM_BACKUP_BUCKET', bucket_name) + monkeypatch.setattr('src.aws.s3.PROCESS_RESULT_FOLDER', 'data_import') + + sut = BackupBucket() + sut.put_result_json('result.json', {"test": "test"}) + + actual = s3_client.get_object(Bucket=bucket_name, Key=f'data_import/result.json') + assert actual['Body'].read().decode('utf-8') == '{"test": "test"}' + + def test_backup_bucket_str(self, s3_test, s3_client, bucket_name, monkeypatch): + """ + Cases: + - CRMデータバックアップバケットを文字列化したとき、バケット名が取得できること + Arranges: + - 環境変数をテスト用の値に置き換える + Expects: + - 環境変数のCRMデータバックアップバケット名と一致する + """ + monkeypatch.setattr('src.aws.s3.CRM_BACKUP_BUCKET', bucket_name) + + sut = BackupBucket() + + assert str(sut) == bucket_name From c7c0ee8f973e6f60f5bfff51f88ef589cbfc1757 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Tue, 2 Aug 2022 18:43:41 +0900 Subject: [PATCH 59/68] =?UTF-8?q?refactor:=20=E4=B8=8D=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0=E3=82=92example=E3=81=8B?= =?UTF-8?q?=E3=82=89=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/.env.example | 1 - 1 file changed, 1 deletion(-) diff --git a/ecs/crm-datafetch/.env.example b/ecs/crm-datafetch/.env.example index aa6a3d18..e4c3b353 100644 --- a/ecs/crm-datafetch/.env.example +++ b/ecs/crm-datafetch/.env.example @@ -14,4 +14,3 @@ CRM_IMPORT_DATA_FOLDER=test LAST_FETCH_DATE_BACKUP_FOLDER=test RESPONSE_JSON_BACKUP_FOLDER=test CRM_IMPORT_DATA_BACKUP_FOLDER=test -TZ=Asia/Tokyo From 5c22cd56c5cb0943fb37787926aa2de9e6f31603 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 00:51:55 +0900 Subject: [PATCH 60/68] =?UTF-8?q?style:=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E7=94=A8=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=81=AE=E3=82=B9=E3=83=8B?= =?UTF-8?q?=E3=83=9A=E3=83=83=E3=83=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/.vscode/python.code-snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs/crm-datafetch/.vscode/python.code-snippets b/ecs/crm-datafetch/.vscode/python.code-snippets index aa7b3501..3b658c8d 100644 --- a/ecs/crm-datafetch/.vscode/python.code-snippets +++ b/ecs/crm-datafetch/.vscode/python.code-snippets @@ -4,7 +4,7 @@ "prefix": "\"\"\"\"\"\"", "body": [ "\"\"\"", - "Tests:", + "Cases:", " $1", "Arranges:", " $2", From be8823d07fcf954ce8ecd5549204b013e46eef8a Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 00:52:17 +0900 Subject: [PATCH 61/68] =?UTF-8?q?feat:=20=E7=92=B0=E5=A2=83=E5=A4=89?= =?UTF-8?q?=E6=95=B0=E3=81=ABLOG=5FLEVEL=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/.env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/ecs/crm-datafetch/.env.example b/ecs/crm-datafetch/.env.example index e4c3b353..4f105876 100644 --- a/ecs/crm-datafetch/.env.example +++ b/ecs/crm-datafetch/.env.example @@ -14,3 +14,4 @@ CRM_IMPORT_DATA_FOLDER=test LAST_FETCH_DATE_BACKUP_FOLDER=test RESPONSE_JSON_BACKUP_FOLDER=test CRM_IMPORT_DATA_BACKUP_FOLDER=test +LOG_LEVEL=INFO \ No newline at end of file From 5a1012c4e058572c17d6d6f9f411b4e6e2af6e42 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 11:50:08 +0900 Subject: [PATCH 62/68] =?UTF-8?q?docs:=20README=E3=81=AB=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB/=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80?= =?UTF-8?q?=E6=A7=8B=E6=88=90=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/README.md | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index f0188f5f..9d580fa5 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -68,6 +68,49 @@ - キーボードの「F5」キーを押して起動する - デバッグモードで実行されるため、適当なところにブレークポイントを置いてデバッグすることができる +## ファイル/フォルダ構成 + +`[〇〇処理モジュール]`と記載されているファイルは、設計書に記載のシートと一致したPythonファイルです + +```text +. +├── Dockerfile -- Dokcerイメージを作成するためのファイル +├── Pipfile -- Pipenv(Pythonの仮想環境管理モジュール)で、依存関係を管理するためのファイル +├── Pipfile.lock -- Pipenvでインストールされた依存関係のバージョン固定ファイル +├── README.md -- README +├── main.py -- CRMデータ取得処理のエントリーポイント +├── src/ -- プロダクトコード置き場 +│ ├── aws/ -- AWSのリソース操作関連のモジュール置き場 +│ ├── backup_crm_csv_data_process.py -- [CSVバックアップ処理]モジュール +│ ├── backup_crm_data_process.py -- [CRM電文データバックアップ処理]モジュール +│ ├── check_object_info_process.py -- [オブジェクト情報形式チェック処理]モジュール +│ ├── config/ -- 設定ファイル関連のモジュール置き場 +│ ├── controller.py -- [コントロール処理]モジュール +│ ├── convert_crm_csv_data_process.py -- [CSV変換処理]モジュール +│ ├── converter/ -- CSV変換処理で実際に変換を行うモジュール置き場 +│ ├── copy_crm_csv_data_process.py -- [CSVアップロード処理]モジュール +│ ├── error/ -- 処理エラー発生時カスタム例外モジュール置き場 +│ ├── fetch_crm_data_process.py -- [CRMデータ取得処理]モジュール +│ ├── parser/ -- [JSON変換処理]モジュール置き場 +│ ├── prepare_data_fetch_process.py -- データ取得準備処理 +│ ├── salesforce/ -- SalesforceのAPIリクエストモジュール置き場 +│ ├── set_datetime_period_process.py -- [データ取得期間設定処理]モジュール +│ ├── system_var/ -- 環境変数と定数ファイル置き場 +│ ├── upload_last_fetch_datetime_process.py -- [前回取得日時ファイル更新処理]モジュール +│ ├── upload_result_data_process.py -- [取得処理実施結果アップロード処理]モジュール +│ └── util/ -- ユーティリティモジュール置き場 +│ ├── counter_object.py -- リトライ判定のためのカウントアップクラス +│ ├── dict_checker.py -- 辞書型値オブジェクトの設定値チェック用クラス +│ ├── execute_datetime.py -- 取得処理開始年月日時分秒の管理クラス +│ └── logger.py -- ログ管理クラス +│ +└── tests/ -- テストコード置き場 + ├── aws -- AWS操作モジュールのテスト + ├── ... -- src配下のモジュール構成と同じ階層にテストコードを追加していく + ├── conftest.py -- pytestのフィクスチャやフックを管理するファイル + └── docstring_parser.py -- pytest-htmlのレポート出力用のヘルパー +``` + ## 単体テストについて ### 前提 From 02c6b97e9265bc06a2f57c1cdf236ce40f49099e Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 11:58:00 +0900 Subject: [PATCH 63/68] =?UTF-8?q?docs:=20docstring=5Fparser=E3=81=AB?= =?UTF-8?q?=E3=83=89=E3=82=AD=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/docstring_parser.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ecs/crm-datafetch/tests/docstring_parser.py b/ecs/crm-datafetch/tests/docstring_parser.py index 32ac1579..040c9b5d 100644 --- a/ecs/crm-datafetch/tests/docstring_parser.py +++ b/ecs/crm-datafetch/tests/docstring_parser.py @@ -1,3 +1,16 @@ +"""pytest-htmlでレポート出力するため、各テスト関数のドキュメントコメントのセクションを抜き出して、辞書にする +Examples: + <セクション名>:となっている部分が対象になる + \"\"\" + Cases: + テストケース + Arranges: + 準備作業 + Expects: + 期待値 + \"\"\" +""" + import re from itertools import takewhile From 33a608a4b3cd608f844e9eb4bb3fa95e98f32b71 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 12:00:46 +0900 Subject: [PATCH 64/68] =?UTF-8?q?docs:=20conftest.py=E3=81=AB=E3=83=89?= =?UTF-8?q?=E3=82=AD=E3=83=A5=E3=83=A1=E3=83=B3=E3=83=88=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py index e46746bb..5f2e0073 100644 --- a/ecs/crm-datafetch/tests/conftest.py +++ b/ecs/crm-datafetch/tests/conftest.py @@ -1,3 +1,4 @@ +"""pytestでフィクスチャやフック(テスト実行前後に差し込む処理)を管理するモジュール""" import os from datetime import datetime From ca9dc2863f65884778d654447ab0fff044e5a325 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 12:01:55 +0900 Subject: [PATCH 65/68] =?UTF-8?q?style:=20=E4=B8=8D=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/tests/conftest.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ecs/crm-datafetch/tests/conftest.py b/ecs/crm-datafetch/tests/conftest.py index 5f2e0073..55ade88c 100644 --- a/ecs/crm-datafetch/tests/conftest.py +++ b/ecs/crm-datafetch/tests/conftest.py @@ -33,10 +33,6 @@ def pytest_html_report_title(report): report.title = "CRMデータ連携 CRMデータ取得機能 単体機能テスト結果報告書" -# # def pytest_configure(config): -# # config._metadata["結果確認者"] = "" # Version情報を追加 - - def pytest_html_results_table_header(cells): del cells[2:] cells.insert(3, html.th("Cases")) From 3abef79cef000465af85e3e87c8c39dcb924d4e1 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 15:17:14 +0900 Subject: [PATCH 66/68] =?UTF-8?q?docs:=20Test=20Explorer=E3=81=AE=E5=B0=8E?= =?UTF-8?q?=E5=85=A5=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index 9d580fa5..034cf2d4 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -145,6 +145,12 @@ pipenv install --dev pipenv run test:cov ``` +#### 拡張機能:Python Test Explorer UIを導入する場合 + +- VSCodeの拡張機能メニューから、「Python Test Explorer for Visual Studio Code」をインストール +- コマンドパレットから「Python Configure Tests」を選択、「Pytest」を選択 +- テストメニュー(フラスコのマーク)から、テストを実行することができるようになる + #### 各コマンドの説明 - `pipenv run test` From 2fe59b15e7f7366fe8320a4133fdfe4ef71d7c40 Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 3 Aug 2022 15:59:20 +0900 Subject: [PATCH 67/68] =?UTF-8?q?feat:=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89=E3=81=AE=E3=82=AB=E3=83=90?= =?UTF-8?q?=E3=83=AC=E3=83=83=E3=82=B8=E5=8F=8E=E9=9B=86=E3=83=AC=E3=83=99?= =?UTF-8?q?=E3=83=AB=E3=82=92=E5=A4=89=E6=9B=B4(C1=E3=81=BE=E3=81=A7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/Pipfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 990beb4b..82796598 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -5,8 +5,8 @@ name = "pypi" [scripts] test = "pytest tests/" -"test:cov" = "pytest --cov=src tests/" -"test:report" = "pytest --cov=src --html=.report/test_result.html tests/" +"test:cov" = "pytest --cov=src --cov-branch --cov-report=term-missing tests/" +"test:report" = "pytest --cov=src --cov-branch --cov-report=term-missing --html=.report/test_result.html tests/" [packages] boto3 = "*" From d5a35317fbe952b3d25d20c05ea8c720ae1e15ba Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Thu, 4 Aug 2022 10:08:57 +0900 Subject: [PATCH 68/68] =?UTF-8?q?docs:=20=E3=83=AC=E3=83=93=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E6=8C=87=E6=91=98=E5=AF=BE=E5=BF=9C=20https://nds-tyo?= =?UTF-8?q?.backlog.com/git/NEWDWH2021/newsdwh2021/pullRequests/54#comment?= =?UTF-8?q?-1301153=20https://nds-tyo.backlog.com/git/NEWDWH2021/newsdwh20?= =?UTF-8?q?21/pullRequests/54#comment-1301166=20https://nds-tyo.backlog.co?= =?UTF-8?q?m/git/NEWDWH2021/newsdwh2021/pullRequests/54#comment-1301158?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/crm-datafetch/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index 034cf2d4..243e33e5 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -70,7 +70,7 @@ ## ファイル/フォルダ構成 -`[〇〇処理モジュール]`と記載されているファイルは、設計書に記載のシートと一致したPythonファイルです +`[〇〇処理]モジュール`と記載されているファイルは、設計書に記載のシートと一致したPythonファイルです ```text . @@ -91,8 +91,8 @@ │ ├── copy_crm_csv_data_process.py -- [CSVアップロード処理]モジュール │ ├── error/ -- 処理エラー発生時カスタム例外モジュール置き場 │ ├── fetch_crm_data_process.py -- [CRMデータ取得処理]モジュール -│ ├── parser/ -- [JSON変換処理]モジュール置き場 -│ ├── prepare_data_fetch_process.py -- データ取得準備処理 +│ ├── parser/ -- JSON設定ファイル読み込み処理モジュール置き場 +│ ├── prepare_data_fetch_process.py -- [データ取得準備処理]モジュール │ ├── salesforce/ -- SalesforceのAPIリクエストモジュール置き場 │ ├── set_datetime_period_process.py -- [データ取得期間設定処理]モジュール │ ├── system_var/ -- 環境変数と定数ファイル置き場